org.eclipse.birt.chart.event
Class RectangleRenderEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.eclipse.birt.chart.event.ChartEvent
          extended by org.eclipse.birt.chart.event.PrimitiveRenderEvent
              extended by 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
RectangleRenderEvent(java.lang.Object oSource)
          The constructor.
 
Method Summary
 PrimitiveRenderEvent copy()
           
 void draw(IDeviceRenderer idr)
          Causes this instruction to 'draw' itself on the device renderer
 void fill(IDeviceRenderer idr)
          Causes this instruction to 'fill' itself on the device renderer
 Fill getBackground()
           
 Bounds getBounds()
          Returns the mimimum bounds required to contain the rendering area for current event.
 LineAttributes getLineAttributes()
           
 LineAttributes getOutline()
           
 void reset()
          Resets the inner state of current event.
 void setBackground(Fill ifBackground)
          Sets the background fill associated with the rectangle.
 void setBounds(Bounds bo)
          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, setDepth
 
Methods inherited from class org.eclipse.birt.chart.event.ChartEvent
setSourceObject
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RectangleRenderEvent

public RectangleRenderEvent(java.lang.Object oSource)
The constructor.

Method Detail

getBounds

public Bounds getBounds()
Description copied from class: PrimitiveRenderEvent
Returns the mimimum bounds required to contain the rendering area for current event.

Overrides:
getBounds in class PrimitiveRenderEvent
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:
getBackground in class PrimitiveRenderEvent
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 final void updateFrom(Block bl,
                             double dScale)
Updates current event by given Block object.


copy

public final PrimitiveRenderEvent copy()
Overrides:
copy in class PrimitiveRenderEvent
Returns:
A copy of this primitive rendering instruction implemented by subclasses

draw

public final void draw(IDeviceRenderer idr)
                throws ChartException
Description copied from class: PrimitiveRenderEvent
Causes this instruction to 'draw' itself on the device renderer

Overrides:
draw in class PrimitiveRenderEvent
Throws:
ChartException

fill

public final void fill(IDeviceRenderer idr)
                throws ChartException
Description copied from class: PrimitiveRenderEvent
Causes this instruction to 'fill' itself on the device renderer

Overrides:
fill in class PrimitiveRenderEvent
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 class ChartEvent

getLineAttributes

public LineAttributes getLineAttributes()
Overrides:
getLineAttributes in class PrimitiveRenderEvent
Returns:
A reference to the LineAttributes


Copyright © 2005-2008 Actuate Corp. All rights reserved.