public class TLabel extends TComponent
Constructor and Description |
---|
TLabel(java.lang.String text)
Instantiates a new Terminal label.
|
Modifier and Type | Method and Description |
---|---|
void |
deselect(TDisplayDrawer drawer,
TerminalScreen screen) |
void |
draw(TDisplayDrawer drawer,
TerminalScreen screen) |
static TVector |
getSize(java.lang.String message)
Deprecated.
internal method
|
java.lang.String |
getText()
Gets text.
|
boolean |
isStretchable()
Is stretchable boolean.
|
void |
keyInput(TDisplayDrawer drawer,
TerminalScreen screen,
KeyInput keyInput,
Cancellable outKeyInputCancelling) |
void |
select(TDisplayDrawer drawer,
TerminalScreen screen) |
void |
setText(java.lang.String text)
Sets text.
|
getAbsoluteSize, getBackgroundColor, getCurrentDisplayingScreen, getForegroundColor, getMaximumSize, getMinimumSize, getSize, isDisplaying, isNoOutScreenMoving, isPositionFixed, isSelectable, isSizeFixed, onResize, setAbsoluteSize, setBackgroundColor, setDisplayingScreen, setForegroundColor, setMaximumSize, setMinimumSize, setNoOutScreenMoving, setPositionFixed, setSelectable, setSize, setSizeFixed
public TLabel(java.lang.String text)
text
- the textpublic java.lang.String getText()
public void setText(java.lang.String text)
text
- the textpublic void draw(TDisplayDrawer drawer, TerminalScreen screen)
draw
in class TComponent
drawer
- the drawerscreen
- the screenpublic void select(TDisplayDrawer drawer, TerminalScreen screen)
select
in class TComponent
drawer
- the drawerscreen
- the screenpublic void deselect(TDisplayDrawer drawer, TerminalScreen screen)
deselect
in class TComponent
drawer
- the drawerscreen
- the screenpublic void keyInput(TDisplayDrawer drawer, TerminalScreen screen, KeyInput keyInput, Cancellable outKeyInputCancelling)
keyInput
in class TComponent
drawer
- the drawerscreen
- the screenkeyInput
- the key inputoutKeyInputCancelling
- the out key input cancellingpublic boolean isStretchable()
TComponent
isStretchable
in class TComponent
public static TVector getSize(java.lang.String message)
message
- the message