Interface TextLine
-
- All Superinterfaces:
ContainerChild,Element,be.yildizgames.common.util.Registerable,Widget
- All Known Subinterfaces:
TimeTextLine
public interface TextLine extends ContainerChild, be.yildizgames.common.util.Registerable
- Author:
- Grégory Van den Borre
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTextLine.TextPositionPossible text position.-
Nested classes/interfaces inherited from interface be.yildizgames.module.graphic.gui.internal.Element
Element.Alignment
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetContent()TextLinesetColor(be.yildizgames.module.color.Color color)Set a new color to this text.voidsetFont(Font font)Set the text font.TextLinesetText(int i)Set the text to print.TextLinesetText(be.yildizgames.common.client.translation.TranslationKey key)TextLinesetText(be.yildizgames.common.client.translation.TranslationKey.MultiKey key)TextLinesetText(String text)Set the text to print.TextLinesetTextPosition(TextLine.TextPosition textPosition)Set the text alignment.-
Methods inherited from interface be.yildizgames.module.graphic.gui.ContainerChild
detachFromParent, getParent, setLeftFromParent, setLeftFromParent, setTopFromParent, setTopFromParent, updateAddPositionValue, updateSizeAfterZoom
-
Methods inherited from interface be.yildizgames.module.graphic.gui.internal.Element
addToLeft, addToPosition, addToTop, getBottom, getCoordinates, getHeight, getLeft, getRight, getTop, getWidth, hide, isVisible, resetVirtualHeight, setCoordinates, setHeight, setLeft, setLeft, setLeft, setLeft, setPosition, setPosition, setSize, setSize, setTop, setTop, setTop, setTop, setVirtualHeight, setVisible, setWidth, show
-
Methods inherited from interface be.yildizgames.module.graphic.gui.Widget
addEmptyZone, addKeyboardListener, addMouseDoubleLeftClickListener, addMouseDragListener, addMouseLeftClickListener, addMouseMoveListener, addMouseReleaseListener, addMouseRightClickListener, addMouseWheelListener, addOnMouseOverListener, align, contains, contains, focus, getAbsoluteLeft, getAbsoluteTop, highlight, isFocusable, playAnimation, registerAnimation, removeAllClickListeners, stopAnimation
-
-
-
-
Method Detail
-
setText
TextLine setText(String text)
Set the text to print.- Parameters:
text- Text to print, the toString method of the object will be used.- Returns:
- This object for chaining.
-
setText
TextLine setText(be.yildizgames.common.client.translation.TranslationKey key)
-
setText
TextLine setText(be.yildizgames.common.client.translation.TranslationKey.MultiKey key)
-
setText
TextLine setText(int i)
Set the text to print.- Parameters:
i- Text to print, the int will be converted to a string message.- Returns:
- This object for chaining.
-
setColor
TextLine setColor(be.yildizgames.module.color.Color color)
Set a new color to this text.- Parameters:
color- Color to set.- Returns:
- This object for chaining.
-
setFont
void setFont(Font font)
Set the text font.- Parameters:
font- New font to use.
-
setTextPosition
TextLine setTextPosition(TextLine.TextPosition textPosition)
Set the text alignment.- Parameters:
textPosition- Text alignment.- Returns:
- This object for chaining.
-
getContent
String getContent()
- Returns:
- The text content.
-
-