public class Label extends UiComponent
| Modifier and Type | Field | Description |
|---|---|---|
private java.lang.String |
text |
background, font, foreground, highlighted| Constructor | Description |
|---|---|
Label(double x,
double y,
double w,
double h,
java.lang.String text) |
Konstruiert neues Label.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getText() |
|
void |
render(SimpleGraphics graphics) |
Methode für Render-Code.
|
void |
setText(java.lang.String text) |
Setzt den Text dieses Labels.
|
collides, getH, getTexture, getW, getX, getY, isPointInside, move, resize, setH, setLocation, setSize, setTexture, setW, setX, setYclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBackground, getFont, getForeground, isHighlighted, setBackground, setFont, setForeground, updatepublic Label(double x,
double y,
double w,
double h,
java.lang.String text)
x - Horizontale Position in Pixelny - Vertikale Position in Pixelnw - Horizontale Größe in Pixelnh - Vertikale Größe in Pixelntext - Text dieses Labelspublic void render(SimpleGraphics graphics)
Entityrender in class UiComponentgraphics - Schnittstelle für Renderingpublic java.lang.String getText()
public void setText(java.lang.String text)
text - Text dieses Labels