|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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 |
|---|
void setTickLength(int length)
length - the length of ticks in pixelsint getTickLength()
void setPointLabeler(PointLabeler labeler)
labeler - the labeler objectPointLabeler getPointLabeler()
void setLabelGraphics(Graphics g)
g - the graphics context for the pie segment labelsPieLabelRenderer getPieLabelRenderer()
PointDescriptor containingSegment(Point p)
p - the point of interest
void clearShapes()
void renderSegments(Graphics g,
Chart chart,
ChartModel m,
Point center,
int radius,
int[] angles)
g - the Graphics contextchart - the chartm - the model of interestcenter - the center point (in pixel coordinates) of the rendered arearadius - the radius of the pie chart (in pixels)angles - the angles (in degrees) of the respective segments of the model
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||