|
|||||||||
| 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
A container containing information and components for all charts.
| Field Summary | |
(package private) static int |
DEFAULT_FLOAT
Used by setLabelsPrecisionNum (int num). |
(package private) static int |
MAX_FLOAT
Used by setLabelsPrecisionNum (int num). |
(package private) static int |
MAX_INTEGER
Used by setLabelsPrecisionNum (int num). |
| 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) |
ChartArea()
Creates a Chart Area with the default values. |
| Method Summary | |
(package private) boolean |
getAutoColor()
Indicates whether this chart will obtain its own colors automatically, or whether it will use the user specified colors. |
(package private) boolean |
getAutoSetLayoutRatios()
Returns whether upon the next painting, the layout ratios distributing the max size of the space between the components, should be set to their ideal values based on particulars of the chart. |
(package private) boolean |
getBetweenChartAndLegendGapExistence()
Returns whether the gap between the chart and the legend exists. |
(package private) int |
getBetweenChartAndLegendGapThicknessModel()
Returns the thickness of the gap between the chart and the legend for the chart's model size. |
(package private) boolean |
getChartAreaNeedsUpdate()
Indicates whether some property of this class has changed. |
(package private) int |
getColorsType()
Gets the automatic colors type. |
(package private) static float[] |
getDataCategoryTotals(float[][] dataSets)
Returns the total amount of data in for each data category. |
(package private) java.awt.Color[] |
getDataSetColors(java.awt.Graphics2D g2D)
Returns the colors the auto charting algorithm chose or your custom colors. |
(package private) java.awt.Color[] |
getDataSetColors(java.awt.Graphics2D g2D,
int begin,
int end)
Returns the colors the auto charting algorithm chose or your custom colors, from the beginning index (inclusive) and to the ending index (exclusive). |
(package private) static float |
getDataSetTotal(float[] dataSet)
Returns the total amount of data in this set. |
(package private) static java.lang.String |
getFloatToString(float value,
int places)
Returns a simple string representation of the float. |
(package private) int |
getLabelsPrecisionNum()
Indicates how many decimal places should be in the labels of the value axis. |
(package private) LegendArea |
getLegend()
Returns the legend in order to allow customization of it. |
(package private) boolean |
getLegendExistence()
Returns this property in order for subclasses to have access to it. |
(package private) float |
getLegendToHeightRatio()
Returns this property in order for subclasses to have access to it. |
(package private) float |
getLegendToWidthRatio()
Returns this property in order for subclasses to have access to it. |
(package private) static float |
getPrecisionCeil(float value,
int precision)
Provides a more sophisticated use of Math.ceil(double). |
(package private) static float |
getPrecisionFloor(float value,
int precision)
Provides a more sophisticated use of Math.floor(double). |
(package private) static float |
getPrecisionRound(float value,
int precision)
Provides a more sophisticated use of Math.round(double). |
(package private) boolean |
getTitleSqueeze()
Indicates whether the title should be squeezed on top of, and near to the chart. |
(package private) void |
paintComponent(java.awt.Graphics2D g2D)
Updates this parent's variables, and this' variables. |
(package private) void |
resetChartAreaModel(boolean reset)
Resets the model for this class. |
(package private) void |
setAutoColor(boolean auto)
Changes whether this chart should choose its own colors for the chart. |
(package private) void |
setAutoSetLayoutRatios(boolean auto)
Indiates whether upon the next painting, the layout ratios distributing the max size of the space between the components, should be set to their ideal values based on particulars of the chart. |
(package private) void |
setBetweenChartAndLegendGapExistence(boolean existence)
Specifies whether the gap between the chart and the legend exists. |
(package private) void |
setBetweenChartAndLegendGapThicknessModel(int thickness)
Specifies the thickness of the gap between the chart and the legend for the chart's model size. |
(package private) void |
setDataSetColors(java.awt.Color[] colors)
Sets the colors for the pie sectors and the legend bullets. |
(package private) void |
setDataSetColorsType(int type)
Changes the automatic colors type. |
(package private) void |
setLabelsPrecisionNum(int num)
Changes the number of decimal places to be displayed on the data values axis. |
(package private) void |
setLegendExistence(boolean existence)
Enables or disables the legend from calculations and painting. |
(package private) void |
setLegendToHeightRatio(float ratio)
Specifies how much of the maximum height less borders, gaps, and title to make availalble to the legend maximum size. |
(package private) void |
setLegendToWidthRatio(float ratio)
Specifies how much of the maximum width less borders and gaps to make availalble to the legend maximum size. |
(package private) void |
setNumDataSets(int num)
Specifies how many data sets this chart contains. |
(package private) void |
setTitleSqueeze(boolean squeeze)
Changes whether the chart title should be squeezed near to and on top of the chart graph and legend. |
(package private) void |
updateChartArea(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 |
|
| Field Detail |
static final int MAX_INTEGER
static final int MAX_FLOAT
static final int DEFAULT_FLOAT
| Constructor Detail |
ChartArea()
| Method Detail |
void setBetweenChartAndLegendGapExistence(boolean existence)
existence - If true, the gap exists.void setBetweenChartAndLegendGapThicknessModel(int thickness)
thickness - The model thickness of the gap.boolean getBetweenChartAndLegendGapExistence()
int getBetweenChartAndLegendGapThicknessModel()
void setNumDataSets(int num)
The - number of data sets this chart contains.void setAutoSetLayoutRatios(boolean auto)
auto - If true, then the ratios will be adjusted.boolean getAutoSetLayoutRatios()
void setTitleSqueeze(boolean squeeze)
squeeze - True if the title should be squeezed.void setAutoColor(boolean auto)
auto - True if this chart should automatically color chart parts.void setDataSetColorsType(int type)
type - The type of auto colors.void setDataSetColors(java.awt.Color[] colors)
colors - The array of colors.void setLegendExistence(boolean existence)
existence - The existence of the legend.void setLegendToWidthRatio(float ratio)
ratio - The ratio to the width, to make available to the legend.void setLegendToHeightRatio(float ratio)
ratio - The ratio to the height, to make available to the legend.void setLabelsPrecisionNum(int num)
num - The number of decimal places.boolean getTitleSqueeze()
boolean getAutoColor()
True - if it will choose its own colors.int getColorsType()
static final float getDataSetTotal(float[] dataSet)
data - set. The data set to sum.static final float[] getDataCategoryTotals(float[][] dataSets)
java.awt.Color[] getDataSetColors(java.awt.Graphics2D g2D)
java.awt.Color[] getDataSetColors(java.awt.Graphics2D g2D,
int begin,
int end)
LegendArea getLegend()
boolean getLegendExistence()
float getLegendToWidthRatio()
float getLegendToHeightRatio()
boolean getChartAreaNeedsUpdate()
int getLabelsPrecisionNum()
static final float getPrecisionCeil(float value,
int precision)
value - The value to ceil.precision - The basically an indicator of what digit to apply ceil to.
static final float getPrecisionFloor(float value,
int precision)
value - The value to floor.precision - The basically an indicator of what digit to apply floor to.
static final float getPrecisionRound(float value,
int precision)
value - The value to round.precision - The basically an indicator of what digit to apply round to.
static final java.lang.String getFloatToString(float value,
int places)
value - The value to represent.places - Roughly, the number of decimal places in the representation.void resetChartAreaModel(boolean reset)
reset - True causes the max model size to be set upon the next max
sizing.void updateChartArea(java.awt.Graphics2D g2D)
g2D - The graphics context to use for calculations.void paintComponent(java.awt.Graphics2D g2D)
paintComponent in class TitledAreag2D - The graphics context to use for calculations.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||