org.eclipse.birt.chart.event
Class TransformationEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.eclipse.birt.chart.event.ChartEvent
          extended by org.eclipse.birt.chart.event.PrimitiveRenderEvent
              extended by org.eclipse.birt.chart.event.TransformationEvent
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public final class TransformationEvent
extends PrimitiveRenderEvent

An event type for transformation.

See Also:
Serialized Form

Field Summary
static int ROTATE
          Indicates this is a rotating transformation.
static int SCALE
          Indicates this is a scaling transformation.
static int TRANSLATE
          Indicates this is a tranlating transformatino.
static int UNDEFINED
          Indicates the transformation type is undefined.
 
Fields inherited from class org.eclipse.birt.chart.event.PrimitiveRenderEvent
DRAW, FILL, iObjIndex
 
Constructor Summary
TransformationEvent(java.lang.Object oSource)
          The constructor.
 
Method Summary
 double getRotation()
           
 double getScale()
           
 int getTransform()
           
 double getTranslateX()
           
 double getTranslateY()
           
 void reset()
          Resets the inner state of current event.
 void setRotation(double dAngleInDegrees)
          Sets the rotation of current event.
 void setScale(double dScale)
          Sets the scale of current event.
 void setTransform(int iTransform)
          Sets the transformation type of this event.
 void setTranslation(double dTranslateX, double dTranslateY)
          Sets the translation of current event.
 
Methods inherited from class org.eclipse.birt.chart.event.PrimitiveRenderEvent
compareRegular, compareTo, compareTransposed, copy, draw, fill, getBackground, getBounds, getDepth, getLabel, getLineAttributes, setDepth
 
Methods inherited from class org.eclipse.birt.chart.event.ChartEvent
setSourceObject
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNDEFINED

public static final int UNDEFINED
Indicates the transformation type is undefined.

See Also:
Constant Field Values

SCALE

public static final int SCALE
Indicates this is a scaling transformation.

See Also:
Constant Field Values

TRANSLATE

public static final int TRANSLATE
Indicates this is a tranlating transformatino.

See Also:
Constant Field Values

ROTATE

public static final int ROTATE
Indicates this is a rotating transformation.

See Also:
Constant Field Values
Constructor Detail

TransformationEvent

public TransformationEvent(java.lang.Object oSource)
The constructor.

Method Detail

setTransform

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


getTransform

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

setScale

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


getScale

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

setTranslation

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


getTranslateX

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

getTranslateY

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

setRotation

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


getRotation

public final 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


Copyright © 2005-2008 Actuate Corp. All rights reserved.