Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: TextData

[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.

Methods

  • 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.

    • @p ColorObj is a fx.Color wrapper or a javafx.scene.paint.Color AJO.