public class Label extends Component implements TextComponent
Constructor and Description |
---|
Label()
Default constructor.
|
Label(float x,
float y,
float width,
float height)
Creates label with specified size and on specified position.
|
Label(java.lang.String text)
Creates label with specified text.
|
Label(java.lang.String text,
float x,
float y,
float width,
float height)
Creates label with specified text, size and on specified position.
|
Label(java.lang.String text,
org.joml.Vector2f position,
org.joml.Vector2f size)
Creates label with specified text, size and on specified position.
|
Label(org.joml.Vector2f position,
org.joml.Vector2f size)
Creates label with specified size and on specified position.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
TextState |
getTextState()
Returns current text state.
|
int |
hashCode() |
java.lang.String |
toString() |
add, addAll, clearChilds, containerIterator, contains, containsAll, count, forEach, getAbsolutePosition, getBackgroundColor, getBorder, getChilds, getCornerRadius, getFocusedStrokeColor, getIntersector, getListenerMap, getMetadata, getParent, getPosition, getSize, getTooltip, intersects, isEmpty, isEnabled, isFocused, isHovered, isPressed, isVisible, parallelStream, remove, removeAll, removeIf, setBackgroundColor, setBackgroundColor, setBorder, setCornerRadius, setEnabled, setFocused, setFocusedStrokeColor, setFocusedStrokeColor, setHovered, setIntersector, setListenerMap, setParent, setPosition, setPosition, setPressed, setSize, setSize, setTooltip, setVisible, stream
public Label()
public Label(float x, float y, float width, float height)
x
- x position.y
- y position.width
- label width.height
- label height.public Label(org.joml.Vector2f position, org.joml.Vector2f size)
position
- label position.size
- label size.public Label(java.lang.String text)
text
- text to set.public Label(java.lang.String text, float x, float y, float width, float height)
text
- text to set.x
- x position.y
- y position.width
- label width.height
- label height.public Label(java.lang.String text, org.joml.Vector2f position, org.joml.Vector2f size)
text
- text to set.position
- label position.size
- label size.public TextState getTextState()
getTextState
in interface TextComponent