| Modifier and Type | Method and Description |
|---|---|
| public RectBounds | getBounds()
Returns metrics information about the line as follows: bounds().getWidth() - the width of the line. |
| public float | |
| public int | |
| public float | |
| public GlyphList[] | |
| public int |
| getBounds | back to summary |
|---|---|
| public RectBounds getBounds() Returns metrics information about the line as follows: bounds().getWidth() - the width of the line. The width for the line is sum of all run's width in the line, it is not affected by any wrapping width but it will include any changes caused by justification. bounds().getHeight() - the height of the line. The height of the line is sum of the max ascent, max descent, and max line gap of all the fonts in the line. bounds.().getMinY() - the ascent of the line (negative). The ascent of the line is the max ascent of all fonts in the line. bounds().getMinX() - the x origin of the line (relative to the layout). The x origin is defined by TextAlignment of the text layout, always zero for left-aligned text. | |
| getLeftSideBearing | back to summary |
|---|---|
| public float getLeftSideBearing() Returns the left side bearing of the line (negative). | |
| getLength | back to summary |
|---|---|
| public int getLength() Returns the line length in characters. | |
| getRightSideBearing | back to summary |
|---|---|
| public float getRightSideBearing() Returns the right side bearing of the line (positive). | |
| getRuns | back to summary |
|---|---|
| public GlyphList[] getRuns() Returns the list of GlyphList in the line. The list is visually ordered. | |
| getStart | back to summary |
|---|---|
| public int getStart() Returns the line start offset. | |