Package rekit.logic.gui
Class Text
java.lang.Object
rekit.logic.gui.GuiElement
rekit.logic.gui.Text
This class realizes a simple
A Text which can be visualized on the view.
GuiElement
:A Text which can be visualized on the view.
-
Field Summary
Fields inherited from class rekit.logic.gui.GuiElement
pos, scene, size, visible
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the text options.getText()
Get the text.void
Template method that will be called periodically after being added to aIScene
.void
setOptions
(TextOptions options) Set the text options.Set the text.Methods inherited from class rekit.logic.gui.GuiElement
getPos, getScene, getSize, isVisible, logicLoop, render, setPos, setVisible
-
Constructor Details
-
Text
Create the text element.- Parameters:
scene
- the sceneoptions
- the textoptions
-
-
Method Details
-
getText
Get the text.- Returns:
- the text
-
setText
Set the text.- Parameters:
text
- the new text- Returns:
this
-
getOptions
Get the text options.- Returns:
- the options
-
setOptions
Set the text options.- Parameters:
options
- the new options
-
internalRender
Description copied from class:GuiElement
Template method that will be called periodically after being added to a
IScene
. Must be as performant as possible to keep the FPS low, since it will be called in every render-loop.Should be overwritten in sub classes for custom visualization using the
GameGrid
.- Specified by:
internalRender
in classGuiElement
- Parameters:
f
- theGameGrid
that represents the games field and supplies primitive drawing operations.
-