|
JIDE 3.3.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jidesoft.chart.render.AbstractPieLabelRenderer
com.jidesoft.chart.render.LinePieLabelRenderer
public class LinePieLabelRenderer
A pie label renderer that draws lines from the label to its corresponding segment in the pie chart.
| Constructor Summary | |
|---|---|
LinePieLabelRenderer()
|
|
| Method Summary | |
|---|---|
int |
getLabelLineGapSize()
Returns the distance between the end of the label and the start of the line leading to the segment |
int |
getLabelXOffset()
|
Color |
getLineColor()
Returns the color of the line that joins the label to the pie segment |
Stroke |
getLineStroke()
|
PointLabeler |
getPointLabeler()
|
int |
getTickLength()
|
void |
layout(List<com.jidesoft.chart.render.LinePieLabelRenderer.PieLabel> labels)
|
void |
renderLabels(Graphics2D g2d,
Chart chart,
ChartModel model,
Point2D center,
double width,
double height,
float[] angles,
ChartStyle style)
Render the labels to the supplied graphics context |
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 |
setLabelLineGapSize(int labelLineGapSize)
Specify the distance between the end of the label and the start of the line leading to the segment |
void |
setLabelXOffset(int labelXOffset)
Specifies the distance that the labels are offset from the pie in the x direction |
void |
setLineColor(Color lineColor)
Specify the color of the line that joins the label to the pie segment |
void |
setLineStroke(Stroke lineStroke)
|
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 |
| Methods inherited from class com.jidesoft.chart.render.AbstractPieLabelRenderer |
|---|
getLabelColor, getLabelFont, setLabelColor, setLabelFont |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LinePieLabelRenderer()
| Method Detail |
|---|
public PointLabeler getPointLabeler()
getPointLabeler in interface PieLabelRendererpublic void setPointLabeler(PointLabeler pointLabeler)
setPointLabeler in interface PieLabelRendererpublic int getTickLength()
getTickLength in interface PieLabelRendererpublic void setTickLength(int tickLength)
setTickLength in interface PieLabelRenderertickLength - the length of the ticks in pixelspublic int getLabelLineGapSize()
public void setLabelLineGapSize(int labelLineGapSize)
labelLineGapSize - the gap in pixels between the end of the label and the start of the line pointing to the segmentpublic Color getLineColor()
public void setLineColor(Color lineColor)
lineColor - the color of the line that joins the label to the pie segmentpublic Stroke getLineStroke()
public void setLineStroke(Stroke lineStroke)
public int getLabelXOffset()
public void setLabelXOffset(int labelXOffset)
labelXOffset - the distance in pixels
public void renderLabels(Graphics g,
Chart chart,
ChartModel model,
Point center,
int width,
int height,
int[] angles,
ChartStyle style)
renderLabels in interface PieLabelRendererg - the graphics contextchart - the chart to rendermodel - the model from which the points comecenter - the center of the piewidth - the width of the pieheight - the height of the pieangles - the angles to use for the segments of the piestyle - the chart style to use for displaying the segments
public void renderLabels(Graphics2D g2d,
Chart chart,
ChartModel model,
Point2D center,
double width,
double height,
float[] angles,
ChartStyle style)
PieLabelRenderer2D
renderLabels in interface PieLabelRenderer2Dg2d - the graphics contextchart - the chart to rendermodel - the model from which the points comecenter - the center of the piewidth - the width of the pieheight - the height of the pieangles - the angles to use for the segments of the piestyle - the chart style to use for displaying the segmentspublic void layout(List<com.jidesoft.chart.render.LinePieLabelRenderer.PieLabel> labels)
|
JIDE 3.3.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||