Represents a label displayed by a DiagramNode. New labels can be added to a node by calling the addLabel method.
The following tables list the members exposed by the NodeLabel type.
Name | Description | |
---|---|---|
![]() |
Overloaded. Initializes a new instance of the NodeLabel class. |
Name | Description | |
---|---|---|
![]() |
Called when drag operation is canceled. (Inherited from ItemLabel.) |
|
![]() |
Creates a clone of this label. |
|
![]() |
Gets the brush used to draw the label's background. (Inherited from ItemLabel.) |
|
![]() |
Gets the distance between Image and Text when both are specified. (Inherited from ItemLabel.) |
|
![]() |
Implements InplaceEditable.getEditRect. Returns the rectangle where the in-place edit text box should appear (in document coordinates). (Inherited from ItemLabel.) |
|
![]() |
Gets whether the text should wrap to multiple lines. (Inherited from ItemLabel.) |
|
![]() |
Gets the font of the label's text. (Inherited from ItemLabel.) |
|
![]() |
Gets label's horizontal alignment relative to the pin point. (Inherited from ItemLabel.) |
|
![]() |
Gets label's horizontal offset from its pin point. (Inherited from ItemLabel.) |
|
![]() |
Gets the image displayed by this label. (Inherited from ItemLabel.) |
|
![]() |
Gets the alignment of label's image relative to text. (Inherited from ItemLabel.) |
|
![]() |
Gets a size that overrides the native image size. (Inherited from ItemLabel.) |
|
![]() |
Gets a URL used to load an image into this label. (Inherited from ItemLabel.) |
|
![]() |
Gets the index of an edge or point this label is relative to. (Inherited from ItemLabel.) |
|
![]() |
Gets a value indicating whether users are allowed to edit this label. (Inherited from ItemLabel.) |
|
![]() |
Gets the text margins size. (Inherited from ItemLabel.) |
|
![]() |
Gets the maximal width that when reached should cause text to wrap to a new line. (Inherited from ItemLabel.) |
|
![]() |
Gets the label's relative positioning. |
|
![]() |
Gets the label's text. (Inherited from ItemLabel.) |
|
![]() |
Gets the color of the label's text. (Inherited from ItemLabel.) |
|
![]() |
Implements InplaceEditable.getTextToEdit. Returns the text that should be displayed initially when this label is edited in-place. (Inherited from ItemLabel.) |
|
![]() |
Gets label's vertical alignment relative to the pin point. (Inherited from ItemLabel.) |
|
![]() |
Gets label's vertical offset from its pin point. (Inherited from ItemLabel.) |
|
![]() |
Called when the left mouse button is pressed while the pointer is over this label. (Inherited from ItemLabel.) |
|
![]() |
Called when the mouse is moved while this label tracks the mouse events. (Inherited from ItemLabel.) |
|
![]() |
Called when the left mouse button is released while this label tracks the mouse events. (Inherited from ItemLabel.) |
|
![]() |
Loads the label from the specified binary stream. |
|
![]() |
Sets the brush used to draw the label's background. (Inherited from ItemLabel.) |
|
![]() |
Positions this label relatively to the node center. |
|
![]() |
Sets the distance between Image and Text when both are specified. (Inherited from ItemLabel.) |
|
![]() |
Positions this label relatively to the specified corner point. |
|
![]() |
Positions this label relatively to the specified node edge. |
|
![]() |
Implements InplaceEditable.setEditedText. Assigns the edited text to the label after in-place edit operation completes successfully (Inherited from ItemLabel.) |
|
![]() |
Sets whether the text should wrap to multiple lines. (Inherited from ItemLabel.) |
|
![]() |
Sets the font of the label's text. (Inherited from ItemLabel.) |
|
![]() |
Sets label's horizontal alignment relative to the pin point. (Inherited from ItemLabel.) |
|
![]() |
Sets label's horizontal offset from its pin point. (Inherited from ItemLabel.) |
|
![]() |
Sets the image displayed by this label. (Inherited from ItemLabel.) |
|
![]() |
Sets the alignment of label's image relative to text. (Inherited from ItemLabel.) |
|
![]() |
Sets a size that overrides the native image size. (Inherited from ItemLabel.) |
|
![]() |
Sets a URL used to load an image into this label. (Inherited from ItemLabel.) |
|
![]() |
Sets the index of an edge or point this label is relative to. (Inherited from ItemLabel.) |
|
![]() |
Sets a value indicating whether users are allowed to edit this label. (Inherited from ItemLabel.) |
|
![]() |
Sets the text margins size. (Inherited from ItemLabel.) |
|
![]() |
Sets the maximal width that when reached should cause text to wrap to a new line. (Inherited from ItemLabel.) |
|
![]() |
Indicates what cursor to display for interactive labels. (Inherited from ItemLabel.) |
|
![]() |
Sets the label's relative positioning. |
|
![]() |
Sets the label's text. (Inherited from ItemLabel.) |
|
![]() |
Sets the color of the label's text. (Inherited from ItemLabel.) |
|
![]() |
Sets label's vertical alignment relative to the pin point. (Inherited from ItemLabel.) |
|
![]() |
Sets label's vertical offset from its pin point. (Inherited from ItemLabel.) |
|
![]() |
Saves the label into the specified binary stream. |
Name | Description | |
---|---|---|
![]() |
Draws this label on the specified Graphics2D surface. (Inherited from ItemLabel.) |
|
![]() |
Returns the DiagramItem that displays this label. (Inherited from ItemLabel.) |
|
![]() |
Gets the label's layout rectangle calculated from text length, font and alignment. (Inherited from ItemLabel.) |
|
![]() |
Returns the DiagramNode that displays this label. |
|
![]() |
Loads the label from a JSON object. |
|
![]() |
Loads the label from the specified XML element. |
|
![]() |
Saves the label as a JSON object. |
|
![]() |
Saves the label into the specified XML element. |