public static class SimpleTextLayout.TextBoundingBox extends Object
TextRenderer
, the leftX
and
baselineY
should be used as the text origin.Modifier and Type | Field and Description |
---|---|
float |
baselineY
The y coordinate for the baseline, this is in the same
coordinate-system as the provided parameters in
SimpleTextLayout.doLayout(String, float, float, float) . |
float |
leftX
The left-most x coordinate for the text.
|
float |
maxDescent
The maximum descent of any character in this string.
|
float |
maxHeight
The difference between the maximum ascent of any character and the
lowest descent of any character.
|
String |
text
The text to display on this line.
|
float |
width
The total width of the string.
|
Constructor and Description |
---|
SimpleTextLayout.TextBoundingBox(String text,
float baselineY,
float leftX,
float descent,
float width,
float height) |
Modifier and Type | Method and Description |
---|---|
float |
getMaxX()
Gets the maximum X coordinate of the text bounding box.
|
float |
getMaxY()
Gets the maximum y coordinate of the text bounding box.
|
float |
getMinX()
Gets the minimum X coordinate of the text bounding box.
|
float |
getMinY()
Gets the minimum Y coordinate of the text bounding box.
|
public final String text
public final float baselineY
SimpleTextLayout.doLayout(String, float, float, float)
.public final float leftX
public final float maxDescent
public final float width
public final float maxHeight
public SimpleTextLayout.TextBoundingBox(String text, float baselineY, float leftX, float descent, float width, float height)
public float getMaxY()
public float getMinY()
public float getMinX()
public float getMaxX()
Copyright © 2013 Metron, Inc.. All rights reserved.