|
JIDE 3.5.15 | ||||||||
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 | |
---|---|
protected Color |
createLabelColor(Chart chart,
ChartModel model,
Chartable p)
|
protected Font |
createLabelFont(Chart chart,
ChartModel model,
Chartable p)
|
protected Color |
createLineColor(Chart chart,
ChartModel model,
Chartable p)
This method is called to determine the line color. |
int |
getLabelControlPointDistance()
|
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 |
getSegmentControlPointDistance()
|
int |
getTickLength()
|
boolean |
isShowAllLabels()
|
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 |
setLabelControlPointDistance(int labelControlPointDistance)
|
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 |
setSegmentControlPointDistance(int segmentControlPointDistance)
|
void |
setShowAllLabels(boolean showAllLabels)
|
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 PieLabelRenderer
public void setPointLabeler(PointLabeler pointLabeler)
setPointLabeler
in interface PieLabelRenderer
public int getTickLength()
getTickLength
in interface PieLabelRenderer
public void setTickLength(int tickLength)
setTickLength
in interface PieLabelRenderer
tickLength
- the length of the ticks in pixelspublic int getSegmentControlPointDistance()
public void setSegmentControlPointDistance(int segmentControlPointDistance)
public int getLabelControlPointDistance()
public void setLabelControlPointDistance(int labelControlPointDistance)
public 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 segmentprotected Color createLineColor(Chart chart, ChartModel model, Chartable p)
protected Color createLabelColor(Chart chart, ChartModel model, Chartable p)
protected Font createLabelFont(Chart chart, ChartModel model, Chartable p)
public Stroke getLineStroke()
public void setLineStroke(Stroke lineStroke)
public int getLabelXOffset()
public void setLabelXOffset(int labelXOffset)
labelXOffset
- the distance in pixelspublic boolean isShowAllLabels()
public void setShowAllLabels(boolean showAllLabels)
public void renderLabels(Graphics g, Chart chart, ChartModel model, Point center, int width, int height, int[] angles, ChartStyle style)
renderLabels
in interface PieLabelRenderer
g
- 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 renderLabels(Graphics2D g2d, Chart chart, ChartModel model, Point2D center, double width, double height, float[] angles, ChartStyle style)
PieLabelRenderer2D
renderLabels
in interface PieLabelRenderer2D
g2d
- 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.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |