com.yworks.yfiles.bpmn.view
Class ChoreographyLabelUtils

java.lang.Object
  extended bycom.yworks.yfiles.bpmn.view.ChoreographyLabelUtils

public class ChoreographyLabelUtils
extends Object

Helper methods for choreography node label handling.

 

Method Summary
static void createNameLabel(NodeRealizer realizer, String text)
          Adds a name label with the given text to the given node realizer of a choreography node.
static void createParticipantLabel(NodeRealizer realizer, byte position, String text, Color background)
          Adds a participant label with the given text and background color to the given position on the given node realizer of a choreography node.
static void deleteLabel(NodeLabel label)
          Deletes the given node label of its node realizer of a choreography node.
static double getParticipantsHeight(NodeRealizer context, byte position)
          Returns the height of all labels of the given participant position.
static boolean isParticipantLabel(NodeLabel label)
          Checks of the given node label is a participant label of a choreography node.
static void setLabelBackgroundColor(NodeLabel label, Color background)
          Sets the background color of the given node label of its node realizer of a choreography node.
static void setLabelIcon(NodeLabel label, Icon icon)
          Sets the icon of the given node label of its node realizer of a choreography node.
static void setLabelText(NodeLabel label, String text)
          Sets the text of the given node label of its node realizer of a choreography node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createNameLabel

public static void createNameLabel(NodeRealizer realizer,
                                   String text)
Adds a name label with the given text to the given node realizer of a choreography node.


createParticipantLabel

public static void createParticipantLabel(NodeRealizer realizer,
                                          byte position,
                                          String text,
                                          Color background)
Adds a participant label with the given text and background color to the given position on the given node realizer of a choreography node.


setLabelText

public static void setLabelText(NodeLabel label,
                                String text)
Sets the text of the given node label of its node realizer of a choreography node.


setLabelBackgroundColor

public static void setLabelBackgroundColor(NodeLabel label,
                                           Color background)
Sets the background color of the given node label of its node realizer of a choreography node.


deleteLabel

public static void deleteLabel(NodeLabel label)
Deletes the given node label of its node realizer of a choreography node.


setLabelIcon

public static void setLabelIcon(NodeLabel label,
                                Icon icon)
Sets the icon of the given node label of its node realizer of a choreography node.


isParticipantLabel

public static boolean isParticipantLabel(NodeLabel label)
Checks of the given node label is a participant label of a choreography node.


getParticipantsHeight

public static double getParticipantsHeight(NodeRealizer context,
                                           byte position)
Returns the height of all labels of the given participant position.



© Copyright 2010-2014,
yWorks GmbH.
All rights reserved.