| Modifier and Type | Field and Description |
|---|---|
| private final RectBounds | |
| private final float | |
| private final int | |
| private float | |
| private float | |
| private final TextRun[] | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | PrismTextLine(int start, int length, TextRun[] runs, float width, float ascent, float descent, float leading)
|
| Modifier and Type | Method and Description |
|---|---|
| public RectBounds | getBounds()
Implements com. Returns metrics information about the line as follows: bounds().getWidth() - the width of the line. |
| public float | |
| public float | getLeftSideBearing()
Implements com. Returns the left side bearing of the line (negative). |
| public int | getLength()
Implements com. Returns the line length in characters. |
| public float | getRightSideBearing()
Implements com. Returns the right side bearing of the line (positive). |
| public TextRun[] | getRuns()
Implements com. Returns the list of GlyphList in the line. |
| public int | |
| public void | |
| public void | |
| public void |
| bounds | back to summary |
|---|---|
| private final RectBounds bounds | |
| leading | back to summary |
|---|---|
| private final float leading | |
| length | back to summary |
|---|---|
| private final int length | |
| lsb | back to summary |
|---|---|
| private float lsb | |
| rsb | back to summary |
|---|---|
| private float rsb | |
| runs | back to summary |
|---|---|
| private final TextRun[] runs | |
| start | back to summary |
|---|---|
| private final int start | |
| PrismTextLine | back to summary |
|---|---|
| public PrismTextLine(int start, int length, TextRun[] runs, float width, float ascent, float descent, float leading) | |
| getBounds | back to summary |
|---|---|
| public RectBounds getBounds() Implements com. Doc from com. 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.
| |
| getLeading | back to summary |
|---|---|
| public float getLeading() | |
| getLeftSideBearing | back to summary |
|---|---|
| public float getLeftSideBearing() Implements com. Doc from com. Returns the left side bearing of the line (negative).
| |
| getLength | back to summary |
|---|---|
| public int getLength() Implements com. Doc from com. Returns the line length in characters.
| |
| getRightSideBearing | back to summary |
|---|---|
| public float getRightSideBearing() Implements com. Doc from com. Returns the right side bearing of the line (positive).
| |
| getRuns | back to summary |
|---|---|
| public TextRun[] getRuns() Implements com. Doc from com. Returns the list of GlyphList in the line. The list is visually ordered.
| |
| getStart | back to summary |
|---|---|
| public int getStart() Implements com. Doc from com. Returns the line start offset.
| |
| setAlignment | back to summary |
|---|---|
| public void setAlignment(float x) | |
| setSideBearings | back to summary |
|---|---|
| public void setSideBearings(float lsb, float rsb) | |
| setWidth | back to summary |
|---|---|
| public void setWidth(float width) | |