Class StringUtil.TextLayoutInfo
java.lang.Object
net.sourceforge.jeuclid.elements.support.text.StringUtil.TextLayoutInfo
- Enclosing class:
StringUtil
Contains layout information retrieved from a TextLayout.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTextLayoutInfo(float newAscent, float newDescent, float newOffset, float newWidth) Default Constructor. -
Method Summary
Modifier and TypeMethodDescriptionfloatGetter method for ascent.floatGetter method for descent.floatGetter method for offset.floatgetWidth()Getter method for width.
-
Constructor Details
-
TextLayoutInfo
protected TextLayoutInfo(float newAscent, float newDescent, float newOffset, float newWidth) Default Constructor.- Parameters:
newAscent- text ascent.newDescent- text descent.newOffset- text start offset.newWidth- text width.
-
-
Method Details
-
getAscent
public float getAscent()Getter method for ascent.- Returns:
- the ascent
-
getDescent
public float getDescent()Getter method for descent.- Returns:
- the descent
-
getOffset
public float getOffset()Getter method for offset.- Returns:
- the offset
-
getWidth
public float getWidth()Getter method for width.- Returns:
- the width
-