Package org.eclipse.birt.chart.event
Class AreaRenderEvent
java.lang.Object
java.util.EventObject
org.eclipse.birt.chart.event.ChartEvent
org.eclipse.birt.chart.event.PrimitiveRenderEvent
org.eclipse.birt.chart.event.AreaRenderEvent
- All Implemented Interfaces:
Serializable,Comparable
- Direct Known Subclasses:
Area3DRenderEvent
A rendering event type for rendering Area object.
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.birt.chart.event.PrimitiveRenderEvent
DRAW, FILL, iObjIndex -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidadd(PrimitiveRenderEvent pre) Add a sub event to this area.final voidclear()Removes all sub events associated with current area.copy()voiddraw(IDeviceRenderer idr) Causes this instruction to 'draw' itself on the device renderervoidfill(IDeviceRenderer idr) Causes this instruction to 'fill' itself on the device rendererfinal Fillfinal BoundsReturns the mimimum bounds required to contain the rendering area for current event.final PrimitiveRenderEventgetElement(int i) Returns the specific sub event by given index.final intfinal LineAttributesfinal Iterator<PrimitiveRenderEvent>iterator()Returns the iterator for the subordinate event list.voidreset()Resets the inner state of current event.final voidsetBackground(Fill fill) Sets the background of this area.final voidsetOutline(LineAttributes outline) Sets the outline of this area.Methods inherited from class org.eclipse.birt.chart.event.PrimitiveRenderEvent
compareRegular, compareTo, compareTransposed, getDepth, getLabel, isEnabled, setDepth, setEnableMethods inherited from class org.eclipse.birt.chart.event.ChartEvent
setSourceObjectMethods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
AreaRenderEvent
The constructor.
-
-
Method Details
-
clear
public final void clear()Removes all sub events associated with current area. -
reset
public void reset()Description copied from class:ChartEventResets the inner state of current event. This must be implemented if the object is cached and reused.- Specified by:
resetin classChartEvent
-
add
Add a sub event to this area.- Parameters:
pre-
-
getElementCount
public final int getElementCount()- Returns:
- Returns the sub events count of this area.
-
iterator
Returns the iterator for the subordinate event list.- Returns:
-
getElement
Returns the specific sub event by given index.- Parameters:
i-- Returns:
-
getBackground
- Overrides:
getBackgroundin classPrimitiveRenderEvent- Returns:
- Returns the background.
-
setBackground
Sets the background of this area.- Parameters:
fill- The fill to set.
-
getBounds
Description copied from class:PrimitiveRenderEventReturns the mimimum bounds required to contain the rendering area for current event.- Overrides:
getBoundsin classPrimitiveRenderEvent- Returns:
-
getOutline
- Returns:
- Returns the outline.
-
setOutline
Sets the outline of this area.- Parameters:
outline- The outline to set.
-
copy
- Overrides:
copyin classPrimitiveRenderEvent- Returns:
- A copy of this primitive rendering instruction implemented by subclasses
- Throws:
ChartException
-
draw
Description copied from class:PrimitiveRenderEventCauses this instruction to 'draw' itself on the device renderer- Overrides:
drawin classPrimitiveRenderEvent- Throws:
ChartException
-
fill
Description copied from class:PrimitiveRenderEventCauses this instruction to 'fill' itself on the device renderer- Overrides:
fillin classPrimitiveRenderEvent- Throws:
ChartException
-
getLineAttributes
- Overrides:
getLineAttributesin classPrimitiveRenderEvent- Returns:
- A reference to the LineAttributes
-