| java.lang.Object net.sourceforge.chart2d.Area net.sourceforge.chart2d.FontArea net.sourceforge.chart2d.TitledArea net.sourceforge.chart2d.ChartArea net.sourceforge.chart2d.PieChartArea
PieChartArea | final class PieChartArea extends ChartArea (Code) | | 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.
|
Constructor Summary | |
| PieChartArea() Creates a Pie Chart Area with default values. |
PieChartArea | PieChartArea()(Code) | | Creates a Pie Chart Area with default values.
|
getLabelsLineDotsColor | final Color getLabelsLineDotsColor()(Code) | | Returns the color of the dots on the lines between the pie sector labels
and the pie sectors.
The color of the dots. |
getLabelsLineDotsExistence | final boolean getLabelsLineDotsExistence()(Code) | | Returns the existence of the dots on the lines between the pie sector
labels and the pie sectors.
If true, the dots will be painted. |
getLabelsLineDotsThicknessModel | final int getLabelsLineDotsThicknessModel()(Code) | | Returns the model thickness of the dots on the lines between the pie sector
labels and the pie sectors.
The model thickness of the dots. |
getLabelsLinesColor | final Color getLabelsLinesColor()(Code) | | Returns the color of the lines between the pie sector labels and the pie
sectors.
The color of the lines. |
getLabelsLinesThicknessModel | final int getLabelsLinesThicknessModel()(Code) | | Return the model thickness of the lines between the pie sector labels and
the pie sectors.
The model thickness of the lines. |
getPieChartAreaNeedsUpdate | final boolean getPieChartAreaNeedsUpdate()(Code) | | Indicates whether some property of this class has changed.
True if some property has changed. |
getPieInfoArea | final PieInfoArea getPieInfoArea()(Code) | | Returns the pie labels component of this chart in order to allow
customization of it.
The pie labels area. |
getPrefSize | final Dimension getPrefSize(Graphics2D g2D)(Code) | | Returns the minimum size that the chart would need if it was to be redrawn,
the "preferred" size. The preferred size is the minimum size which would
need to be set as the maxmodel size of the chart, if the chart was to be
redrawn (assuming magnification is disabled).
Parameters: g2D - The graphics context for calculations and painting. The size of the minimum maxmodel for a redraw. |
paintComponent | final void paintComponent(Graphics2D g2D)(Code) | | Paints pie chart area components.
Parameters: g2D - The graphics context to use for calculations. |
resetPieChartAreaModel | final void resetPieChartAreaModel(boolean reset)(Code) | | Resets the model for this class. The model is used for shrinking and
growing of its components based on the maximum size of this class. If this
method is called, then the next time the maximum size is set, this classes
model maximum size will be made equal to the new maximum size. Effectively
what this does is ensure that whenever this objects maximum size is equal
to the one given, then all of the components will take on their default
model sizes. Note: This is only useful when auto model max sizing is
disabled.
Parameters: reset - True causes the max model to be reset upon next max sizing. |
setDataset | final void setDataset(float[] d)(Code) | | The dataset to plot.
Parameters: set - The set of data. |
setLabelsLineDotsColor | final void setLabelsLineDotsColor(Color color)(Code) | | Sets the color of the dots on the lines between the pie sector labels and
the pie sectors.
Parameters: color - The color of the dots. |
setLabelsLineDotsExistence | final void setLabelsLineDotsExistence(boolean existence)(Code) | | Sets the existence of the dots on the lines between the pie sector labels
and the pie sectors.
Parameters: existence - If true, the dots will be painted. |
setLabelsLineDotsThicknessModel | final void setLabelsLineDotsThicknessModel(int thickness)(Code) | | Sets the model thickness of the dots on the lines between the pie sector
labels and the pie sectors.
Parameters: thickness - The model thickness of the dots. |
setLabelsLinesColor | final void setLabelsLinesColor(Color color)(Code) | | Sets the color of the lines between the pie sector labels and the pie
sectors.
Parameters: color - The color of the lines. |
setLabelsLinesExistence | final void setLabelsLinesExistence(boolean existence)(Code) | | Sets the existence of the lines between the pie sector labels and the pie
sectors.
Parameters: existence - If true, the lines will be painted. |
setLabelsLinesThicknessModel | final void setLabelsLinesThicknessModel(int thickness)(Code) | | Sets the model thickness of the lines between the pie sector labels and the
pie sectors.
Parameters: thickness - The model thickness of the lines. |
setPieLabelsToHeightRatio | final void setPieLabelsToHeightRatio(float ratio)(Code) | | Sets the height to be shared by all the labels, beyond the height of the
pie. For instance, if there are lables on the top and the bottom of the
pie, then their max heights will be equal and will each be half of the
height indicated by applying the ratio to the max width of the chart.
Parameters: ratio - The ratio for indicating the max heights of the labels. |
setPieLabelsToWidthRatio | final void setPieLabelsToWidthRatio(float ratio)(Code) | | Sets the width to be shared by all the labels, beyond the width of the
pie. For instance, if there are labels on the left and the right of the
pie, then their max widths will be equal and will each be half of the width
indicated by applying the ratio to the max width of the chart.
Parameters: ratio - The ratio for indicating the max widths of the labels. |
updatePieChartArea | final void updatePieChartArea(Graphics2D g2D)(Code) | | Updates this parent's variables, and this' variables.
Parameters: g2D - The graphics context to use for calculations. |
Methods inherited from net.sourceforge.chart2d.Area | final int applyRatio(int model, float ratio)(Code)(Java Doc) final boolean getAreaNeedsUpdate()(Code)(Java Doc) final boolean getAutoSize(int which)(Code)(Java Doc) final Color getBackgroundColor()(Code)(Java Doc) final boolean getBackgroundExistence()(Code)(Java Doc) final Color getBorderColor()(Code)(Java Doc) final Color getBorderColor(int which)(Code)(Java Doc) final boolean getBorderExistence()(Code)(Java Doc) final boolean getBorderExistence(int which)(Code)(Java Doc) final int getBorderThickness(int which)(Code)(Java Doc) final int getBorderThickness()(Code)(Java Doc) final int getBorderThicknessModel()(Code)(Java Doc) final int getBorderThicknessModel(int which)(Code)(Java Doc) final boolean getGapExistence()(Code)(Java Doc) final boolean getGapExistence(int which)(Code)(Java Doc) final int getGapThickness()(Code)(Java Doc) final int getGapThickness(int which)(Code)(Java Doc) final int getGapThicknessModel()(Code)(Java Doc) final int getJustifications(int which)(Code)(Java Doc) int getLightSource()(Code)(Java Doc) final int getOffsetThickness()(Code)(Java Doc) final float getRatio(int which)(Code)(Java Doc) final boolean getResetAreaModel()(Code)(Java Doc) final Dimension getSize(int which)(Code)(Java Doc) final Point getSizeLocation(int which)(Code)(Java Doc) final Dimension getSpaceSize(int which)(Code)(Java Doc) final Point getSpaceSizeLocation(int which)(Code)(Java Doc) void paintComponent(Graphics2D g2D)(Code)(Java Doc) final void resetAreaModel(boolean reset)(Code)(Java Doc) final void setAutoJustifys(boolean horizontal, boolean vertical)(Code)(Java Doc) final void setAutoSizes(boolean maxModel, boolean min)(Code)(Java Doc) final void setBackgroundColor(Color color)(Code)(Java Doc) final void setBackgroundExistence(boolean existence)(Code)(Java Doc) final void setBorderAssociations(boolean leftRight, boolean leftTop, boolean leftBottom, boolean rightTop, boolean rightBottom, boolean topBottom)(Code)(Java Doc) final void setBorderColor(Color color)(Code)(Java Doc) final void setBorderColors(Color left, Color right, Color top, Color bottom)(Code)(Java Doc) final void setBorderCornerAssociations(int leftTop, int leftBottom, int rightTop, int rightBottom)(Code)(Java Doc) final void setBorderExistence(boolean existences)(Code)(Java Doc) final void setBorderExistences(boolean left, boolean right, boolean top, boolean bottom)(Code)(Java Doc) final void setBorderThicknessModel(int thickness)(Code)(Java Doc) final void setBorderThicknessModels(int left, int right, int top, int bottom)(Code)(Java Doc) final void setCustomRatio(int which, boolean customize, float ratio)(Code)(Java Doc) final void setGapAssociations(boolean leftRight, boolean leftTop, boolean leftBottom, boolean rightTop, boolean rightBottom, boolean topBottom)(Code)(Java Doc) final void setGapExistence(boolean existence)(Code)(Java Doc) final void setGapExistences(boolean left, boolean right, boolean top, boolean bottom)(Code)(Java Doc) final void setGapThicknessModel(int thickness)(Code)(Java Doc) final void setGapThicknessModels(int left, int right, int top, int bottom)(Code)(Java Doc) final void setJustifications(int horizontal, int vertical)(Code)(Java Doc) void setLightSource(int source)(Code)(Java Doc) final void setLockRatios(boolean lock)(Code)(Java Doc) final void setSize(int which, Dimension size)(Code)(Java Doc) final void setSizeLocation(int which, Point location)(Code)(Java Doc) final void setSpaceSize(int which, Dimension size)(Code)(Java Doc) final void setSpaceSizeLocation(int which, Point location)(Code)(Java Doc) final void updateArea()(Code)(Java Doc)
|
|
|