Module imp2d

Class Rotation

All Implemented Interfaces:
Transformation, Manageable, PersistenceCapable, Shareable, UserFields, XObject, Map, Serializable

public class Rotation extends Node implements Transformation
See Also:
  • Field Details

  • Constructor Details

    • Rotation

      public Rotation()
    • Rotation

      public Rotation(double angle)
  • Method Details

    • getNTypeImpl

      protected Node.NType getNTypeImpl()
      Description copied from class: Node
      This method returns the Node.NType which describes the managed fields of the class of this node. This method has to be implemented in every concrete subclass.
      Overrides:
      getNTypeImpl in class Node
      Returns:
      type describing the managed fields of the class of this node
    • newInstance

      protected Node newInstance()
      Description copied from class: Node
      This method returns a new instance of the class of this node. This method has to be implemented in every concrete subclass.
      Overrides:
      newInstance in class Node
      Returns:
      new instance of class of this node
    • getAngle

      public double getAngle()
    • setAngle

      public void setAngle(double angle)
    • preTransform

      public void preTransform(Object object, boolean asNode, Matrix3d in, Matrix3d out, GraphState gs)
      Specified by:
      preTransform in interface Transformation
    • postTransform

      public void postTransform(Object object, boolean asNode, Matrix3d in, Matrix3d out, Matrix3d pre, GraphState gs)
      Specified by:
      postTransform in interface Transformation