Class Rectangle2D

All Implemented Interfaces:
X3DNode, Rectangle2D, X3DGeometryNode

public class Rectangle2D extends X3DConcreteNode implements Rectangle2D
Rectangle2D is a geometry node that defines a 2D rectangle in X-Y plane.

X3D node tooltip: [X3DGeometryNode] Rectangle2D is a geometry node that defines a 2D rectangle in X-Y plane.
Package hint: This org.web3d.x3d.jsail concrete class is used for implementing a standalone X3D object as a Plain Old Java Object (POJO). If you are writing Java code for use inside an X3D Script node, compile separate code using only the org.web3d.x3d.sai package instead.
See Also:
X3D Abstract Specification: Rectangle2D, X3D Tooltips: Rectangle2D, X3D Scene Authoring Hints
  • Field Details

    • NAME

      public static final String NAME
      String constant NAME provides name of this element: Rectangle2D.
      See Also:
      Constant Field Values
    • COMPONENT

      public static final String COMPONENT
      String constant COMPONENT defines X3D component for the Rectangle2D element: Geometry2D
      See Also:
      Constant Field Values
    • LEVEL

      public static final int LEVEL
      Integer constant LEVEL provides default X3D Geometry2D component level for this element: 1
      See Also:
      Constant Field Values
    • IS_DEFAULT_VALUE

      public static final IS IS_DEFAULT_VALUE
      SFNode field named IS has default value null (Java syntax) or NULL (XML syntax).
    • METADATA_DEFAULT_VALUE

      public static final X3DMetadataObject METADATA_DEFAULT_VALUE
      SFNode field named metadata has default value null (Java syntax) or NULL (XML syntax).
    • SIZE_DEFAULT_VALUE

      public static final float[] SIZE_DEFAULT_VALUE
      SFVec2f field named size has default value {2f,2f} (Java syntax) or 2 2 (XML syntax).
    • SOLID_DEFAULT_VALUE

      public static final boolean SOLID_DEFAULT_VALUE
      SFBool field named solid has default value false (Java syntax) or false (XML syntax).
      See Also:
      Constant Field Values
    • containerField_DEFAULT_VALUE

      public static final String containerField_DEFAULT_VALUE
      containerField describes typical field relationship of a node to its parent. Usage is not ordinarily needed when using this API, default value is provided for informational purposes.
      See Also:
      X3D Scene Authoring Hints: containerField, X3D Unified Object Model (X3DUOM), Constant Field Values
    • fromField_IS

      public static final String fromField_IS
      fromField ROUTE name for SFNode field named IS.
      See Also:
      Constant Field Values
    • fromField_METADATA

      public static final String fromField_METADATA
      fromField ROUTE name for SFNode field named metadata.
      See Also:
      Constant Field Values
    • toField_METADATA

      public static final String toField_METADATA
      toField ROUTE name for SFNode field named metadata.
      See Also:
      Constant Field Values
    • fromField_SIZE

      public static final String fromField_SIZE
      fromField ROUTE name for SFVec2f field named size.
      See Also:
      Constant Field Values
    • toField_SIZE

      public static final String toField_SIZE
      toField ROUTE name for SFVec2f field named size.
      See Also:
      Constant Field Values
    • fromField_SOLID

      public static final String fromField_SOLID
      fromField ROUTE name for SFBool field named solid.
      See Also:
      Constant Field Values
    • toField_SOLID

      public static final String toField_SOLID
      toField ROUTE name for SFBool field named solid.
      See Also:
      Constant Field Values
  • Constructor Details

    • Rectangle2D

      public Rectangle2D()
      Constructor for Rectangle2D to initialize member variables with default values.
    • Rectangle2D

      public Rectangle2D(String DEFlabel)
      Utility constructor that assigns DEF label after initializing member variables with default values.
      Parameters:
      DEFlabel - unique DEF name for this X3D node
  • Method Details