public abstract class TextLayout
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
IRectangle |
bounds
Returns the precise bounds of the text rendered by this layout.
|
TextFormat |
format
The
TextFormat used to lay out this text. |
IDimension |
size
The size of the bounding box that contains all of the rendered text.
|
java.lang.String |
text
The text that was laid out.
|
| Modifier and Type | Method and Description |
|---|---|
abstract float |
ascent()
The number of pixels from the top of a line of text to the baseline.
|
abstract float |
descent()
The number of pixels from the baseline to the bottom of a line of text.
|
abstract float |
leading()
The number of pixels between the bottom of one line of text and the top of the next.
|
static java.lang.String |
normalizeEOL(java.lang.String text)
A helper function for normalizing EOL prior to processing.
|
public final java.lang.String text
public final TextFormat format
TextFormat used to lay out this text.public final IRectangle bounds
TextBlock provides methods to help with this.public final IDimension size
bounds if
you want the precise height of just the rendered text.public abstract float ascent()
public abstract float descent()
public abstract float leading()
public static java.lang.String normalizeEOL(java.lang.String text)
Copyright © 2018. All Rights Reserved.