|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
org.eclipse.birt.chart.event.ChartEvent
org.eclipse.birt.chart.event.PrimitiveRenderEvent
org.eclipse.birt.chart.event.ArcRenderEvent
public class ArcRenderEvent
A rendering event type for rendering Arc object.
Field Summary | |
---|---|
static int |
CLOSED
The closure type for an arc closed by drawing a straight line segment from the start of the arc segment to the end of the arc segment. |
static int |
OPEN
The closure type for an open arc with no path segments connecting the two ends of the arc segment. |
static int |
SECTOR
The closure type for an arc closed by drawing straight line segments from the start of the arc segment to the center of the full ellipse and from that point to the end of the arc segment. |
Fields inherited from class org.eclipse.birt.chart.event.PrimitiveRenderEvent |
---|
DRAW, FILL, iObjIndex |
Constructor Summary | |
---|---|
ArcRenderEvent(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 |
double |
getAngleExtent()
|
Fill |
getBackground()
|
Bounds |
getBounds()
Returns the mimimum bounds required to contain the rendering area for current event. |
Bounds |
getEllipseBounds()
Returns the full containing bounds of the complete ellipse. |
double |
getHeight()
|
double |
getInnerRadius()
|
LineAttributes |
getLineAttributes()
|
double |
getOuterRadius()
|
LineAttributes |
getOutline()
|
double |
getStartAngle()
|
int |
getStyle()
|
Location |
getTopLeft()
|
double |
getWidth()
|
void |
reset()
Resets the inner state of current event. |
void |
setAngleExtent(double angleExtent)
Sets the angle extent for this arc. |
void |
setBackground(Fill ifBackground)
Sets the backgound for this arc. |
void |
setBounds(Bounds bo)
Sets the containing bounds of this arc. |
void |
setEndAngle(double endAngle)
Deprecated. Use #setAngleExtent() instead. |
void |
setHeight(double height)
Sets the height for the containing bounds. |
void |
setInnerRadius(double innerRadius)
Sets the inner radius for this arc. |
void |
setOuterRadius(double outerRadius)
Sets the outer radius for this arc. |
void |
setOutline(LineAttributes outline)
Sets the outline for this arc. |
void |
setStartAngle(double startAngle)
Sets the start angle for this arc. |
void |
setStyle(int style)
|
void |
setTopLeft(Location loTopLeft)
Sets the top-left location of the containing bounds. |
void |
setWidth(double width)
Sets the width for the containing bounds. |
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 |
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 |
---|
public static final int OPEN
public static final int CLOSED
public static final int SECTOR
Constructor Detail |
---|
public ArcRenderEvent(java.lang.Object oSource)
Method Detail |
---|
public void reset()
ChartEvent
reset
in class ChartEvent
public final int getStyle()
public final void setStyle(int style)
public final Location getTopLeft()
public final void setTopLeft(Location loTopLeft)
loTopLeft
- The top left co-ordinates of the bounding elliptical box for
the arcpublic final double getAngleExtent()
public final void setAngleExtent(double angleExtent)
angleExtent
- The angle extentpublic final void setEndAngle(double endAngle)
#setAngleExtent()
instead.
endAngle
- The angle extentpublic final Fill getBackground()
getBackground
in class PrimitiveRenderEvent
public final void setBackground(Fill ifBackground)
ifBackground
- The background to set.public double getWidth()
public void setWidth(double width)
radius
- The width to set.public double getHeight()
public void setHeight(double height)
radius
- The height to set.public final double getStartAngle()
public final void setStartAngle(double startAngle)
startAngle
- The startAngle to set.public final void setBounds(Bounds bo)
bo
- public Bounds getEllipseBounds()
public Bounds getBounds()
PrimitiveRenderEvent
getBounds
in class PrimitiveRenderEvent
public final LineAttributes getOutline()
public final void setOutline(LineAttributes outline)
outline
- The outline to set.public double getInnerRadius()
public void setInnerRadius(double innerRadius)
innerRadius
- public double getOuterRadius()
public void setOuterRadius(double outerRadius)
outerRadius
- public PrimitiveRenderEvent copy() throws ChartException
copy
in class PrimitiveRenderEvent
ChartException
public void draw(IDeviceRenderer idr) throws ChartException
PrimitiveRenderEvent
draw
in class PrimitiveRenderEvent
ChartException
public void fill(IDeviceRenderer idr) throws ChartException
PrimitiveRenderEvent
fill
in class PrimitiveRenderEvent
ChartException
public LineAttributes getLineAttributes()
getLineAttributes
in class PrimitiveRenderEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |