|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--net.sourceforge.chart2d.Area
|
+--net.sourceforge.chart2d.FontArea
|
+--net.sourceforge.chart2d.TitledArea
|
+--net.sourceforge.chart2d.ChartArea
|
+--net.sourceforge.chart2d.PieChartArea
A titled pie chart with legend exactly like PieChart2D with one difference. This chart does not keep the title near to it, when auto min sizing is disabled. In this scenario, the title would be near the top of the max size and the chart would be centered within the left over space. This is not desireable. PieChart2D forces the title as near as possible to the chart under unless explicitly set not to. PieChart2D uses this class. It creates one of these charts with min sizing enabled. That produces a chart that is where the title is forced near the chart, and the chart is centered in the middle of the area. But really, if any settings of the chart need to be changed they are generally changed here, or in one of its components available through a get method.
| Fields inherited from class net.sourceforge.chart2d.ChartArea |
DEFAULT_FLOAT, MAX_FLOAT, MAX_INTEGER |
| Fields inherited from class net.sourceforge.chart2d.Area |
BETWEEN, BOTTOM, CENTER, CENTERED, CONTINUOUS, DASHED, DOTTED, FLOAT, HEIGHT, HORIZONTAL, INTEGER, LABELSBOTTOM, LABELSLEFT, LEFT, LEFTBOTTOM, LEFTRIGHT, LEFTTOP, LESSER, MAX, MAXMODEL, MIN, RIGHT, RIGHTBOTTOM, RIGHTTOP, TOP, TOPBOTTOM, VERTICAL, WIDTH |
| Constructor Summary | |
(package private) |
PieChartArea()
Creates a Pie Chart Area with default values. |
| Method Summary | |
(package private) java.awt.Color |
getLabelsLineDotsColor()
Returns the color of the dots on the lines between the pie sector labels and the pie sectors. |
(package private) boolean |
getLabelsLineDotsExistence()
Returns the existence of the dots on the lines between the pie sector labels and the pie sectors. |
(package private) int |
getLabelsLineDotsThicknessModel()
Returns the model thickness of the dots on the lines between the pie sector labels and the pie sectors. |
(package private) java.awt.Color |
getLabelsLinesColor()
Returns the color of the lines between the pie sector labels and the pie sectors. |
(package private) int |
getLabelsLinesThicknessModel()
Return the model thickness of the lines between the pie sector labels and the pie sectors. |
(package private) PieArea |
getPie()
Returns the pie component of this chart in order to allow customization of it. |
(package private) boolean |
getPieChartAreaNeedsUpdate()
Indicates whether some property of this class has changed. |
(package private) PieLabelsArea |
getPieLabels()
Returns the pie labels component of this chart in order to allow customization of it. |
(package private) boolean |
getPieLabelsExistence()
Returns whether the labels exist or not. |
(package private) java.awt.Dimension |
getPrefSize(java.awt.Graphics2D g2D)
Returns the minimum size that the chart would need if it was to be redrawn, the "preferred" size. |
(package private) void |
paintComponent(java.awt.Graphics2D g2D)
Paints pie chart area components. |
(package private) void |
resetPieChartAreaModel(boolean reset)
Resets the model for this class. |
(package private) void |
setDataset(Dataset set)
The Dataset to plot. |
(package private) void |
setLabelsLineDotsColor(java.awt.Color color)
Sets the color of the dots on the lines between the pie sector labels and the pie sectors. |
(package private) void |
setLabelsLineDotsExistence(boolean existence)
Sets the existence of the dots on the lines between the pie sector labels and the pie sectors. |
(package private) void |
setLabelsLineDotsThicknessModel(int thickness)
Sets the model thickness of the dots on the lines between the pie sector labels and the pie sectors. |
(package private) void |
setLabelsLinesColor(java.awt.Color color)
Sets the color of the lines between the pie sector labels and the pie sectors. |
(package private) void |
setLabelsLinesExistence(boolean existence)
Sets the existence of the lines between the pie sector labels and the pie sectors. |
(package private) void |
setLabelsLinesThicknessModel(int thickness)
Sets the model thickness of the lines between the pie sector labels and the pie sectors. |
(package private) void |
setPieLabelsExistence(boolean existence)
Sets whether the labels exist or not. |
(package private) void |
setPieLabelsToHeightRatio(float ratio)
Sets the height to be shared by all the labels, beyond the height of the pie. |
(package private) void |
setPieLabelsToWidthRatio(float ratio)
Sets the width to be shared by all the labels, beyond the width of the pie. |
(package private) void |
setPieToHeightRatio(float ratio)
Specifies how much of the maximum height less borders, gaps, and title to make availalble to the pie maximum size. |
(package private) void |
setPieToWidthRatio(float ratio)
Specifies how much of the maximum width less borders and gaps to make availalble to the pie maximum size. |
(package private) void |
updatePieChartArea(java.awt.Graphics2D g2D)
Updates this parent's variables, and this' variables. |
| Methods inherited from class net.sourceforge.chart2d.FontArea |
getFont, getFontAreaNeedsUpdate, getFontColor, getFontName, getFontPointModel, getFontStyle, resetFontAreaModel, setFontColor, setFontName, setFontPointModel, setFontStyle, updateFontArea |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
PieChartArea()
| Method Detail |
void setDataset(Dataset set)
set - The set of data.void setLabelsLineDotsExistence(boolean existence)
existence - If true, the dots will be painted.boolean getLabelsLineDotsExistence()
void setLabelsLineDotsThicknessModel(int thickness)
thickness - The model thickness of the dots.int getLabelsLineDotsThicknessModel()
void setLabelsLineDotsColor(java.awt.Color color)
color - The color of the dots.java.awt.Color getLabelsLineDotsColor()
void setLabelsLinesExistence(boolean existence)
existence - If true, the lines will be painted.void setLabelsLinesThicknessModel(int thickness)
thickness - The model thickness of the lines.int getLabelsLinesThicknessModel()
void setLabelsLinesColor(java.awt.Color color)
color - The color of the lines.java.awt.Color getLabelsLinesColor()
void setPieLabelsExistence(boolean existence)
existence - A boolean indicating whether the labels are painted.boolean getPieLabelsExistence()
void setPieLabelsToWidthRatio(float ratio)
ratio - The ratio for indicating the max widths of the labels.void setPieLabelsToHeightRatio(float ratio)
ratio - The ratio for indicating the max heights of the labels.void setPieToWidthRatio(float ratio)
ratio - The ratio to the width, to make available to the pie.void setPieToHeightRatio(float ratio)
ratio - The ratio to the height, to make available to the pie.java.awt.Dimension getPrefSize(java.awt.Graphics2D g2D)
g2D - The graphics context for calculations and painting.PieArea getPie()
PieLabelsArea getPieLabels()
void resetPieChartAreaModel(boolean reset)
reset - True causes the max model to be reset upon next max sizing.boolean getPieChartAreaNeedsUpdate()
void updatePieChartArea(java.awt.Graphics2D g2D)
g2D - The graphics context to use for calculations.void paintComponent(java.awt.Graphics2D g2D)
paintComponent in class ChartAreag2D - The graphics context to use for calculations.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||