Class TextLabel
java.lang.Object
top.untold.frostlumen.core.gui.ParentNode<TextLabel>
top.untold.frostlumen.core.gui.GuiNode<TextLabel>
top.untold.frostlumen.core.gui.node.TextNode<TextLabel>
top.untold.frostlumen.core.gui.node.TextLabel
- All Implemented Interfaces:
HasDrawBackground<TextLabel>, InputBlocker<TextLabel>
public class TextLabel
extends TextNode<TextLabel>
implements HasDrawBackground<TextLabel>, InputBlocker<TextLabel>
-
Nested Class Summary
Nested classes/interfaces inherited from class TextNode
TextNode.AbstractTextRenderDescription<R>, TextNode.CanWrappedTextRenderDescription, TextNode.TextRenderDescriptionNested classes/interfaces inherited from class GuiNode
GuiNode.Background -
Field Summary
Fields inherited from class GuiNode
angle, background, clipChildren, currentMouseClickButtons, init, layoutOrder, mouseEnterListenerRegistry, mouseInNode, mouseLeaveListenerRegistry, parent, root, xAnchor, yAnchor, zIndexFields inherited from class ParentNode
children, position, realAngle, realPositionMaxX, realPositionMaxY, realPositionX, realPositionY, realSizeX, realSizeY, self, size -
Constructor Summary
ConstructorsConstructorDescriptionTextLabel(String text, ScaleOffset position, ScaleOffset size) TextLabel(String text, Font font, ScaleOffset position, ScaleOffset size) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanprotected voidprotected voidonMouseMoveEvent(MouseMoveEvent event) registerKeyEventListener(BiConsumer<TextLabel, KeyEvent> callback) protected voidsetBlockInput(boolean blockInput) setDrawBackground(boolean drawBackground) unregisterKeyEventListener(BiConsumer<TextLabel, KeyEvent> callback) Methods inherited from class TextNode
init, onRelayoutMethods inherited from class GuiNode
addChild, background, dispatchFrameBufferSizeChangeEvent, dispatchInit, dispatchKeyEvent, dispatchMouseButtonEvent, dispatchMouseEnterWindowEvent, dispatchMouseLeaveWindowEvent, dispatchMouseMoveEvent, dispatchMouseScrollEvent, dispatchPreeditEvent, dispatchRender, dispatchTickEvent, dispatchUserDropFilesEvent, dispatchUserInputTextEvent, dispatchUserRequestWindowCloseEvent, dispatchWindowCloseEvent, dispatchWindowFocusChangeEvent, dispatchWindowFocusNodeChangeEvent, dispatchWindowMaximizeEvent, dispatchWindowMinimizeEvent, dispatchWindowMoveEvent, getAngle, getCurrentMouseClickButtons, getLayoutOrder, getParent, getXAnchor, getYAnchor, getZIndex, isClipChildren, isFocused, isMouseInNode, letChildrenOperationPosition, onFrameBufferSizeChangeEvent, onKeyEvent, onMouseEnterWindowEvent, onMouseLeaveWindowEvent, onMouseScrollEvent, onPreeditEvent, onUserDropFilesEvent, onUserInputTextEvent, onUserRequestWindowCloseEvent, onWindowCloseEvent, onWindowFocusChangeEvent, onWindowFocusNodeChangeEvent, onWindowMaximizeEvent, onWindowMinimizeEvent, onWindowMoveEvent, operationPosition, registerMouseEnterListener, registerMouseLeaveListener, setAnchor, setAngle, setClipChildren, setFocused, setLayoutOrder, setParent, setPosition, setSize, setXAnchor, setYAnchor, setZIndex, tick, unregisterMouseEnterListener, unregisterMouseLeaveListenerMethods inherited from class ParentNode
addChildren, forwardFor, getChildren, getPosition, getRealPositionMaxX, getRealPositionMaxY, getRealPositionX, getRealPositionY, getRealSizeX, getRealSizeY, getSize, registerAfterRenderListener, registerBeforeRenderListener, removeChild, removeChildren, reverseFor, sortChildren, unregisterAfterRenderListener, unregisterBeforeRenderListener
-
Constructor Details
-
TextLabel
-
TextLabel
-
-
Method Details
-
registerMouseButtonEventListener
- Specified by:
registerMouseButtonEventListenerin interfaceInputBlocker<TextLabel>
-
registerMouseScrollEventListener
- Specified by:
registerMouseScrollEventListenerin interfaceInputBlocker<TextLabel>
-
registerKeyEventListener
- Specified by:
registerKeyEventListenerin interfaceInputBlocker<TextLabel>
-
registerMouseMoveEventListener
- Specified by:
registerMouseMoveEventListenerin interfaceInputBlocker<TextLabel>
-
unregisterMouseButtonEventListener
public TextLabel unregisterMouseButtonEventListener(BiConsumer<TextLabel, MouseButtonEvent> callback) - Specified by:
unregisterMouseButtonEventListenerin interfaceInputBlocker<TextLabel>
-
unregisterMouseScrollEventListener
public TextLabel unregisterMouseScrollEventListener(BiConsumer<TextLabel, MouseScrollEvent> callback) - Specified by:
unregisterMouseScrollEventListenerin interfaceInputBlocker<TextLabel>
-
unregisterMouseMoveEventListener
- Specified by:
unregisterMouseMoveEventListenerin interfaceInputBlocker<TextLabel>
-
unregisterKeyEventListener
- Specified by:
unregisterKeyEventListenerin interfaceInputBlocker<TextLabel>
-
onMouseButtonEvent
- Overrides:
onMouseButtonEventin classGuiNode<TextLabel>
-
onMouseMoveEvent
- Overrides:
onMouseMoveEventin classGuiNode<TextLabel>
-
setBlockInput
- Specified by:
setBlockInputin interfaceInputBlocker<TextLabel>
-
isBlockInput
public boolean isBlockInput()- Specified by:
isBlockInputin interfaceInputBlocker<TextLabel>
-
description
-
render
-
setDrawBackground
- Specified by:
setDrawBackgroundin interfaceHasDrawBackground<TextLabel>
-
isDrawBackground
public boolean isDrawBackground()- Specified by:
isDrawBackgroundin interfaceHasDrawBackground<TextLabel>
-