Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: SerializablePoint2D

[13:7] extends: FxObj

Wraps FXGL's SerializablePoint2D (com.almasb.fxgl.cutscene.dialogue.SerializablePoint2D), the Jackson-friendly (x, y) pair used by SerializableGraph's uiMetadata map to persist node positions in an editor view.

Methods

  • SerializablePoint2D (X = null, Y = null)

    Creates a new SerializablePoint2D. Pass null for both X and Y to construct an empty wrapper for adopt.

    • @p X is the x coordinate.
    • @p Y is the y coordinate.
  • adopt (object Ajo)

    Wraps an existing SerializablePoint2D AussomJavaObject.

    • @p Ajo is an AussomJavaObject around a SerializablePoint2D.
    • @r A new wrapper.
  • getX ()

    Returns the x coordinate. @r A double.

  • getY ()

    Returns the y coordinate. @r A double.