Package org.eclipse.birt.chart.event
Class TransformationEvent
java.lang.Object
java.util.EventObject
org.eclipse.birt.chart.event.ChartEvent
org.eclipse.birt.chart.event.PrimitiveRenderEvent
org.eclipse.birt.chart.event.TransformationEvent
- All Implemented Interfaces:
Serializable
,Comparable
An event type for transformation.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Indicates this is a rotating transformation.static final int
Indicates this is a scaling transformation.static final int
Indicates this is a tranlating transformatino.static final int
Indicates the transformation type is undefined.Fields inherited from class org.eclipse.birt.chart.event.PrimitiveRenderEvent
DRAW, FILL, iObjIndex
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
double
getScale()
int
double
double
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, isEnabled, setDepth, setEnable
Methods inherited from class org.eclipse.birt.chart.event.ChartEvent
setSourceObject
Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
UNDEFINED
public static final int UNDEFINEDIndicates the transformation type is undefined.- See Also:
-
SCALE
public static final int SCALEIndicates this is a scaling transformation.- See Also:
-
TRANSLATE
public static final int TRANSLATEIndicates this is a tranlating transformatino.- See Also:
-
ROTATE
public static final int ROTATEIndicates this is a rotating transformation.- See Also:
-
-
Constructor Details
-
TransformationEvent
The constructor.
-
-
Method Details
-
setTransform
public void setTransform(int iTransform) -
getTransform
public int getTransform() -
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 classChartEvent
-