DroidDiagram Programmer's Guide
LinkLabel Members
Constructors Methods
 


Represents a label displayed by a DiagramLink. New labels can be added to a link by calling the DiagramLink.addLabel method.

The following tables list the members exposed by the LinkLabel type.

 Public Constructors

  Name Description

LinkLabel

Overloaded.  

 Public Methods

  Name Description

clone

Creates a clone of this label.

getAutoArrange

Gets a value indicating whether the label can be auto arranged.

getBrush

Gets the brush used to draw the label's background.

getEditRect

Implements InplaceEditable.getEditRect. Returns the rectangle where the in-place edit text box should appear (in document coordinates).

getEnableWrap

Gets whether the text should wrap to multiple lines.

getFont

Gets the font of the link's label text.

getHorizontalAlign

Gets the horizontal alignment of the text within the label's layout rectangle.

getIndex

Gets the index of the segment or control point this label is relative to.

getMargin

Gets the text margins size.

getMaxWidth

Gets the maximal width that when reached should cause text to wrap to a new line.

getRelativeTo

Gets the label's relative positioning.

getText

Gets the label's text.

getTextColor

Gets the color of the link's label text.

getTextToEdit

Implements InplaceEditable.getTextToEdit. Returns the text that should be displayed initially when this label is edited in-place.

getVerticalAlign

Gets the vertical alignment of the text relatively to the label's position.

readExternal

Loads the label from the specified binary stream.

setAutoArrange

Sets a value indicating whether the label can be auto arranged.

setBrush

Sets the brush used to draw the label's background.

setControlPointPosition

Positions this label relatively to the specified control point.

setEditedText

Implements InplaceEditable.setEditedText. Assigns the edited text to the label after in-place edit operation completes successfully

setEnableWrap

Sets whether the text should wrap to multiple lines.

setFont

Sets the font of the link's label.

setHorizontalAlign

Sets the horizontal alignment of the text within the label's layout rectangle.

setIndex

Sets the index of the segment or control point this label is relative to.

setLinkLengthPosition

Positions this label relatively to the link length.

setMargin

Sets the text margins size.

setMaxWidth

Sets the maximal width that when reached should cause text to wrap to a new line.

setRelativeTo

Sets the label's relative positioning.

setSegmentPosition

Positions this label relatively to the specified link segment.

setText

Sets the label's text.

setTextColor

Sets the color of the link's label.

setVerticalAlign

Sets the vertical alignment of the text relatively to the label's position.

writeExternal

Saves the label into the specified binary stream.

 Protected Methods

  Name Description

draw

Draws this label on the specified Canvas surface.

getLayoutRect

Gets the label's layout rectangle calculated from text length, font and alignment.

getLink

Returns the DiagramLink that displays this label.

loadFromXml

Loads the label from the specified XML element.

pointAlongLength

Overloaded.  

saveToXml

Saves the label into the specified XML element.

 See Also

LinkLabel Class
com.mindfusion.diagramming Namespace