org.eclipse.birt.chart.event
Class ArcRenderEvent

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

public final class ArcRenderEvent
extends PrimitiveRenderEvent

ArcRenderEvent

See Also:
Serialized Form

Field Summary
static int CLOSED
           
static int OPEN
           
static int SECTOR
           
 
Fields inherited from class org.eclipse.birt.chart.event.PrimitiveRenderEvent
DRAW, FILL, iObjIndex
 
Constructor Summary
ArcRenderEvent(java.lang.Object oSource)
           
 
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
 double getAngleExtent()
           
 Fill getBackground()
           
 Bounds getBounds()
           
 Bounds getEllipseBounds()
           
 double getHeight()
           
 double getInnerRadius()
           
 double getOuterRadius()
           
 LineAttributes getOutline()
           
 double getStartAngle()
           
 int getStyle()
           
 Location getTopLeft()
           
 double getWidth()
           
 void reset()
          Resets all fields to default value.
 void setBackground(Fill ifBackground)
           
 void setBounds(Bounds bo)
           
 void setEndAngle(double endAngle)
           
 void setHeight(double height)
           
 void setInnerRadius(double innerRadius)
           
 void setOuterRadius(double outerRadius)
           
 void setOutline(LineAttributes outline)
           
 void setStartAngle(double startAngle)
           
 void setStyle(int style)
           
 void setTopLeft(Location loTopLeft)
           
 void setWidth(double width)
           
 
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
 

Field Detail

OPEN

public static final int OPEN
See Also:
Constant Field Values

CLOSED

public static final int CLOSED
See Also:
Constant Field Values

SECTOR

public static final int SECTOR
See Also:
Constant Field Values
Constructor Detail

ArcRenderEvent

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

reset

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

Overrides:
reset in class PrimitiveRenderEvent

getStyle

public final int getStyle()
Returns:
Returns the arc style.

setStyle

public final void setStyle(int style)
Parameters:
style - The arc style to set.

getTopLeft

public final Location getTopLeft()
Returns:
Returns the top left co-ordinates of the bounding elliptical box for the arc

setTopLeft

public final void setTopLeft(Location loTopLeft)
Parameters:
loTopLeft - The top left co-ordinates of the bounding elliptical box for the arc

getAngleExtent

public final double getAngleExtent()
Returns:
Returns the end arc angle.

setEndAngle

public final void setEndAngle(double endAngle)
Parameters:
endAngle - The end arc angle to set.

getBackground

public final Fill getBackground()
Returns:
Returns the background.

setBackground

public final void setBackground(Fill ifBackground)
Parameters:
ifBackground - The background to set.

getWidth

public final double getWidth()
Returns:
Returns the width.

setWidth

public final void setWidth(double width)

getHeight

public final double getHeight()
Returns:
Returns the height.

setHeight

public final void setHeight(double height)

getStartAngle

public final double getStartAngle()
Returns:
Returns the startAngle.

setStartAngle

public final void setStartAngle(double startAngle)
Parameters:
startAngle - The startAngle to set.

setBounds

public final void setBounds(Bounds bo)
Parameters:
bo -

getEllipseBounds

public final Bounds getEllipseBounds()
Returns:

getBounds

public final Bounds getBounds()
Overrides:
getBounds in class PrimitiveRenderEvent
Returns:

getOutline

public final LineAttributes getOutline()
Returns:
Returns the outline.

setOutline

public final void setOutline(LineAttributes outline)
Parameters:
outline - The outline to set.

getInnerRadius

public double getInnerRadius()

setInnerRadius

public void setInnerRadius(double innerRadius)

getOuterRadius

public double getOuterRadius()

setOuterRadius

public void setOuterRadius(double outerRadius)

copy

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

draw

public 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
Parameters:
idr -
Throws:
ChartException

fill

public 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
Parameters:
idr -
Throws:
ChartException


Copyright © 2005 Actuate Corp. All rights reserved.