JIDE 3.5.15

com.jidesoft.chart.render
Class DefaultPieSegmentRenderer

java.lang.Object
  extended by com.jidesoft.chart.render.AbstractRenderer
      extended by com.jidesoft.chart.render.AbstractPieSegmentRenderer
          extended by 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)

Field Summary
 
Fields inherited from class com.jidesoft.chart.render.AbstractPieSegmentRenderer
maxExplode, PROPERTY_ALWAYS_SHOW_OUTLINES, PROPERTY_PIE_LABEL_RENDERER, PROPERTY_POINT_LABELER, PROPERTY_TICK_LENGTH
 
Fields inherited from class com.jidesoft.chart.render.AbstractRenderer
alwaysShowOutlines, PROPERTY_OUTLINE_WIDTH, ROLLOVER_INTENSITY, support
 
Constructor Summary
DefaultPieSegmentRenderer()
           
 
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 com.jidesoft.chart.render.AbstractRenderer
addPropertyChangeListener, getOutlineColor, getOutlineWidth, getSelectionColor, isAlwaysShowOutlines, removePropertyChangeListener, setAlwaysShowOutlines, setOutlineColor, setOutlineWidth, setSelectionColor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jidesoft.chart.render.PieSegmentRenderer
clearShapes, containingSegment, getPieLabelRenderer, getPointLabeler, getTickLength, setLabelGraphics, setPointLabeler, setTickLength
 

Constructor Detail

DefaultPieSegmentRenderer

public DefaultPieSegmentRenderer()
Method Detail

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 context
chart - the chart
model - the model of interest
center - the center point (in pixel coordinates) of the rendered area
nominalRadius - 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 context
chart - the chart
model - the model of interest
center - the center point (in pixel coordinates) of the rendered area
nominalRadius - the radius of the pie chart (in pixels)
angles - the angles (in degrees) of the respective segments of the model

JIDE 3.5.15