Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: TextViewComponent

[14:7] extends: ChildViewComponent

Wraps FXGL's TextViewComponent (com.almasb.fxgl.dsl.components.view.TextViewComponent), a ChildViewComponent that displays a static Text label at the configured (x, y) offset from the entity origin.

Methods

  • TextViewComponent (double X = 0.0, double Y = 0.0, string Message = "")

    Creates a new TextViewComponent.

    • @p X is the X offset from the entity origin.
    • @p Y is the Y offset from the entity origin.
    • @p Message is the text to display.
  • adopt (object Ajo)

    Wraps an existing TextViewComponent AussomJavaObject.

  • getMessage ()

    Returns the message string.

  • getText ()

    Returns the underlying javafx.scene.text.Text AJO.