Package com.spinyowl.legui.component
Class Label
java.lang.Object
com.spinyowl.legui.component.Component
com.spinyowl.legui.component.AbstractTextComponent
com.spinyowl.legui.component.Label
- All Implemented Interfaces:
TextComponent,Serializable
Class represent single line non-editable text component.
- See Also:
-
Field Summary
FieldsFields inherited from class com.spinyowl.legui.component.AbstractTextComponent
textState -
Constructor Summary
ConstructorsConstructorDescriptionLabel()Default constructor.Label(float x, float y, float width, float height) Creates label with specified size and on specified position.Creates label with specified text.Creates label with specified text, size and on specified position.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. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()voidsetTextDirection(TextDirection textDirection) toString()Methods inherited from class com.spinyowl.legui.component.AbstractTextComponent
getTextState, setTextStateMethods inherited from class com.spinyowl.legui.component.Component
add, add, addAll, clearChildComponents, containerIterator, contains, containsAll, count, forEach, getAbsolutePosition, getChildComponents, getFocusedStyle, getFrame, getHoveredStyle, getIntersector, getLayer, getListenerMap, getMetadata, getParent, getPosition, getPressedStyle, getSize, getStyle, getTabIndex, getTooltip, indexOfChild, intersects, isEmpty, isEnabled, isFocusable, isFocused, isHovered, isPressed, isTabFocusable, isVisible, keepRendering, keepRendering, parallelStream, remove, remove, removeAll, removeIf, setEnabled, setFocusable, setFocused, setHovered, setIntersector, setListenerMap, setParent, setPosition, setPosition, setPressed, setSize, setSize, setStyle, setTabFocusable, setTabIndex, setTooltip, stream
-
Field Details
-
DEFAULT_LABEL_TEXT
Default label text.- See Also:
-
-
Constructor Details
-
Label
public Label()Default constructor. Creates label with 'Label' text. -
Label
public Label(float x, float y, float width, float height) Creates label with specified size and on specified position.- Parameters:
x- x position.y- y position.width- label width.height- label height.
-
Label
public Label(org.joml.Vector2f position, org.joml.Vector2f size) Creates label with specified size and on specified position.- Parameters:
position- label position.size- label size.
-
Label
Creates label with specified text.- Parameters:
text- text to set.
-
Label
Creates label with specified text, size and on specified position.- Parameters:
text- text to set.x- x position.y- y position.width- label width.height- label height.
-
Label
Creates label with specified text, size and on specified position.- Parameters:
text- text to set.position- label position.size- label size.
-
-
Method Details