Package org.eclipse.birt.chart.event
Class PolygonRenderEvent
java.lang.Object
java.util.EventObject
org.eclipse.birt.chart.event.ChartEvent
org.eclipse.birt.chart.event.PrimitiveRenderEvent
org.eclipse.birt.chart.event.PolygonRenderEvent
- All Implemented Interfaces:
Serializable,Comparable
- Direct Known Subclasses:
Polygon3DRenderEvent
A rendering event type for rendering Polygon 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 TypeMethodDescriptioncopy()final voiddraw(IDeviceRenderer idr) Causes this instruction to 'draw' itself on the device rendererfinal voidfill(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 Location[]voidreset()Resets the inner state of current event.voidsetBackground(Fill ifBackground) Sets the background fill attributes for the polygonvoidsetOutline(LineAttributes lia) Sets the polygon outline attributesfinal voidSets the co-ordinates for each point that defines the polygon.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
-
PolygonRenderEvent
The constructor.
-
-
Method Details
-
setPoints
Sets the co-ordinates for each point that defines the polygon. -
getPoints
- Returns:
- Returns the co-ordinates for each point in the polygon
-
getBackground
- Overrides:
getBackgroundin classPrimitiveRenderEvent- Returns:
- Returns the background fill attributes for the polygon
-
setBackground
Sets the background fill attributes for the polygon -
getOutline
- Returns:
- Returns the polygon outline attributes.
-
setOutline
Sets the polygon outline attributes -
getBounds
Description copied from class:PrimitiveRenderEventReturns the mimimum bounds required to contain the rendering area for current event.- Overrides:
getBoundsin classPrimitiveRenderEvent- Returns:
- Throws:
ChartException- if not implemented by concrete class
-
copy
- Overrides:
copyin classPrimitiveRenderEvent- Returns:
- A copy of this primitive rendering instruction implemented by subclasses
-
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
-
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
-
getLineAttributes
- Overrides:
getLineAttributesin classPrimitiveRenderEvent- Returns:
- A reference to the LineAttributes
-