public class BitmapFontGlyphLayout extends com.badlogic.gdx.graphics.g2d.GlyphLayout implements FontGlyphLayout
Constructor and Description |
---|
BitmapFontGlyphLayout(LibgdxBitmapFont font) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes of this instance
|
GameFont |
getFont()
Returns the
GameFont that this FontGlyphLayout was created from |
float |
getHeight()
Returns the total height of the text
|
float |
getWidth()
Returns the total width of the text
|
void |
setText(java.lang.CharSequence str)
Sets the text to compute the geometry for
|
void |
setText(java.lang.CharSequence str,
Color color,
float targetWidth,
int halign,
boolean wrap)
Sets the text to compute the geometry for
|
reset, setText, setText, setText, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
reset
public BitmapFontGlyphLayout(LibgdxBitmapFont font)
public void setText(java.lang.CharSequence str)
FontGlyphLayout
setText
in interface FontGlyphLayout
str
- The text to compute the geometry forpublic void setText(java.lang.CharSequence str, Color color, float targetWidth, int halign, boolean wrap)
FontGlyphLayout
setText
in interface FontGlyphLayout
str
- The text to compute the geometry forcolor
- The Color
of the texthalign
- The alignment based on Align
public void dispose()
FontGlyphLayout
dispose
in interface FontGlyphLayout
public float getWidth()
FontGlyphLayout
getWidth
in interface FontGlyphLayout
public float getHeight()
FontGlyphLayout
getHeight
in interface FontGlyphLayout
public GameFont getFont()
FontGlyphLayout
GameFont
that this FontGlyphLayout
was created fromgetFont
in interface FontGlyphLayout