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()
TextLine
public float getLeading()
public TextRun[] getRuns()
TextLine
public int getStart()
TextLine
public int getLength()
TextLine
public void setSideBearings(float lsb, float rsb)
public float getLeftSideBearing()
TextLine
getLeftSideBearing
in interface TextLine
public float getRightSideBearing()
TextLine
getRightSideBearing
in interface TextLine
public void setAlignment(float x)
public void setWidth(float width)