Package org.eclipse.birt.chart.event
Class ArcRenderEvent
java.lang.Object
java.util.EventObject
org.eclipse.birt.chart.event.ChartEvent
org.eclipse.birt.chart.event.PrimitiveRenderEvent
org.eclipse.birt.chart.event.ArcRenderEvent
- All Implemented Interfaces:
Serializable,Comparable
- Direct Known Subclasses:
Arc3DRenderEvent
A rendering event type for rendering Arc object.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe 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 final intThe closure type for an open arc with no path segments connecting the two ends of the arc segment.static final intThe 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()voiddraw(IDeviceRenderer idr) Causes this instruction to 'draw' itself on the device renderervoidfill(IDeviceRenderer idr) Causes this instruction to 'fill' itself on the device rendererfinal doublefinal FillReturns the mimimum bounds required to contain the rendering area for current event.Returns the full containing bounds of the complete ellipse.doubledoubledoublefinal LineAttributesfinal doublefinal intgetStyle()final LocationdoublegetWidth()voidreset()Resets the inner state of current event.final voidsetAngleExtent(double angleExtent) Sets the angle extent for this arc.final voidsetBackground(Fill ifBackground) Sets the backgound for this arc.final voidSets the containing bounds of this arc.final voidsetEndAngle(double endAngle) Deprecated.voidsetHeight(double height) Sets the height for the containing bounds.voidsetInnerRadius(double innerRadius) Sets the inner radius for this arc.voidsetOuterRadius(double outerRadius) Sets the outer radius for this arc.final voidsetOutline(LineAttributes outline) Sets the outline for this arc.final voidsetStartAngle(double startAngle) Sets the start angle for this arc.final voidsetStyle(int style) final voidsetTopLeft(Location loTopLeft) Sets the top-left location of the containing bounds.voidsetWidth(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, setEnableMethods inherited from class org.eclipse.birt.chart.event.ChartEvent
setSourceObjectMethods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
OPEN
public static final int OPENThe closure type for an open arc with no path segments connecting the two ends of the arc segment.- See Also:
-
CLOSED
public static final int CLOSEDThe 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.- See Also:
-
SECTOR
public static final int SECTORThe 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.- See Also:
-
-
Constructor Details
-
ArcRenderEvent
The constructor.
-
-
Method Details
-
reset
public void reset()Description copied from class:ChartEventResets the inner state of current event. This must be implemented if the object is cached and reused.- Specified by:
resetin classChartEvent
-
getStyle
public final int getStyle() -
setStyle
public final void setStyle(int style) -
getTopLeft
- Returns:
- Returns the top left co-ordinates of the bounding elliptical box for the arc
-
setTopLeft
Sets the top-left location of the containing bounds.- Parameters:
loTopLeft- The top left co-ordinates of the bounding elliptical box for the arc
-
getAngleExtent
public final double getAngleExtent()- Returns:
- Returns the angle extent of this arc.
-
setAngleExtent
public final void setAngleExtent(double angleExtent) Sets the angle extent for this arc.- Parameters:
angleExtent- The angle extent- Since:
- 2.1
-
setEndAngle
Deprecated.Use#setAngleExtent()instead.Sets the angle extent for this arc.- Parameters:
endAngle- The angle extent
-
getBackground
- Overrides:
getBackgroundin classPrimitiveRenderEvent- Returns:
- Returns the background.
-
setBackground
Sets the backgound for this arc.- Parameters:
ifBackground- The background to set.
-
getWidth
public double getWidth()- Returns:
- Returns the width of the containing bounds.
-
setWidth
public void setWidth(double width) Sets the width for the containing bounds.- Parameters:
radius- The width to set.
-
getHeight
public double getHeight()- Returns:
- Returns the height of the containing bounds.
-
setHeight
public void setHeight(double height) Sets the height for the containing bounds.- Parameters:
radius- The height to set.
-
getStartAngle
public final double getStartAngle()- Returns:
- Returns the startAngle.
-
setStartAngle
public final void setStartAngle(double startAngle) Sets the start angle for this arc.- Parameters:
startAngle- The startAngle to set.
-
setBounds
Sets the containing bounds of this arc.- Parameters:
bo-
-
getEllipseBounds
Returns the full containing bounds of the complete ellipse.- Returns:
-
getBounds
Description copied from class:PrimitiveRenderEventReturns the mimimum bounds required to contain the rendering area for current event.- Overrides:
getBoundsin classPrimitiveRenderEvent- Returns:
-
getOutline
- Returns:
- Returns the outline.
-
setOutline
Sets the outline for this arc.- Parameters:
outline- The outline to set.
-
getInnerRadius
public double getInnerRadius()- Returns:
- Returns the inner radius for this arc.
-
setInnerRadius
public void setInnerRadius(double innerRadius) Sets the inner radius for this arc.- Parameters:
innerRadius-
-
getOuterRadius
public double getOuterRadius()- Returns:
- Returns the outer radius for this arc.
-
setOuterRadius
public void setOuterRadius(double outerRadius) Sets the outer radius for this arc.- Parameters:
outerRadius-
-
copy
- Overrides:
copyin classPrimitiveRenderEvent- Returns:
- A copy of this primitive rendering instruction implemented by subclasses
- Throws:
ChartException
-
draw
Description copied from class:PrimitiveRenderEventCauses this instruction to 'draw' itself on the device renderer- Overrides:
drawin classPrimitiveRenderEvent- Throws:
ChartException
-
fill
Description copied from class:PrimitiveRenderEventCauses this instruction to 'fill' itself on the device renderer- Overrides:
fillin classPrimitiveRenderEvent- Throws:
ChartException
-
getLineAttributes
- Overrides:
getLineAttributesin classPrimitiveRenderEvent- Returns:
- A reference to the LineAttributes
-
#setAngleExtent()instead.