Java com.badlogic.gdx.scenes.scene2d.ui Label fields, constructors, methods, implement or subclass

Example usage for Java com.badlogic.gdx.scenes.scene2d.ui Label fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.badlogic.gdx.scenes.scene2d.ui Label.

The text is from its open source code.

Subclass

com.badlogic.gdx.scenes.scene2d.ui.Label has subclasses.
Click this link to see all its subclasses.

Constructor

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

Method

voiddraw(Batch batch, float parentAlpha)
floatgetFontScaleX()
floatgetPrefHeight()
floatgetPrefWidth()
LabelStylegetStyle()
Returns the label's style.
StringBuildergetText()
TextBoundsgetTextBounds()
voidinvalidate()
voidsetAlignment(int alignment)
voidsetAlignment(int labelAlign, int lineAlign)
voidsetEllipsis(boolean ellipsis)
When true the text will be truncated "..."
voidsetFontScale(float fontScale)
voidsetStyle(LabelStyle style)
voidsetText(CharSequence newText)
voidsetWrap(boolean wrap)
If false, the text will only wrap where it contains newlines (\n).