|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ujac.chart.BaseChart org.ujac.chart.BasePieChart org.ujac.chart.BasePieChart3D org.ujac.chart.DonutChart3D
public class DonutChart3D
Name: DonutChart3D
Description: A class rendering 3D donut charts.
Field Summary | |
---|---|
static float |
DEFAULT_HOLE_SIZE
The default hole size. |
Fields inherited from class org.ujac.chart.BasePieChart3D |
---|
DEFAULT_PIE_HEIGHT |
Fields inherited from class org.ujac.chart.BaseChart |
---|
attributes, DEFAULT_BORDER_WIDTH, DEFAULT_DESCRIPTION_COLOR, DEFAULT_DESCRIPTION_FONT, DEFAULT_DESCRIPTION_LINE_WIDTH, DEFAULT_PADDING, DEFAULT_SHADOW_COLOR, DEFAULT_SHADOW_OFFSET, DEFAULT_TITLE_FONT, defaultPercentFormat, defaultValueFormat, model |
Constructor Summary | |
---|---|
DonutChart3D()
|
Method Summary | |
---|---|
protected void |
drawSlice(Graphics2D graphics,
Color color,
int sliceIdx,
int stepIdx)
Draws a pie slice. |
protected void |
drawSliceShadow(Graphics2D graphics,
Color color,
int sliceIdx)
Draws the shadow of a pie slice. |
protected int |
getDescriptionDrawingStep()
Gets the index of the step before which to draw the chart description. |
float |
getHoleSize()
Gets the hole size. |
protected int |
getNumDrawingSteps()
Gets the number of drawing steps to perform to draw the slices. |
protected void |
init(int numSegments)
Initializes the data structures for the chart metrics. |
Methods inherited from class org.ujac.chart.BasePieChart3D |
---|
getDeltaY, getPieHeight, getSliceHeight |
Methods inherited from class org.ujac.chart.BasePieChart |
---|
calculateSliceMetrics, draw, drawDescription, getPieCenter, getPieDescriptionAnchorRatio, getPieDescriptionBaselineRatio, getPieDescriptionLayout, getPieSize, supportsNegativeValues |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final float DEFAULT_HOLE_SIZE
Constructor Detail |
---|
public DonutChart3D()
Method Detail |
---|
public float getHoleSize()
protected int getNumDrawingSteps()
getNumDrawingSteps
in class BasePieChart
protected int getDescriptionDrawingStep()
getDescriptionDrawingStep
in class BasePieChart
protected void init(int numSegments)
init
in class BasePieChart3D
numSegments
- The number of metrics for which toBasePieChart.init(int)
protected void drawSlice(Graphics2D graphics, Color color, int sliceIdx, int stepIdx)
drawSlice
in class BasePieChart
graphics
- The graphics object to draw width.color
- The slice's color.sliceIdx
- The index of the slice to draw.stepIdx
- The index of the drawing step to perform.protected void drawSliceShadow(Graphics2D graphics, Color color, int sliceIdx)
drawSliceShadow
in class BasePieChart
graphics
- The graphics object to draw width.color
- The slice's color.sliceIdx
- The index of the slice to draw.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |