Class TransformationEvent

All Implemented Interfaces:
Serializable, Comparable

public final class TransformationEvent extends PrimitiveRenderEvent
An event type for transformation.
See Also:
  • Field Details

    • UNDEFINED

      public static final int UNDEFINED
      Indicates the transformation type is undefined.
      See Also:
    • SCALE

      public static final int SCALE
      Indicates this is a scaling transformation.
      See Also:
    • TRANSLATE

      public static final int TRANSLATE
      Indicates this is a tranlating transformatino.
      See Also:
    • ROTATE

      public static final int ROTATE
      Indicates this is a rotating transformation.
      See Also:
  • Constructor Details

    • TransformationEvent

      public TransformationEvent(Object oSource)
      The constructor.
  • Method Details

    • setTransform

      public void setTransform(int iTransform)
      Sets the transformation type of this event. The value must be one of these defined in this class:
    • getTransform

      public int getTransform()
      Returns:
      Returns the transformation type of this event. The value could be one of these defined in this class:
    • setScale

      public void setScale(double dScale)
      Sets the scale of current event.
    • getScale

      public double getScale()
      Returns:
      Returns the scale of current event.
    • setTranslation

      public void setTranslation(double dTranslateX, double dTranslateY)
      Sets the translation of current event.
    • getTranslateX

      public double getTranslateX()
      Returns:
      Returns the X translation of current event.
    • getTranslateY

      public double getTranslateY()
      Returns:
      Returns the Y tranlation of current event.
    • setRotation

      public void setRotation(double dAngleInDegrees)
      Sets the rotation of current event.
    • getRotation

      public double getRotation()
      Returns:
      Returns the rotation of current event.
    • reset

      public void reset()
      Description copied from class: ChartEvent
      Resets the inner state of current event. This must be implemented if the object is cached and reused.
      Specified by:
      reset in class ChartEvent