Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: Translate

[12:7] extends: Transform

Wraps JavaFX Translate, a Transform that shifts a node by a fixed offset along the X, Y, and Z axes. Useful in both 2D and 3D scenes for moving nodes without changing their layout-managed position.

Methods

  • Translate (double X = 0.0, double Y = 0.0, double Z = 0.0)

    Creates a new Translate with the given X, Y, and Z offsets.

    • @p X is a double with the X offset in pixels (or world units in 3D).
    • @p Y is a double with the Y offset.
    • @p Z is a double with the Z offset.
  • setX (double X)

    Sets the X offset.

    • @p X is a double with the new X offset.
    • @r this object
  • setY (double Y)

    Sets the Y offset.

    • @p Y is a double with the new Y offset.
    • @r this object
  • setZ (double Z)

    Sets the Z offset.

    • @p Z is a double with the new Z offset.
    • @r this object
  • getX ()

    Returns the X offset.

    • @r A double with the X offset.
  • getY ()

    Returns the Y offset.

    • @r A double with the Y offset.
  • getZ ()

    Returns the Z offset.

    • @r A double with the Z offset.
  • xProperty ()

    Returns the property backing the X offset.

    • @r A DoubleProperty AJO.
  • yProperty ()

    Returns the property backing the Y offset.

    • @r A DoubleProperty AJO.
  • zProperty ()

    Returns the property backing the Z offset.

    • @r A DoubleProperty AJO.