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, setY
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBackground, getFont, getForeground, isHighlighted, setBackground, setFont, setForeground, update
public 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)
Entity
render
in class UiComponent
graphics
- Schnittstelle für Renderingpublic java.lang.String getText()
public void setText(java.lang.String text)
text
- Text dieses Labels