Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: Box

[12:7] extends: Shape3D

Wraps JavaFX Box, an axis aligned 3D box primitive defined by width (X extent), height (Y extent), and depth (Z extent). Centered at the local origin. Inherits material, cullFace, and drawMode from Shape3D.

Methods

  • Box (double Width = 2.0, double Height = 2.0, double Depth = 2.0)

    Creates a new Box with the given width, height, and depth.

    • @p Width is a double with the X extent.
    • @p Height is a double with the Y extent.
    • @p Depth is a double with the Z extent.
  • setWidth (double W)

    Sets the width (X extent).

    • @p W is a double with the new width.
    • @r this object
  • setHeight (double H)

    Sets the height (Y extent).

    • @p H is a double with the new height.
    • @r this object
  • setDepth (double D)

    Sets the depth (Z extent).

    • @p D is a double with the new depth.
    • @r this object
  • getWidth ()

    Returns the width.

    • @r A double with the width.
  • getHeight ()

    Returns the height.

    • @r A double with the height.
  • getDepth ()

    Returns the depth.

    • @r A double with the depth.
  • widthProperty ()

    Returns the DoubleProperty backing the width (X extent).

    • @r An AJO wrapping javafx.beans.property.DoubleProperty.
  • heightProperty ()

    Returns the DoubleProperty backing the height (Y extent).

    • @r An AJO wrapping javafx.beans.property.DoubleProperty.
  • depthProperty ()

    Returns the DoubleProperty backing the depth (Z extent).

    • @r An AJO wrapping javafx.beans.property.DoubleProperty.