JIDE 3.5.15

com.jidesoft.chart.render
Interface PieLabelRenderer

All Known Subinterfaces:
PieLabelRenderer2D
All Known Implementing Classes:
AbstractPieLabelRenderer, LinePieLabelRenderer, SimplePieLabelRenderer

public interface PieLabelRenderer

An interface implemented by objects that are responsible for painting the labels of a pie chart


Method Summary
 PointLabeler getPointLabeler()
           
 int getTickLength()
           
 void renderLabels(Graphics g, Chart chart, ChartModel model, Point center, int width, int height, int[] angles, ChartStyle style)
          Render the labels to the supplied graphics context
 void setPointLabeler(PointLabeler pointLabeler)
          Set the object responsible for specifying what the labels should say
 void setTickLength(int tickLength)
          Sets the tick length used to indicate the pie segments
 

Method Detail

setPointLabeler

void setPointLabeler(PointLabeler pointLabeler)
Set the object responsible for specifying what the labels should say


getTickLength

int getTickLength()
Returns:
the tick length used by this renderer

setTickLength

void setTickLength(int tickLength)
Sets the tick length used to indicate the pie segments

Parameters:
tickLength - the length of the ticks in pixels

getPointLabeler

PointLabeler getPointLabeler()
Returns:
the point labeler, which is responsible for specifying what the labels should say

renderLabels

void renderLabels(Graphics g,
                  Chart chart,
                  ChartModel model,
                  Point center,
                  int width,
                  int height,
                  int[] angles,
                  ChartStyle style)
Render the labels to the supplied graphics context

Parameters:
g - the graphics context
chart - the chart to render
model - the model from which the points come
center - the center of the pie
width - the width of the pie
height - the height of the pie
angles - the angles to use for the segments of the pie
style - the chart style to use for displaying the segments

JIDE 3.5.15