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:
java.io.Serializable,java.lang.Comparable
public final class RectangleRenderEvent extends PrimitiveRenderEvent
A rendering event type for rendering Rectangle object.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.eclipse.birt.chart.event.PrimitiveRenderEvent
DRAW, FILL, iObjIndex
-
-
Constructor Summary
Constructors Constructor Description RectangleRenderEvent(java.lang.Object oSource)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PrimitiveRenderEventcopy()voiddraw(IDeviceRenderer idr)Causes this instruction to 'draw' itself on the device renderervoidfill(IDeviceRenderer idr)Causes this instruction to 'fill' itself on the device rendererFillgetBackground()BoundsgetBounds()Returns the mimimum bounds required to contain the rendering area for current event.LineAttributesgetLineAttributes()LineAttributesgetOutline()voidreset()Resets the inner state of current event.voidsetBackground(Fill ifBackground)Sets the background fill associated with the rectangle.voidsetBounds(Bounds bo)Sets the bounds associated with this rectangle.voidsetOutline(LineAttributes lia)Sets the outline attributes of current rectangle.voidupdateFrom(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
-
-
-
-
Method Detail
-
getBounds
public Bounds getBounds()
Description copied from class:PrimitiveRenderEventReturns the mimimum bounds required to contain the rendering area for current event.- Overrides:
getBoundsin classPrimitiveRenderEvent- Returns:
- Returns the bounds associated with this rectangle.
-
setBounds
public void setBounds(Bounds bo)
Sets the bounds associated with this rectangle.
-
getBackground
public Fill getBackground()
- Overrides:
getBackgroundin classPrimitiveRenderEvent- Returns:
- Returns the background fill associated with the rectangle.
-
setBackground
public void setBackground(Fill ifBackground)
Sets the background fill associated with the rectangle.
-
getOutline
public LineAttributes getOutline()
- Returns:
- Returns the outline.
-
setOutline
public void setOutline(LineAttributes lia)
Sets the outline attributes of current rectangle.
-
updateFrom
public void updateFrom(Block bl, double dScale)
Updates current event by given Block object.
-
copy
public PrimitiveRenderEvent copy()
- Overrides:
copyin classPrimitiveRenderEvent- Returns:
- A copy of this primitive rendering instruction implemented by subclasses
-
draw
public void draw(IDeviceRenderer idr) throws ChartException
Description copied from class:PrimitiveRenderEventCauses this instruction to 'draw' itself on the device renderer- Overrides:
drawin classPrimitiveRenderEvent- Throws:
ChartException
-
fill
public void fill(IDeviceRenderer idr) throws ChartException
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
public LineAttributes getLineAttributes()
- Overrides:
getLineAttributesin classPrimitiveRenderEvent- Returns:
- A reference to the LineAttributes
-
-