org.eclipse.birt.chart.event
Class PrimitiveRenderEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.eclipse.birt.chart.event.PrimitiveRenderEvent
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable
Direct Known Subclasses:
ArcRenderEvent, AreaRenderEvent, ClipRenderEvent, ImageRenderEvent, InteractionEvent, LineRenderEvent, OvalRenderEvent, PolygonRenderEvent, RectangleRenderEvent, StructureChangeEvent, TextRenderEvent, TransformationEvent

public abstract class PrimitiveRenderEvent
extends java.util.EventObject
implements java.lang.Comparable

PrimitiveRenderEvent

See Also:
Serialized Form

Field Summary
static int DRAW
           
static int FILL
           
 int iObjIndex
           
 
Constructor Summary
PrimitiveRenderEvent(java.lang.Object oSource)
           
 
Method Summary
static int compareRegular(Bounds bo1, Bounds bo2)
           
 int compareTo(java.lang.Object o)
          Compares two primitives in terms of Z-order rendering
static int compareTransposed(Bounds bo1, Bounds bo2)
           
 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
 Bounds getBounds()
           
 double getDepth()
           
 void reset()
          Resets all fields to default value.
 void setDepth(double dDepth)
           
 void setSourceObject(java.lang.Object oSource)
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DRAW

public static final int DRAW
See Also:
Constant Field Values

FILL

public static final int FILL
See Also:
Constant Field Values

iObjIndex

public int iObjIndex
Constructor Detail

PrimitiveRenderEvent

public PrimitiveRenderEvent(java.lang.Object oSource)
Parameters:
oSource -
Method Detail

reset

public void reset()
Resets all fields to default value.


getBounds

public Bounds getBounds()
                 throws ChartException
Returns:
Throws:
UnsupportedFeatureException
ChartException

copy

public PrimitiveRenderEvent copy()
                          throws ChartException
Returns:
A copy of this primitive rendering instruction implemented by subclasses
Throws:
UnsupportedFeatureException
ChartException

compareRegular

public static final int compareRegular(Bounds bo1,
                                       Bounds bo2)
Parameters:
bo1 -
bo2 -
Returns:

compareTransposed

public static final int compareTransposed(Bounds bo1,
                                          Bounds bo2)

compareTo

public int compareTo(java.lang.Object o)
Compares two primitives in terms of Z-order rendering

Specified by:
compareTo in interface java.lang.Comparable

draw

public void draw(IDeviceRenderer idr)
          throws ChartException
Causes this instruction to 'draw' itself on the device renderer

Parameters:
idr -
Throws:
UnsupportedFeatureException
ChartException

fill

public void fill(IDeviceRenderer idr)
          throws ChartException
Causes this instruction to 'fill' itself on the device renderer

Parameters:
idr -
Throws:
UnsupportedFeatureException
ChartException

setDepth

public final void setDepth(double dDepth)
Parameters:
dDepth -

setSourceObject

public final void setSourceObject(java.lang.Object oSource)

getDepth

public final double getDepth()
Returns:


Copyright © 2005 Actuate Corp. All rights reserved.