Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: ChildViewComponent

[20:7] extends: Component

Wraps FXGL's ChildViewComponent (com.almasb.fxgl.dsl.components.view.ChildViewComponent), the abstract base for view-attaching components. Concrete subclasses (GenericBarViewComponent, TextViewComponent, etc.) carry their own view Node and pin it to the entity with an (x, y) offset. This wrapper is abstract; instantiate one of the concrete subclasses or rewrap an existing AJO with adopt().

Methods

  • ChildViewComponent ()

    Empty default constructor; populate with adopt().

  • adopt (object Ajo)

    Wraps an existing ChildViewComponent AussomJavaObject.

  • getX ()

  • setX (double Value)

  • getY ()

  • setY (double Value)

  • getIsTransformApplied ()

    Returns whether the view honors the entity's transform.

  • getViewRoot ()

    Returns the view-root Group AJO this component attaches.