| java.lang.Object net.sourceforge.chart2d.Properties net.sourceforge.chart2d.Chart2DProperties
Chart2DProperties | final public class Chart2DProperties extends Properties (Code) | | A data structure for holding the properties common to all Chart2D charts.
Chart2D charts are all capable of having a legend.
Pass this to any number of Chart2D objects.
|
Constructor Summary | |
public | Chart2DProperties() Creates a Chart2DProperties object with the documented default values. | public | Chart2DProperties(Chart2DProperties chart2DProps) Creates a Chart2DProperties object with property values copied from another object. |
CHART_BETWEEN_CHART_AND_LEGEND_GAP_EXISTENCE_DEFAULT | final public static boolean CHART_BETWEEN_CHART_AND_LEGEND_GAP_EXISTENCE_DEFAULT(Code) | | The default is true.
|
CHART_BETWEEN_CHART_AND_LEGEND_GAP_THICKNESS_MODEL_DEFAULT | final public static int CHART_BETWEEN_CHART_AND_LEGEND_GAP_THICKNESS_MODEL_DEFAULT(Code) | | The default is 5.
|
CHART_DATA_LABELS_PRECISION_DEFAULT | final public static int CHART_DATA_LABELS_PRECISION_DEFAULT(Code) | | The default is MAX_INTEGER.
|
MAX_FLOAT | final public static int MAX_FLOAT(Code) | | The number is -38.
|
MAX_INTEGER | final public static int MAX_INTEGER(Code) | | The number is 38.
|
Chart2DProperties | public Chart2DProperties()(Code) | | Creates a Chart2DProperties object with the documented default values.
|
Chart2DProperties | public Chart2DProperties(Chart2DProperties chart2DProps)(Code) | | Creates a Chart2DProperties object with property values copied from another object.
The copying is a deep copy.
Parameters: chart2DProps - The properties to copy. |
addChart2D | final void addChart2D(Chart2D chart2D)(Code) | | Adds a Chart2D to the set of objects using these properties.
Parameters: chart2D - The object to add. |
getChart2DNeedsUpdate | final boolean getChart2DNeedsUpdate(Chart2D chart2D)(Code) | | Gets whether this object needs to be updated with new properties.
Parameters: chart2D - The object that may need to be updated. If true then needs update. |
getChartBetweenChartAndLegendGapExistence | final public boolean getChartBetweenChartAndLegendGapExistence()(Code) | | Gets whether the gap between the chart and the legend exists.
If the legend doesn't exist, this gap will automatically not exist.
If true, the gap exists. |
getChartBetweenChartAndLegendGapThicknessModel | final public int getChartBetweenChartAndLegendGapThicknessModel()(Code) | | Gets the thickness of the gap between the chart and the legend for the chart's model size.
The model thickness of the gap. |
getChartDataLabelsPrecision | final public int getChartDataLabelsPrecision()(Code) | | Gets the look of labels that are supposed to describe the value of the
data. For example, for pie charts this method will influence
the labels that surround the chart, and for charts with axes this method
will influence the labels on the numbers axis. The specific labels are
first determined from the greatest and least value in the data set and
other factors. This method then lets you adjust whether you want integer
or floating point labels and how exact you want those labels to be. You
do this using the precision parameter, and passing values between 8 and -8.
Nonnegative ints indicate the labels will not contain
a decimal (ie will be integer labels), and the specific nonnegative
number indicates how many zeroes will be to the left of the decimal if
it were there (ex. for the number 1976, a precision of 0 would return 1976,
a precision of 1 would return 1980, a precision of 3 would return 2000, and
a precision greater than 3 would also return 2000). If the number of
desired zeroes is greater than the label, then the number of zeroes is
automatically scaled back to be 1 less than the number of digits. Negative
ints for precision indicate the labels will contain a decimal, and the
specific negative number indicates how many digits to the right of the
decimal are wanted (ex. for the number 1.935, a precision of -1 would
return 1.9, a precision of -2 would return 1.94, a precision of -4 would
return 1.9350). If the number of desired decimal places is larger than the
number of places present in the number, then zeroes are added to form as
many places as are desired up to -8. MAX_INTEGER or MAX_FLOAT will always
indicate the maximum number of zeroes and the maximum number of decimal
places possible by Chart2D's algorithm for adjusting these labels.
The adjustement of the precision of numbers labels. |
removeChart2D | final void removeChart2D(Chart2D chart2D)(Code) | | Removes a Chart2D from the set of objects using these properties.
Parameters: chart2D - The object to remove. |
setChart2DProperties | final public void setChart2DProperties(Chart2DProperties chart2DProps)(Code) | | Sets all properties to be the values of another Chart2DProperties object.
The copying is a deep copy.
Parameters: chart2DProps - The properties to copy. |
setChart2DPropertiesToDefaults | final public void setChart2DPropertiesToDefaults()(Code) | | Sets all properties to their default values.
|
setChartBetweenChartAndLegendGapExistence | final public void setChartBetweenChartAndLegendGapExistence(boolean existence)(Code) | | Sets whether the gap between the chart and the legend exists.
If the legend doesn't exist, this gap will automatically not exist.
Parameters: existence - If true, the gap exists. |
setChartBetweenChartAndLegendGapThicknessModel | final public void setChartBetweenChartAndLegendGapThicknessModel(int thickness)(Code) | | Sets the thickness of the gap between the chart and the legend for the chart's model size.
Parameters: thickness - The model thickness of the gap. |
setChartDataLabelsPrecision | final public void setChartDataLabelsPrecision(int precision)(Code) | | Sets the look of labels that are supposed to describe the value of the
data. For example, for pie charts this method will influence
the labels that surround the chart, and for charts with axes this method
will influence the labels on the numbers axis. The specific labels are
first determined from the greatest and least value in the data set and
other factors. This method then lets you adjust whether you want integer
or floating point labels and how exact you want those labels to be. You
do this using the precision parameter, and passing values between 38 and -38.
Nonnegative ints indicate the labels will not contain
a decimal (ie will be integer labels), and the specific nonnegative
number indicates how many zeroes will be to the left of the decimal if
it were there (ex. for the number 1976, a precision of 0 would return 1976,
a precision of 1 would return 1980, a precision of 3 would return 2000, and
a precision greater than 3 would also return 2000). If the number of
desired zeroes is greater than the label, then the number of zeroes is
automatically scaled back to be 1 less than the number of digits. Negative
ints for precision indicate the labels will contain a decimal, and the
specific negative number indicates how many digits to the right of the
decimal are wanted (ex. for the number 1.935, a precision of -1 would
return 1.9, a precision of -2 would return 1.94, a precision of -4 would
return 1.9350). If the number of desired decimal places is larger than the
number of places present in the number, then zeroes are added to form as
many places as are desired up to -38. MAX_INTEGER or MAX_FLOAT will always
indicate the maximum number of zeroes and the maximum number of decimal
places possible by Chart2D's algorithm for adjusting these labels.
Parameters: precision - The adjustement of the precision of numbers labels. |
updateChart2D | final void updateChart2D(Chart2D chart2D)(Code) | | Updates the properties of this Chart2D.
Parameters: chart2D - The Chart2D to update. |
validate | final boolean validate(boolean debug)(Code) | | Validates the properties of this object.
If debug is true then prints a messages indicating whether each property is valid.
Returns true if all the properties were valid and false otherwise.
Parameters: debug - If true then will print status messages. If true then valid. |
Methods inherited from net.sourceforge.chart2d.Properties | final public synchronized boolean isFontNameExists(String name)(Code)(Java Doc)
|
|
|