Package jltk.gui
Class Label
- java.lang.Object
-
- jltk.Component
-
- jltk.gui.Control
-
- jltk.gui.Labeled
-
- jltk.gui.Label
-
public class Label extends Labeled
Label is used to show some text. events: none- Version:
- 18.05.2022
- Author:
- ms
-
-
Field Summary
Fields Modifier and Type Field Description protected javafx.scene.control.Label
fxLabel
-
Fields inherited from class jltk.gui.Labeled
font, fxLabledComponent
-
Fields inherited from class jltk.Component
fxNode, hasFocus, myWindow, onFocusGained, onFocusLost
-
-
Method Summary
-
Methods inherited from class jltk.gui.Labeled
getFont, getFontSize, getText, init, isUnderline, setFont, setFontColor, setFontColor, setFontColor, setFontSize, setFontStyle, setText, setTextAlignment, setUnderline
-
Methods inherited from class jltk.gui.Control
getColor, getHeight, getWidth, init, setColor, setColor, setColor, setHeight, setSize, setTooltip, setWidth
-
Methods inherited from class jltk.Component
activate, deactivate, focus, getX, getY, hasFocus, hide, init, istActive, isVisible, runMethodByName, setOnFocusGained, setOnFocusLost, setPosition, show, toBack, toFront
-
-
-
-
Constructor Detail
-
Label
public Label(double pLeft, double pTop, double pWidth, double pHeight, String pText)
Creates the label on the specified postion.- Parameters:
pLeft
- The horizontal coordinatepTop
- The vertical coordinatepWidth
- The width of the labelpHeight
- The height of the labelpText
- The text of the label
-
Label
public Label(Window pWindow, double pLeft, double pTop, double pWidth, double pHeight, String pText)
Creates the label- Parameters:
pLeft
- The horizontal coordinatepTop
- The vertical coordinatepWidth
- The width of the labelpHeight
- The height of the labelpWindow
- The window, the label should be placedpText
- The label of the label
-
-