abstractpublic class GraphChart2D extends Chart2D(Code)
An abstract class for the common methods of LBChart2D and LLChart2D.
A GraphChart2D object is an area that contains axes and one or more overlaid graphs.
Changes through its set methods are updated upon next repaint() or getImage() calls.
validateGraphChart2D(boolean debug) 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.
Creates a GraphChart2D object with its defaults.
A GraphChart2DProperties object must be set for this object before it is used.
A GraphProperties object must be added for this object before it is used.
A Dataset object must be added for this object before it is used.
A MultiColorsProperties object must be added for this object before it is used.
Gets a graph properties based on the order the graph properties were added.
First added is number zero.
The graph properties object added to this chart.
Gets a warning region properties based on the order the properties were added.
First added is number zero.
The warning region properties object added to this chart.
getWarningRegionPropertiesVector
final Vector getWarningRegionPropertiesVector()(Code)
Gets the vector of WarningRegionProperties objects that were added.
The warning region properties objects vector.
removeDataset
final public void removeDataset(Dataset dataset)(Code)
Removes a Dataset object from this chart.
Parameters: dataset - The dataset to remove from this chart.
Sets the GraphChart2DProperties for this GraphChart2D.
Parameters: props - The GraphChart2DProperties.
setLayoutRatios
final public void setLayoutRatios(float graphW, float graphH, float legendW)(Code)
Sets the allocation of space to each component of a graph chart.
There are four components: numbers axis, labels axis, graph, and legend.
The ratios of the axes can be determined from the ratios of the graph and the legend.
Depending on the chart type, the left and bottom axes can be the numbers axis and labels axis.
The width of the left axis is 1f - graphW - legendW.
The width of the bottom axis is graphW.
The height of the left axis is graphH.
The ratio of the legend height is always 1f.
Parameters: graphW - The ratio of graph width to total. Parameters: graphH - The ratio of graph height to total. Parameters: legendW - The ratio of graph width to total. Parameters: legendH - The ratio of legend height to total.
final boolean validateGraphChart2D(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.Chart2D