MindFusion.Java Package Programmer's Guide
TextLayout Members
Constructors Methods
 


Encapsulates the layouting information for the text in edit components.

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

 Public Constructors

  Name Description

TextLayout

Initializes a new instance of the TextLayout class.

 Public Methods

  Name Description

close

 

draw

 

getCharacterIndexFromPoint

Retrieves the character at the specified position.

getCharBounds

Gets the bounding rectangle of the character with the specified index.

getDesiredSize

 

getEndOfLine

Retrieves the index of the last character of the specified line.

getFontHeight

Gets the height of the underlying font.

getLineCount

Returns the number of lines in the layout.

getLineFromCharacterIndex

Retrieves the line containing the character with the specified index.

getRelativeCharacterIndex

Gets the index of the character, corresponding to the position of the specified character from the line above or the line below the line containing the character.

getStartOfLine

Retrieves the index of the first character of the specified line.

getText

 

getTextWrapping

 

invalidate

Invalidates the text layout. Subsequent calls to various layout methods will cause a new layout pass.

setText

 

setTextWrapping

 

 See Also

TextLayout Class
com.mindfusion.diagramming.components Namespace