Package org.eclipse.birt.chart.event
Class RectangleRenderEvent
java.lang.Object
java.util.EventObject
org.eclipse.birt.chart.event.ChartEvent
org.eclipse.birt.chart.event.PrimitiveRenderEvent
org.eclipse.birt.chart.event.RectangleRenderEvent
- All Implemented Interfaces:
Serializable
,Comparable
A rendering event type for rendering Rectangle 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()
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.void
reset()
Resets the inner state of current event.void
setBackground
(Fill ifBackground) Sets the background fill associated with the rectangle.void
Sets the bounds associated with this rectangle.void
setOutline
(LineAttributes lia) Sets the outline attributes of current rectangle.void
updateFrom
(Block bl, double dScale) Updates current event by given Block object.Methods inherited from class org.eclipse.birt.chart.event.PrimitiveRenderEvent
compareRegular, compareTo, compareTransposed, getDepth, getLabel, isEnabled, setDepth, setEnable
Methods inherited from class org.eclipse.birt.chart.event.ChartEvent
setSourceObject
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
RectangleRenderEvent
The constructor.
-
-
Method Details
-
getBounds
Description copied from class:PrimitiveRenderEvent
Returns the mimimum bounds required to contain the rendering area for current event.- Overrides:
getBounds
in classPrimitiveRenderEvent
- Returns:
- Returns the bounds associated with this rectangle.
-
setBounds
Sets the bounds associated with this rectangle. -
getBackground
- Overrides:
getBackground
in classPrimitiveRenderEvent
- Returns:
- Returns the background fill associated with the rectangle.
-
setBackground
Sets the background fill associated with the rectangle. -
getOutline
- Returns:
- Returns the outline.
-
setOutline
Sets the outline attributes of current rectangle. -
updateFrom
Updates current event by given Block object. -
copy
- Overrides:
copy
in classPrimitiveRenderEvent
- Returns:
- A copy of this primitive rendering instruction implemented by subclasses
-
draw
Description copied from class:PrimitiveRenderEvent
Causes this instruction to 'draw' itself on the device renderer- Overrides:
draw
in classPrimitiveRenderEvent
- Throws:
ChartException
-
fill
Description copied from class:PrimitiveRenderEvent
Causes this instruction to 'fill' itself on the device renderer- Overrides:
fill
in classPrimitiveRenderEvent
- Throws:
ChartException
-
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
-
getLineAttributes
- Overrides:
getLineAttributes
in classPrimitiveRenderEvent
- Returns:
- A reference to the LineAttributes
-