| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| Modifier and Type | Method and Description |
|---|---|
| public BaseBounds | Returns: the layout boundsReturns the (logical) bounds of the layout minX is always zero minY is the ascent of the first line (negative) width the width of the widest line height the sum of all lines height Note that this width is different the wrapping width! |
| public BaseBounds | |
| public PathElement[] | |
| public TextLayout. | Returns: returns aHit object containing character index, insertion index and position of cursor on the character.x coordinate value. x, float y coordinate value. y)Calculates character index and insertion index for the given coordinates
and maps to |
| public TextLine[] | |
| public PathElement[] | |
| public GlyphList[] | |
| public Shape | |
| public BaseBounds | Returns: the visual boundsReturns the visual bounds of the layout using glyph bounding box |
| public boolean | Returns: returns true is the call modifies the layout internal state.Sets the alignment for the TextLayout. |
| public boolean | Returns: returns true is the call modifies the layout internal state.Sets the bounds type for the TextLayout. |
| public boolean | Returns: returns true is the call modifies the layout internal state.Sets the content for the TextLayout. |
| public boolean | Returns: returns true is the call modifies the layout internal state.Sets the content for the TextLayout. |
| public boolean | Returns: returns true is the call modifies the layout internal state.Sets the direction (bidi algorithm's) for the TextLayout. |
| public boolean | Returns: returns true is the call modifies the layout internal state.Sets the line spacing for the TextLayout. |
| public boolean | Returns: returns true if the call modifies the layout internal state.the number of spaces represented by a tab. Default is 8.
Minimum is 1, lower values will be clamped to 1. spaces)Sets the tab size for the TextLayout. |
| public boolean | Returns: returns true is the call modifies the layout internal state.Sets the wrap width for the TextLayout. |
| ALIGN_CENTER | back to summary |
|---|---|
| public static final int ALIGN_CENTER | |
| ALIGN_JUSTIFY | back to summary |
|---|---|
| public static final int ALIGN_JUSTIFY | |
| ALIGN_LEFT | back to summary |
|---|---|
| public static final int ALIGN_LEFT | |
| ALIGN_MASK | back to summary |
|---|---|
| public static final int ALIGN_MASK | |
| ALIGN_RIGHT | back to summary |
|---|---|
| public static final int ALIGN_RIGHT | |
| ANALYSIS_MASK | back to summary |
|---|---|
| public static final int ANALYSIS_MASK | |
| BOUNDS_CENTER | back to summary |
|---|---|
| public static final int BOUNDS_CENTER | |
| BOUNDS_MASK | back to summary |
|---|---|
| public static final int BOUNDS_MASK | |
| DEFAULT_TAB_SIZE | back to summary |
|---|---|
| public static final int DEFAULT_TAB_SIZE | |
| DIRECTION_DEFAULT_LTR | back to summary |
|---|---|
| public static final int DIRECTION_DEFAULT_LTR | |
| DIRECTION_DEFAULT_RTL | back to summary |
|---|---|
| public static final int DIRECTION_DEFAULT_RTL | |
| DIRECTION_LTR | back to summary |
|---|---|
| public static final int DIRECTION_LTR | |
| DIRECTION_MASK | back to summary |
|---|---|
| public static final int DIRECTION_MASK | |
| DIRECTION_RTL | back to summary |
|---|---|
| public static final int DIRECTION_RTL | |
| FLAGS_ANALYSIS_VALID | back to summary |
|---|---|
| public static final int FLAGS_ANALYSIS_VALID | |
| FLAGS_CACHED_STRIKETHROUGH | back to summary |
|---|---|
| public static final int FLAGS_CACHED_STRIKETHROUGH | |
| FLAGS_CACHED_UNDERLINE | back to summary |
|---|---|
| public static final int FLAGS_CACHED_UNDERLINE | |
| FLAGS_HAS_BIDI | back to summary |
|---|---|
| public static final int FLAGS_HAS_BIDI | |
| FLAGS_HAS_CJK | back to summary |
|---|---|
| public static final int FLAGS_HAS_CJK | |
| FLAGS_HAS_COMPLEX | back to summary |
|---|---|
| public static final int FLAGS_HAS_COMPLEX | |
| FLAGS_HAS_EMBEDDED | back to summary |
|---|---|
| public static final int FLAGS_HAS_EMBEDDED | |
| FLAGS_HAS_TABS | back to summary |
|---|---|
| public static final int FLAGS_HAS_TABS | |
| FLAGS_LAST | back to summary |
|---|---|
| public static final int FLAGS_LAST | |
| FLAGS_LINES_VALID | back to summary |
|---|---|
| public static final int FLAGS_LINES_VALID | |
| FLAGS_RTL_BASE | back to summary |
|---|---|
| public static final int FLAGS_RTL_BASE | |
| FLAGS_WRAPPED | back to summary |
|---|---|
| public static final int FLAGS_WRAPPED | |
| TYPE_BASELINE | back to summary |
|---|---|
| public static final int TYPE_BASELINE | |
| TYPE_BEARINGS | back to summary |
|---|---|
| public static final int TYPE_BEARINGS | |
| TYPE_STRIKETHROUGH | back to summary |
|---|---|
| public static final int TYPE_STRIKETHROUGH | |
| TYPE_TEXT | back to summary |
|---|---|
| public static final int TYPE_TEXT | |
| TYPE_TOP | back to summary |
|---|---|
| public static final int TYPE_TOP | |
| TYPE_UNDERLINE | back to summary |
|---|---|
| public static final int TYPE_UNDERLINE | |
| getBounds | back to summary |
|---|---|
| public BaseBounds getBounds() Returns the (logical) bounds of the layout minX is always zero minY is the ascent of the first line (negative) width the width of the widest line height the sum of all lines height Note that this width is different the wrapping width!
| |
| getBounds | back to summary |
|---|---|
| public BaseBounds getBounds(TextSpan filter, BaseBounds bounds) | |
| getCaretShape | back to summary |
|---|---|
| public PathElement[] getCaretShape(int offset, boolean isLeading, float x, float y) | |
| getHitInfo | back to summary |
|---|---|
| public TextLayout. Calculates character index and insertion index for the given coordinates
and maps to
| |
| getLines | back to summary |
|---|---|
| public TextLine[] getLines() Returns the lines of text layout.
| |
| getRange | back to summary |
|---|---|
| public PathElement[] getRange(int start, int end, int type, float x, float y) | |
| getRuns | back to summary |
|---|---|
| public GlyphList[] getRuns() Returns the GlyphList of text layout. The runs are returned order visually (rendering order), starting from the first line.
| |
| getShape | back to summary |
|---|---|
| public Shape getShape(int type, TextSpan filter) Returns the shape of the entire text layout relative to the baseline of the first line.
| |
| getVisualBounds | back to summary |
|---|---|
| public BaseBounds getVisualBounds(int type) Returns the visual bounds of the layout using glyph bounding box
| |
| setAlignment | back to summary |
|---|---|
| public boolean setAlignment(int alignment) Sets the alignment for the TextLayout.
| |
| setBoundsType | back to summary |
|---|---|
| public boolean setBoundsType(int type) Sets the bounds type for the TextLayout.
| |
| setContent | back to summary |
|---|---|
| public boolean setContent(TextSpan[] spans) Sets the content for the TextLayout. Supports multiple spans (rich text).
| |
| setContent | back to summary |
|---|---|
| public boolean setContent(String string, Object font) Sets the content for the TextLayout. Shorthand for single span text (no rich text).
| |
| setDirection | back to summary |
|---|---|
| public boolean setDirection(int direction) Sets the direction (bidi algorithm's) for the TextLayout.
| |
| setLineSpacing | back to summary |
|---|---|
| public boolean setLineSpacing(float spacing) Sets the line spacing for the TextLayout.
| |
| setTabSize | back to summary |
|---|---|
| public boolean setTabSize(int spaces) Sets the tab size for the TextLayout.
| |
| setWrapWidth | back to summary |
|---|---|
| public boolean setWrapWidth(float wrapWidth) Sets the wrap width for the TextLayout.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv int | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public int | |
| public int | |
| public boolean | |
| public String |
| charIndex | back to summary |
|---|---|
| pack-priv int charIndex | |
| insertionIndex | back to summary |
|---|---|
| pack-priv int insertionIndex | |
| leading | back to summary |
|---|---|
| pack-priv boolean leading | |
| Hit | back to summary |
|---|---|
| public Hit(int charIndex, int insertionIndex, boolean leading) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getCharIndex | back to summary |
|---|---|
| public int getCharIndex() | |
| getInsertionIndex | back to summary |
|---|---|
| public int getInsertionIndex() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isLeading | back to summary |
|---|---|
| public boolean isLeading() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |