org.eclipse.birt.chart.event
Class Polygon3DRenderEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.eclipse.birt.chart.event.PrimitiveRenderEvent
          extended byorg.eclipse.birt.chart.event.PolygonRenderEvent
              extended byorg.eclipse.birt.chart.event.Polygon3DRenderEvent
All Implemented Interfaces:
java.lang.Comparable, I3DRenderEvent, java.io.Serializable

public final class Polygon3DRenderEvent
extends PolygonRenderEvent
implements I3DRenderEvent

Polygon3DRenderEvent

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.eclipse.birt.chart.event.PrimitiveRenderEvent
DRAW, FILL, iObjIndex
 
Constructor Summary
Polygon3DRenderEvent(java.lang.Object oSource)
           
 
Method Summary
 PrimitiveRenderEvent copy()
           
 Fill getBackground()
           
 double getBrightness()
           
 Object3D getObject3D()
          Returns the 3D object associated with this event.
 Location3D[] getPoints3D()
           
 boolean isBehind()
           
 boolean isDoubleSided()
          Returns true if double sided polygons (not enclosing a volume)
 void prepare2D(double xOffset, double yOffset)
          Prepares the coordinates to render on 2D plane.
 void reset()
          Resets all fields to default value.
 void setBackground(Fill ifBackground)
           
 void setBehind(boolean value)
           
 void setBrightness(double value)
          Sets the brightness of this polygon, the value ranges 0.0 - 1.0.
 void setDoubleSided(boolean value)
           
 void setPoints3D(Location3D[] loa)
          Note that setPoints3D must be called with the points in the right order: that is needed for the right orientation of the polygon.
 
Methods inherited from class org.eclipse.birt.chart.event.PolygonRenderEvent
draw, fill, getBounds, getOutline, getPoints, setOutline, setPoints
 
Methods inherited from class org.eclipse.birt.chart.event.PrimitiveRenderEvent
compareRegular, compareTo, compareTransposed, getDepth, setDepth, 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

Polygon3DRenderEvent

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

isDoubleSided

public boolean isDoubleSided()
Returns true if double sided polygons (not enclosing a volume)

Returns:

setDoubleSided

public void setDoubleSided(boolean value)
Parameters:
value -

isBehind

public boolean isBehind()
Returns:

setBehind

public void setBehind(boolean value)
Parameters:
value -

setBackground

public void setBackground(Fill ifBackground)
Overrides:
setBackground in class PolygonRenderEvent

getBackground

public Fill getBackground()
Overrides:
getBackground in class PolygonRenderEvent
Returns:
Returns the background fill attributes for the polygon

getBrightness

public double getBrightness()
Returns:

setBrightness

public void setBrightness(double value)
Sets the brightness of this polygon, the value ranges 0.0 - 1.0.


setPoints3D

public final void setPoints3D(Location3D[] loa)
                       throws ChartException
Note that setPoints3D must be called with the points in the right order: that is needed for the right orientation of the polygon. Points must be given in anti-clockwise order if looking at the face from outside the enclosed volume, and so that two adjacent points define a line of the polygon. A minimum of three points is required, less will throw an IllegalArgumentException, three consecutive points cannot be aligned.

Throws:
ChartException

getPoints3D

public Location3D[] getPoints3D()
Returns:
Returns the co-ordinates for each point in the polygon

prepare2D

public void prepare2D(double xOffset,
                      double yOffset)
Description copied from interface: I3DRenderEvent
Prepares the coordinates to render on 2D plane.

Specified by:
prepare2D in interface I3DRenderEvent
Parameters:
xOffset -
yOffset -

copy

public PrimitiveRenderEvent copy()
Overrides:
copy in class PolygonRenderEvent

reset

public void reset()
Description copied from class: PrimitiveRenderEvent
Resets all fields to default value.

Overrides:
reset in class PrimitiveRenderEvent

getObject3D

public Object3D getObject3D()
Description copied from interface: I3DRenderEvent
Returns the 3D object associated with this event.

Specified by:
getObject3D in interface I3DRenderEvent
Returns:


Copyright © 2005 Actuate Corp. All rights reserved.