| java.lang.Object net.sourceforge.chart2d.Area net.sourceforge.chart2d.FontArea net.sourceforge.chart2d.TitledArea net.sourceforge.chart2d.ChartArea net.sourceforge.chart2d.GraphChartArea
All known Subclasses: net.sourceforge.chart2d.LLChartArea, net.sourceforge.chart2d.LBChartArea,
GraphChartArea | class GraphChartArea extends ChartArea (Code) | | A container containing information and components for cartesian coordinate
charts. That is, charts that are plotted on a parralelogram surface.
|
Constructor Summary | |
| GraphChartArea() Creates a Graph Chart Area with the default values of a TitledArea,
and its own default values. |
Method Summary | |
final float | getCustomGreatestValue() Gets the float value passed to setCustomGreatestValue (boolean, float). | final float | getCustomLeastValue() Gets the float value passed to setCustomLeastValue (boolean, float). | final boolean | getCustomizeGreatestValue() Gets the boolean value passed to setCustomGreatestValue (boolean, float). | final boolean | getCustomizeLeastValue() Gets the boolean value passed to setCustomLeastValue (boolean, float). | final Vector | getDatasetVector() Returns all the Dataset objects added to this object. | final boolean | getGraphChartAreaNeedsUpdate() Indicates whether some property of this class has changed. | final boolean | getGraphComponentsColoringByCat() Gets whether the graph components are colored by category or by set. | final Color[] | getGraphComponentsColorsByCat() Gets the color array for the graph component coloring. | final float | getGraphToHeightRatio() Returns this property in order for subclasses to have access to it. | float | getGraphToWidthRatio() Returns this property in order for subclasses to have access to it. | final Vector | getGraphVector() Returns a vector with all the graphs that were added by the addGraph method. | final float | getGraphableToAvailableRatio() Returns this property in order for subclasses to have access to it. | final int | getNumPlotAxisLabels() Gets the number of labels for the plot axis. | final Vector | getWarningRegions() Gets the warning regions vector for applying to each graph area. | final XAxisArea | getXAxis() Returns the x Axis in order to allow customizations of it. | final float | getXAxisToHeightRatio() Returns this property in order for subclasses to have access to it. | final float | getXAxisToWidthRatio() Returns this property in order for subclasses to have access to it. | final YAxisArea | getYAxis() Returns the y axis in order to allow customization of it. | final float | getYAxisToHeightRatio() Returns this property in order for subclasses to have access to it. | final float | getYAxisToWidthRatio() Returns this property in order for subclasses to have access to it. | void | paintComponent(Graphics2D g2D) Updates this parent's variables, and this' variables. | final void | resetGraphChartAreaModel(boolean reset) Resets the model for this class. | final void | setCustomGreatestValue(boolean customize, float value) Influences the plot axis' label with the highest value. | final void | setCustomLeastValue(boolean customize, float value) Influences the plot axis' label with the lowest value. | final void | setDatasetVector(Vector vector) Sets the dataset vector. | final void | setGraphComponentsColoringByCat(boolean b) Sets whether the graph components are colored by category or by set. | final void | setGraphComponentsColorsByCat(Color[] colors) Sets the color array for the graph component coloring. | final void | setGraphToHeightRatio(float ratio) Specifies how much of the maximum height less borders, gaps, and title to
make availalble to the graph maximum size. | final void | setGraphToWidthRatio(float ratio) Specifies how much of the maximum width less borders and gaps to make
availalble to the graph maximum size. | final void | setGraphVector(Vector vector) Sets the vector of graphs for this chart. | final void | setGraphableToAvailableRatio(float ratio) Specifies how much of he height of the graph to make available to
the components plot area. | final void | setNumPlotAxisLabels(int num) Sets the number of labels for the plot axis. | final void | setWarningRegions(Vector v) Sets the warning regions vector for applying to each graph area. | final void | setXAxisToHeightRatio(float ratio) Specifies how much of the maximum height less borders, gaps, and title to
make availalble to the x axis maximum size. | final void | setXAxisToWidthRatio(float ratio) Specifies how much of the maximum width less borders and gaps to make
availalble to the x axis maximum size. | final void | setYAxisToHeightRatio(float ratio) Specifies how much of the maximum height less borders, gaps, and title to
make availalble to the y axis maximum size. | final void | setYAxisToWidthRatio(float ratio) Specifies how much of the maximum width less borders and gaps to make
availalble to the y axis maximum size. | final void | updateGraphChartArea(Graphics2D g2D) Updates this parent's variables, and this' variables. |
GraphChartArea | GraphChartArea()(Code) | | Creates a Graph Chart Area with the default values of a TitledArea,
and its own default values.
|
getCustomGreatestValue | final float getCustomGreatestValue()(Code) | | Gets the float value passed to setCustomGreatestValue (boolean, float).
The max value. |
getCustomLeastValue | final float getCustomLeastValue()(Code) | | Gets the float value passed to setCustomLeastValue (boolean, float).
The min value. |
getCustomizeGreatestValue | final boolean getCustomizeGreatestValue()(Code) | | Gets the boolean value passed to setCustomGreatestValue (boolean, float).
True if the max value is being customized. |
getCustomizeLeastValue | final boolean getCustomizeLeastValue()(Code) | | Gets the boolean value passed to setCustomLeastValue (boolean, float).
True if the min value is being customized. |
getDatasetVector | final Vector getDatasetVector()(Code) | | Returns all the Dataset objects added to this object.
Vector The Dataset objects. |
getGraphChartAreaNeedsUpdate | final boolean getGraphChartAreaNeedsUpdate()(Code) | | Indicates whether some property of this class has changed.
boolean true if some property has changed. |
getGraphComponentsColoringByCat | final boolean getGraphComponentsColoringByCat()(Code) | | Gets whether the graph components are colored by category or by set.
If true, then colored by category. |
getGraphComponentsColorsByCat | final Color[] getGraphComponentsColorsByCat()(Code) | | Gets the color array for the graph component coloring.
The color array for the category coloring. |
getGraphToHeightRatio | final float getGraphToHeightRatio()(Code) | | Returns this property in order for subclasses to have access to it.
The specified property. |
getGraphToWidthRatio | float getGraphToWidthRatio()(Code) | | Returns this property in order for subclasses to have access to it.
The specified property. |
getGraphVector | final Vector getGraphVector()(Code) | | Returns a vector with all the graphs that were added by the addGraph method.
Vector A vector of graphs. |
getGraphableToAvailableRatio | final float getGraphableToAvailableRatio()(Code) | | Returns this property in order for subclasses to have access to it.
The specified property. |
getNumPlotAxisLabels | final int getNumPlotAxisLabels()(Code) | | Gets the number of labels for the plot axis. For every graph chart, there
are two axes. One axis you specify the labels (ex. June, July, August);
the other axis, this library figures out the labels (ex. 250 or 1.95).
The axis the library labels is the plot axis.
The number of plot axis labels. |
getWarningRegions | final Vector getWarningRegions()(Code) | | Gets the warning regions vector for applying to each graph area.
the warning regions vector. |
getXAxis | final XAxisArea getXAxis()(Code) | | Returns the x Axis in order to allow customizations of it.
The x axis of this chart. |
getXAxisToHeightRatio | final float getXAxisToHeightRatio()(Code) | | Returns this property in order for subclasses to have access to it.
The specified property. |
getXAxisToWidthRatio | final float getXAxisToWidthRatio()(Code) | | Returns this property in order for subclasses to have access to it.
The specified property. |
getYAxis | final YAxisArea getYAxis()(Code) | | Returns the y axis in order to allow customization of it.
The y axis of this chart. |
getYAxisToHeightRatio | final float getYAxisToHeightRatio()(Code) | | Returns this property in order for subclasses to have access to it.
The specified property. |
getYAxisToWidthRatio | final float getYAxisToWidthRatio()(Code) | | Returns this property in order for subclasses to have access to it.
The specified property. |
paintComponent | void paintComponent(Graphics2D g2D)(Code) | | Updates this parent's variables, and this' variables.
Parameters: g2D - The graphics context to use for calculations. |
resetGraphChartAreaModel | final void resetGraphChartAreaModel(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 resets the max model upon the next max sizing. |
setCustomGreatestValue | final void setCustomGreatestValue(boolean customize, float value)(Code) | | Influences the plot axis' label with the highest value.
Does this by tricking chart2d into thinking that the passed value is the
largest value in the dataset.
Then if setGraphableToAvailableRatio (1f), the plot axis' label with the
the highest value will be the custom greatest value.
So, in order to control what the highest value plot axis label is, then
use this method, the setGraphableToAvailableRatio method, and the
setLabelsPrecisionNum method.
Note: If there are both positive and negative numbers in the dataset
then you may need to set both custom greatest and custom least methods
since labels are always equally far from zero.
Parameters: customize - Whether this value is used. Parameters: value - The value to use. |
setCustomLeastValue | final void setCustomLeastValue(boolean customize, float value)(Code) | | Influences the plot axis' label with the lowest value.
Does this by tricking chart2d into thinking that the passed value is the
largest value in the dataset.
Then if setGraphableToAvailableRatio (1f), the plot axis' label with the
the highest value will be the custom greatest value.
So, in order to control what the highest value plot axis label is, then
use this method, the setGraphableToAvailableRatio method, and the
setLabelsPrecisionNum method.
Note: If there are both positive and negative numbers in the dataset
then you may need to set both custom greatest and custom least methods
since labels are always equally far from zero.
Parameters: customize - Whether this value is used. Parameters: value - The value to use. |
setDatasetVector | final void setDatasetVector(Vector vector)(Code) | | Sets the dataset vector.
Parameters: vector - A vector of datasets. |
setGraphComponentsColoringByCat | final void setGraphComponentsColoringByCat(boolean b)(Code) | | Sets whether the graph components are colored by category or by set.
Parameters: b - If true, then colored by category. |
setGraphComponentsColorsByCat | final void setGraphComponentsColorsByCat(Color[] colors)(Code) | | Sets the color array for the graph component coloring.
Parameters: colors - The color array for the category coloring. |
setGraphToHeightRatio | final void setGraphToHeightRatio(float ratio)(Code) | | Specifies how much of the maximum height less borders, gaps, and title to
make availalble to the graph maximum size.
Parameters: ratio - The ratio to the height, to make available to the graph. |
setGraphToWidthRatio | final void setGraphToWidthRatio(float ratio)(Code) | | Specifies how much of the maximum width less borders and gaps to make
availalble to the graph maximum size.
Parameters: ratio - The ratio to the width, to make available to the graph. |
setGraphVector | final void setGraphVector(Vector vector)(Code) | | Sets the vector of graphs for this chart.
Parameters: vector - The vector of graphs. |
setGraphableToAvailableRatio | final void setGraphableToAvailableRatio(float ratio)(Code) | | Specifies how much of he height of the graph to make available to
the components plot area. If this ratio is set to one, then the highest
value of all the data sets will touch the top of the graph area.
Parameters: ratio - The ratio of the graph height to the greatest value in thedata set. [Must be between 0.0 and 1.0] |
setNumPlotAxisLabels | final void setNumPlotAxisLabels(int num)(Code) | | Sets the number of labels for the plot axis. For every graph chart, there
are two axes. One axis you specify the labels (ex. June, July, August);
the other axis, this library figures out the labels (ex. 250 or 1.95).
The axis the library labels is the plot axis.
Parameters: num - The number of plot axis labels. |
setWarningRegions | final void setWarningRegions(Vector v)(Code) | | Sets the warning regions vector for applying to each graph area.
Parameters: v - the warning regions vector. |
setXAxisToHeightRatio | final void setXAxisToHeightRatio(float ratio)(Code) | | Specifies how much of the maximum height less borders, gaps, and title to
make availalble to the x axis maximum size.
Parameters: ratio - The ratio to the height, to make available to the x axis. |
setXAxisToWidthRatio | final void setXAxisToWidthRatio(float ratio)(Code) | | Specifies how much of the maximum width less borders and gaps to make
availalble to the x axis maximum size.
Parameters: ratio - The ratio to the width, to make available to the x axis. |
setYAxisToHeightRatio | final void setYAxisToHeightRatio(float ratio)(Code) | | Specifies how much of the maximum height less borders, gaps, and title to
make availalble to the y axis maximum size.
Parameters: ratio - The ratio to the height, to make available to the y axis. |
setYAxisToWidthRatio | final void setYAxisToWidthRatio(float ratio)(Code) | | Specifies how much of the maximum width less borders and gaps to make
availalble to the y axis maximum size.
Parameters: ratio - The ratio to the width, to make available to the y axis. |
updateGraphChartArea | final void updateGraphChartArea(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)
|
|
|