com.jidesoft.chart.render
Class DefaultPieSegmentRenderer
java.lang.Object
com.jidesoft.chart.render.AbstractRenderer
com.jidesoft.chart.render.AbstractPieSegmentRenderer
com.jidesoft.chart.render.DefaultPieSegmentRenderer
- All Implemented Interfaces:
- PieSegmentRenderer, PieSegmentRenderer2D
public class DefaultPieSegmentRenderer
- extends AbstractPieSegmentRenderer
- implements PieSegmentRenderer2D
Fills in segments with a plain (or textured) color.
- Author:
- Simon White (swhite@catalysoft.com)
Method Summary |
void |
renderSegments(Graphics2D g,
Chart chart,
ChartModel model,
Point2D center,
float nominalRadius,
float[] angles)
The method for rendering segments onto the supplied graphics context |
void |
renderSegments(Graphics g,
Chart chart,
ChartModel model,
Point center,
int nominalRadius,
int[] angles)
The method for rendering segments onto the supplied graphics context |
Methods inherited from class com.jidesoft.chart.render.AbstractPieSegmentRenderer |
clearShapes, containingSegment, createSegmentPaint, getLabelGraphics, getPieLabelRenderer, getPointLabeler, getTickLength, modify, recordSegment, rendered, renderLabels, renderOutlines, renderOutlines2D, setLabelGraphics, setPieLabelRenderer, setPointLabeler, setTickLength |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultPieSegmentRenderer
public DefaultPieSegmentRenderer()
renderSegments
public void renderSegments(Graphics g,
Chart chart,
ChartModel model,
Point center,
int nominalRadius,
int[] angles)
- The method for rendering segments onto the supplied graphics context
- Specified by:
renderSegments
in interface PieSegmentRenderer
- Parameters:
g
- the Graphics contextchart
- the chartmodel
- the model of interestcenter
- the center point (in pixel coordinates) of the rendered areanominalRadius
- the radius of the pie chart (in pixels)angles
- the angles (in degrees) of the respective segments of the model
renderSegments
public void renderSegments(Graphics2D g,
Chart chart,
ChartModel model,
Point2D center,
float nominalRadius,
float[] angles)
- Description copied from interface:
PieSegmentRenderer2D
- The method for rendering segments onto the supplied graphics context
- Specified by:
renderSegments
in interface PieSegmentRenderer2D
- Parameters:
g
- the Graphics2D contextchart
- the chartmodel
- the model of interestcenter
- the center point (in pixel coordinates) of the rendered areanominalRadius
- the radius of the pie chart (in pixels)angles
- the angles (in degrees) of the respective segments of the model