Example usage for Java com.badlogic.gdx.scenes.scene2d.ui Label fields, constructors, methods, implement or subclass
The text is from its open source code.
Label(CharSequence text, Skin skin) | |
Label(CharSequence text, LabelStyle style) | |
Label(CharSequence text, Skin skin, String styleName) | |
Label(CharSequence text, Skin skin, String fontName, Color color) Creates a label, using a LabelStyle that has a BitmapFont with the specified name from the skin and the specified color. | |
Label(CharSequence text, Skin skin, String fontName, String colorName) Creates a label, using a LabelStyle that has a BitmapFont with the specified name and the specified color from the skin. | |
Label |
void | draw(Batch batch, float parentAlpha) |
float | getFontScaleX() |
float | getPrefHeight() |
float | getPrefWidth() |
LabelStyle | getStyle() Returns the label's style. |
StringBuilder | getText() |
TextBounds | getTextBounds() |
void | invalidate() |
void | setAlignment(int alignment) |
void | setAlignment(int labelAlign, int lineAlign) |
void | setEllipsis(boolean ellipsis) When true the text will be truncated "..." |
void | setFontScale(float fontScale) |
void | setStyle(LabelStyle style) |
void | setText(CharSequence newText) |
void | setWrap(boolean wrap) If false, the text will only wrap where it contains newlines (\n). |