|
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.AbstractRenderer
com.jidesoft.chart.render.AbstractPieSegmentRenderer
com.jidesoft.chart.render.Pie3DRenderer
public class Pie3DRenderer
A 3D Pie chart renderer
| Field Summary |
|---|
| Fields inherited from class com.jidesoft.chart.render.AbstractPieSegmentRenderer |
|---|
maxExplode, PROPERTY_ALWAYS_SHOW_OUTLINES, PROPERTY_PIE_LABEL_RENDERER, PROPERTY_POINT_LABELER, PROPERTY_TICK_LENGTH |
| Fields inherited from class com.jidesoft.chart.render.AbstractRenderer |
|---|
alwaysShowOutlines, PROPERTY_OUTLINE_WIDTH, ROLLOVER_INTENSITY, support |
| Constructor Summary | |
|---|---|
Pie3DRenderer()
|
|
| Method Summary | |
|---|---|
float[] |
getSpotlightRatios()
Get the three spotlight ratio values |
float |
getThicknessRatio()
Returns the thickness of the pie chart as a ratio of the pie diameter |
protected void |
renderOutlines(boolean isForSelection,
Graphics2D g2d,
Chart chart,
ChartModel model,
Point center,
int w,
int h,
int[] angles,
ChartStyle style)
Renders the outlines for a 3d pie chart, only when rollover is activated |
protected void |
renderOutlines2D(boolean isForSelection,
Graphics2D g2d,
Chart chart,
ChartModel model,
Point2D center,
int w,
int h,
float[] angles,
ChartStyle style)
|
void |
renderSegments(Graphics2D g2d,
Chart chart,
ChartModel m,
Point2D center,
float radius,
float[] angles)
The method for rendering segments onto the supplied graphics context |
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 |
setSpotlightRatios(float[] ratios)
Set four brightness ratios used to apply to colours on the main surface of the pie chart to give a spotlight effect. |
void |
setThicknessRatio(float thicknessRatio)
Specify the thickness of the pie chart as a ratio of the pie diameter. |
| Methods inherited from class com.jidesoft.chart.render.AbstractPieSegmentRenderer |
|---|
clearShapes, containingSegment, createSegmentPaint, getLabelGraphics, getPieLabelRenderer, getPointLabeler, getTickLength, modify, recordSegment, rendered, renderLabels, renderOutlines, renderOutlines2D, setLabelGraphics, setPieLabelRenderer, setPointLabeler, setTickLength |
| Methods inherited from class com.jidesoft.chart.render.AbstractRenderer |
|---|
addPropertyChangeListener, getOutlineColor, getOutlineWidth, getSelectionColor, isAlwaysShowOutlines, removePropertyChangeListener, setAlwaysShowOutlines, setOutlineColor, setOutlineWidth, setSelectionColor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.jidesoft.chart.render.PieSegmentRenderer |
|---|
clearShapes, containingSegment, getPieLabelRenderer, getPointLabeler, getTickLength, setLabelGraphics, setPointLabeler, setTickLength |
| Constructor Detail |
|---|
public Pie3DRenderer()
| Method Detail |
|---|
public float getThicknessRatio()
public void setThicknessRatio(float thicknessRatio)
thicknessRatio - the thickness of the pie chart as a ratio of the pie diameterpublic float[] getSpotlightRatios()
public void setSpotlightRatios(float[] ratios)
ratios - the new brightness ratios
public void renderSegments(Graphics2D g2d,
Chart chart,
ChartModel m,
Point2D center,
float radius,
float[] angles)
PieSegmentRenderer2D
renderSegments in interface PieSegmentRenderer2Dg2d - the Graphics2D 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
public void renderSegments(Graphics g,
Chart chart,
ChartModel m,
Point center,
int radius,
int[] angles)
renderSegments in interface PieSegmentRendererg - 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
protected void renderOutlines(boolean isForSelection,
Graphics2D g2d,
Chart chart,
ChartModel model,
Point center,
int w,
int h,
int[] angles,
ChartStyle style)
isForSelection - there are two reasons or modes in which this method is invoked:
one is for rendering outlines because it has been specified that outlines should always
be displayed; and the other is for rendering an outline because it has been selected.
If we call this method for the latter reason, this parameter is true.g2d - the graphics contextchart - the chart componentmodel - the chart model for which we are rendering outlinescenter - the center of the ellipse for which this is a segmentw - the width of the ellipseh - the height of the ellipseangles - an array of anglesstyle - style hints for the display (currently unused)
protected void renderOutlines2D(boolean isForSelection,
Graphics2D g2d,
Chart chart,
ChartModel model,
Point2D center,
int w,
int h,
float[] angles,
ChartStyle style)
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||