JIDE 3.5.15

com.jidesoft.chart.render
Interface PieSegmentRenderer

All Known Subinterfaces:
PieSegmentRenderer2D
All Known Implementing Classes:
AbstractPieSegmentRenderer, DefaultPieSegmentRenderer, Pie3DRenderer, RaisedPieSegmentRenderer

public interface PieSegmentRenderer

An interface implemented by objects responsible for rendering the pie segments of a pie chart.


Method Summary
 void clearShapes()
          Clear out the shapes used for rendering the points
 PointDescriptor containingSegment(Point p)
          Find the segment containing the supplied point, if any
 PieLabelRenderer getPieLabelRenderer()
          Determines how to render the labels
 PointLabeler getPointLabeler()
           
 int getTickLength()
           
 void renderSegments(Graphics g, Chart chart, ChartModel m, Point center, int radius, int[] angles)
          The method for rendering segments onto the supplied graphics context
 void setLabelGraphics(Graphics g)
          Allow the users of the renderer to specify a different graphics context for the pie segment labels
 void setPointLabeler(PointLabeler labeler)
          Set the point labeler, which is used to customize the strings displayed as labels
 void setTickLength(int length)
          Set the length of the ticks used for each segment
 

Method Detail

setTickLength

void setTickLength(int length)
Set the length of the ticks used for each segment

Parameters:
length - the length of ticks in pixels

getTickLength

int getTickLength()
Returns:
the tick length

setPointLabeler

void setPointLabeler(PointLabeler labeler)
Set the point labeler, which is used to customize the strings displayed as labels

Parameters:
labeler - the labeler object

getPointLabeler

PointLabeler getPointLabeler()
Returns:
the point labeler

setLabelGraphics

void setLabelGraphics(Graphics g)
Allow the users of the renderer to specify a different graphics context for the pie segment labels

Parameters:
g - the graphics context for the pie segment labels

getPieLabelRenderer

PieLabelRenderer getPieLabelRenderer()
Determines how to render the labels


containingSegment

PointDescriptor containingSegment(Point p)
Find the segment containing the supplied point, if any

Parameters:
p - the point of interest
Returns:
a descriptor that indicates which segment, if any, contains the point

clearShapes

void clearShapes()
Clear out the shapes used for rendering the points


renderSegments

void renderSegments(Graphics g,
                    Chart chart,
                    ChartModel m,
                    Point center,
                    int radius,
                    int[] angles)
The method for rendering segments onto the supplied graphics context

Parameters:
g - the Graphics context
chart - the chart
m - the model of interest
center - the center point (in pixel coordinates) of the rendered area
radius - the radius of the pie chart (in pixels)
angles - the angles (in degrees) of the respective segments of the model

JIDE 3.5.15