Package sk.tuke.kpi.gamelib.graphics
Class TextLayout
- java.lang.Object
-
- sk.tuke.kpi.gamelib.graphics.TextLayout
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TextLayout.Align
-
Constructor Summary
Constructors Constructor Description TextLayout(@NotNull java.lang.String text, @NotNull Font font)
TextLayout(@NotNull java.lang.String text, @NotNull Font font, int width, @NotNull TextLayout.Align align)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
draw(@NotNull com.badlogic.gdx.graphics.g2d.Batch batch, float posX, float posY)
void
draw(@NotNull com.badlogic.gdx.graphics.g2d.Batch batch, float posX, float posY, float deltaTime)
@NotNull TextLayout.Align
getAlign()
@NotNull Font
getFont()
float
getHeight()
@NotNull java.lang.String
getText()
float
getWidth()
-
-
-
Constructor Detail
-
TextLayout
public TextLayout(@NotNull @NotNull java.lang.String text, @NotNull @NotNull Font font)
-
TextLayout
public TextLayout(@NotNull @NotNull java.lang.String text, @NotNull @NotNull Font font, int width, @NotNull @NotNull TextLayout.Align align)
-
-
Method Detail
-
getText
@NotNull public @NotNull java.lang.String getText()
-
getFont
@NotNull public @NotNull Font getFont()
-
getAlign
@NotNull public @NotNull TextLayout.Align getAlign()
-
getWidth
public float getWidth()
-
getHeight
public float getHeight()
-
draw
public void draw(@NotNull @NotNull com.badlogic.gdx.graphics.g2d.Batch batch, float posX, float posY)
-
-