| Modifier and Type | Field and Description |
|---|---|
(package private) RectBounds |
bounds |
(package private) float |
leading |
(package private) int |
length |
(package private) float |
lsb |
(package private) float |
rsb |
(package private) TextRun[] |
runs |
(package private) int |
start |
| Constructor and Description |
|---|
TextLine(int start,
int length,
TextRun[] runs,
float width,
float ascent,
float descent,
float leading) |
| Modifier and Type | Method and Description |
|---|---|
RectBounds |
getBounds()
Returns metrics information about the line as follow:
bounds().getWidth() - the width of the line.
|
float |
getLeading() |
float |
getLeftSideBearing()
Returns the left side bearing of the line (negative).
|
int |
getLength()
Returns the line length in character.
|
float |
getRightSideBearing()
Returns the right side bearing of the line (positive).
|
TextRun[] |
getRuns()
Returns the list of GlyphList in the line.
|
int |
getStart()
Returns the line start offset.
|
void |
setAlignment(float x) |
void |
setSideBearings(float lsb,
float rsb) |
void |
setWidth(float width) |
TextRun[] runs
RectBounds bounds
float lsb
float rsb
float leading
int start
int length
public TextLine(int start,
int length,
TextRun[] runs,
float width,
float ascent,
float descent,
float leading)
public RectBounds getBounds()
TextLinepublic float getLeading()
public TextRun[] getRuns()
TextLinepublic int getStart()
TextLinepublic int getLength()
TextLinepublic void setSideBearings(float lsb,
float rsb)
public float getLeftSideBearing()
TextLinegetLeftSideBearing in interface TextLinepublic float getRightSideBearing()
TextLinegetRightSideBearing in interface TextLinepublic void setAlignment(float x)
public void setWidth(float width)