Package org.eclipse.birt.chart.event
Class PrimitiveRenderEvent
java.lang.Object
java.util.EventObject
org.eclipse.birt.chart.event.ChartEvent
org.eclipse.birt.chart.event.PrimitiveRenderEvent
- All Implemented Interfaces:
Serializable
,Comparable
- Direct Known Subclasses:
ArcRenderEvent
,AreaRenderEvent
,ClipRenderEvent
,ImageRenderEvent
,LineRenderEvent
,OvalRenderEvent
,PolygonRenderEvent
,RectangleRenderEvent
,TextRenderEvent
,TransformationEvent
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPrimitiveRenderEvent
(Object oSource) Creates a Primitive Render Event from a source object. -
Method Summary
Modifier and TypeMethodDescriptionstatic final int
compareRegular
(Bounds bo1, Bounds bo2) Compare two bounds regularly.int
Compares two primitives in terms of Z-order renderingstatic final int
compareTransposed
(Bounds bo1, Bounds bo2) Compare two bounds in transposed way.copy()
void
draw
(IDeviceRenderer idr) Causes this instruction to 'draw' itself on the device renderervoid
fill
(IDeviceRenderer idr) Causes this instruction to 'fill' itself on the device rendererReturns the mimimum bounds required to contain the rendering area for current event.final double
getDepth()
getLabel()
boolean
final void
setDepth
(double dDepth) Sets the depth of current event.void
setEnable
(boolean enabled) Methods inherited from class org.eclipse.birt.chart.event.ChartEvent
reset, setSourceObject
Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
DRAW
public static final int DRAWA constant indicats a Drawing operation.- See Also:
-
FILL
public static final int FILLA constant indicats a Filling operation.- See Also:
-
iObjIndex
public int iObjIndexAn index value used internally. Note this is public only for cross-package internal access.
-
-
Constructor Details
-
PrimitiveRenderEvent
Creates a Primitive Render Event from a source object. The source can be of any type. Inside the chart engine, it is a StructureSource object- Parameters:
oSource
- The Source Object- See Also:
-
-
Method Details
-
getBounds
Returns the mimimum bounds required to contain the rendering area for current event.- Returns:
- Throws:
ChartException
- if not implemented by concrete class
-
copy
- Returns:
- A copy of this primitive rendering instruction implemented by subclasses
- Throws:
ChartException
-
compareTransposed
Compare two bounds in transposed way.- Parameters:
bo1
-bo2
-- Returns:
-
compareRegular
Compare two bounds regularly.- Parameters:
bo1
-bo2
-- Returns:
-
compareTo
Compares two primitives in terms of Z-order rendering- Specified by:
compareTo
in interfaceComparable
-
draw
Causes this instruction to 'draw' itself on the device renderer- Parameters:
idr
-- Throws:
ChartException
-
fill
Causes this instruction to 'fill' itself on the device renderer- Parameters:
idr
-- Throws:
ChartException
-
setDepth
public final void setDepth(double dDepth) Sets the depth of current event.- Parameters:
dDepth
-
-
getDepth
public final double getDepth()- Returns:
- Returns the depth of current event.
-
getLineAttributes
- Returns:
- A reference to the LineAttributes
-
getBackground
- Returns:
- A reference to the Background Fill
-
getLabel
-
setEnable
public void setEnable(boolean enabled) -
isEnabled
public boolean isEnabled()
-