Basics
Guides
API Reference
Basics
Guides
API Reference
[13:7] extends: FxObj
Wraps FXGL's TextData class (com.almasb.fxgl.entity.level.tiled.TextData), the text-object payload attached to a TiledObject when the object is a text label rather than a tile-or-shape object.
TextData ()
Empty default constructor; populated by adopt.
adopt (object Ajo)
Wraps an existing TextData AussomJavaObject.
getText ()
Returns the displayed text.
isWrap ()
Returns whether the text wraps.
getColor ()
Returns the text fill Color AJO.
setText (string V)
Sets the displayed text.
setWrap (bool V)
Sets the wrap flag (true wraps to the next line).
setColor (object ColorObj)
Sets the text fill color from a Color wrapper or raw AJO.
ColorObj is a fx.Color wrapper or a javafx.scene.paint.Color AJO.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.