ContainerChild, Element, be.yildizgames.common.util.Registerable, WidgetSimpleTextLinepublic interface TextLine extends ContainerChild, be.yildizgames.common.util.Registerable
| Modifier and Type | Interface | Description |
|---|---|---|
static class |
TextLine.TextPosition |
Possible text position.
|
Element.Alignment| Modifier and Type | Method | Description |
|---|---|---|
String |
getContent() |
|
TextLine |
setColor(Color color) |
Set a new color to this text.
|
void |
setFont(Font font) |
Set the text font.
|
TextLine |
setText(int i) |
Set the text to print.
|
TextLine |
setText(be.yildizgames.common.client.translation.Key key) |
|
TextLine |
setText(be.yildizgames.common.client.translation.Key.MultiKey key) |
|
TextLine |
setText(String text) |
Set the text to print.
|
TextLine |
setTextPosition(TextLine.TextPosition textPosition) |
Set the text alignment.
|
detachFromParent, getParent, setLeftFromParent, setLeftFromParent, setTopFromParent, setTopFromParent, updateAddPositionValue, updateSizeAfterZoomaddToLeft, addToPosition, addToTop, getBottom, getCoordinates, getHeight, getLeft, getRight, getTop, getWidth, hide, isVisible, resetVirtualHeight, setCoordinates, setHeight, setLeft, setLeft, setLeft, setLeft, setPosition, setPosition, setPosition, setSize, setSize, setTop, setTop, setTop, setTop, setVirtualHeight, setVisible, setWidth, showaddEmptyZone, addKeyboardListener, addMouseDoubleLeftClickListener, addMouseDragListener, addMouseLeftClickListener, addMouseMoveListener, addMouseReleaseListener, addMouseWheelListener, addOnMouseOverListener, addSpecialKeyListener, align, contains, contains, focus, getAbsoluteLeft, getAbsoluteTop, highlight, isFocusable, playAnimation, registerAnimation, removeAllClickListeners, stopAnimationTextLine setText(String text)
text - Text to print, the toString method of the object will be used.TextLine setText(be.yildizgames.common.client.translation.Key key)
TextLine setText(be.yildizgames.common.client.translation.Key.MultiKey key)
TextLine setText(int i)
i - Text to print, the int will be converted to a string message.TextLine setColor(Color color)
color - Color to set.void setFont(Font font)
font - New font to use.TextLine setTextPosition(TextLine.TextPosition textPosition)
textPosition - Text alignment.String getContent()
Copyright © 2014–2018. All rights reserved.