| java.lang.Object net.sourceforge.chart2d.Area net.sourceforge.chart2d.GraphArea
All known Subclasses: net.sourceforge.chart2d.LLGraphArea, net.sourceforge.chart2d.LBGraphArea,
GraphArea | class GraphArea extends Area (Code) | | A container for many variables and components relating to a graph area.
A graph area is the area that both the y axis and x axis touch, and in which
bars, lines, or dots are plotted to represent the data set.
|
Field Summary | |
final static int | COMPONENT | static float[] | CONTINUOUS Indicates the continuous. | static float[] | DASHED Indicates the dashed. | static float[] | DOTTED Indicates the dotted. | final static int | GRAPH | static int | MIX Indicates both positive and negative. | static int | NEG Indicates negative. | static int | POS Indicates positive. |
Constructor Summary | |
| GraphArea() Creates a graph area with the default values of the Area class
(except where overridden here), and its own default values. |
Method Summary | |
final boolean | getAllowComponentAlignment() Returns whether the bars, lines or dots are aligned. | final Color[] | getBarColors() Returns this property. | final int[][] | getBarLowValues() Returns the low graph values for bars. | final float | getBarRoundingRatio() Gets the ratio of the rounding arc to the thickness of the bar.
Values need to be between zero and one. | final float | getBarsExcessSpaceFeedbackRatio() Returns the amount of the excess space to feed back to bars thickness. | final boolean | getBarsExistence() Returns this property. | final int | getBarsThicknessModel() Returns this property. | final float | getBarsWithinCategoryOverlapRatio() Returns how much the bars can overlap eachother when there are multiple
data values per data set and per data category. | final boolean | getBetweenComponentsGapExistence() Returns this property. | final int | getBetweenComponentsGapThicknessModel() Returns this property. | final boolean | getClip() Gets the whether the overpaint of the graph components are clipped or not. | final public AlphaComposite | getComponentsAlphaComposite() Gets the actual AlphaComposite object to use on the Graphics2D object context for painting the
graph components managed by this GraphProperties object. | final boolean | getComponentsColoringByCat() Gets whether the graph components are colored by category or by set. | final Color[] | getComponentsColorsByCat() Gets the color array for the category coloring. | final int | getComponentsLightSource() Gets the side from which the lighting affect originates. | final int | getComponentsLightType() Gets the type of lighting affect. | final int | getDataSign() Gets which kinds of the data is graphed. | final Color[] | getDotColors() Returns this property. | final float | getDotsExcessSpaceFeedbackRatio() Returns the amount of the excess space to feed back to dots thickness. | final boolean | getDotsExistence() Returns this property. | final int | getDotsThicknessModel() Returns this property. | final float | getDotsWithinCategoryOverlapRatio() Returns how much the dots can overlap eachother when there are multiple
data values per data set and per data category. | final boolean | getGraphAreaNeedsUpdate() Indicates whether some property of this class has changed. | final int[][] | getGraphValues() Returns the graph values for the bars, dots, and lines. | final Color | getHorizontalLinesColor() Returns a value of the color of the horizontal lines. | final boolean | getHorizontalLinesExistence() Returns a value indicating existence of horizontal lines on the graph. | final float[] | getHorizontalLinesStyle() Returns a value of the style of the horizontal lines. | final int | getHorizontalLinesThickness() Returns a value of the horizontal lines thickness. | final int | getHorizontalLinesThicknessModel() Returns a value of the horizontal lines model thickness. | final int | getLabelsAxisTicksAlignment() Indicates whether the ticks are aligned between each pair of labels or in
the center of the each label of the labels axis. | final Color[] | getLineColors() Returns this property. | final float | getLinesExcessSpaceFeedbackRatio() Returns the amount of the excess space to feed back to lines thickness. | final boolean | getLinesExistence() Returns this property. | final boolean | getLinesFillInterior() Returns whether the region between the lines and between its baseline
should be filled in. | final int | getLinesFillInteriorBaseValue() Returns the length across the graph length, in the same direction of the
meaning of the graph values, that the forms the base for the filled region. | final int | getLinesThicknessModel() Returns this property. | final float | getLinesWithinCategoryOverlapRatio() Returns how much the lines can overlap eachother when there are multiple
data values per data set and per data category. | final boolean | getOutlineComponents() Returns whether bars, lines, and/or dots should have a thin black
outline around them. | final Color | getOutlineComponentsColor() Returns the color of the components outline if it exists. | final int | getType() Returns the type of graph.
The type of graph. | final Color | getVerticalLinesColor() Returns a value of the color of the vertical lines. | final boolean | getVerticalLinesExistence() Returns a value indicating existence of vertical lines on the graph. | final float[] | getVerticalLinesStyle() Returns a value of the style of the vertical lines. | final int | getVerticalLinesThickness() Returns a value of the vertical lines thickness. | final int | getVerticalLinesThicknessModel() Returns a value of the vertical lines model thickness. | final Vector | getWarningRegions() Gets the warning regions vector for applying to the graph background and the graph components. | final Rectangle[] | getXTicks() Returns the ticks of the x axis. | final Rectangle[] | getYTicks() Returns the ticks of the y axis. | void | paintComponent(Graphics2D g2D) Paints all the components of this class. | final void | resetGraphAreaModel(boolean reset) Resets the model for this class. | final void | setAllowComponentAlignment(boolean allow) Specifies whether graph components, bars, lines, or dots are offset from
eachother. | final void | setBarColors(Color[] colors) The colors of the bar sets. | final void | setBarLowValues(int[][] values) Determines where bars of bar charts begin. | final void | setBarRoundingRatio(float r) Sets the ratio of the rounding arc to the thickness of the bar.
Values need to be between zero and one. | final void | setBarsExcessSpaceFeedbackRatio(float ratio) Specifies the amount of the excess space to feed back to bars thickness.
Frequently the graphs are larger than necessary, the excess space can
be fedback to the bars, making them larger. | final void | setBarsExistence(boolean existence) Whether to paint bars representing the graph values. | final void | setBarsThicknessModel(int thickness) The model thickness for the bars. | final void | setBarsWithinCategoryOverlapRatio(float ratio) Specifies how much the bars can overlap eachother when there are multiple
data values per data set and per data category. | final void | setBetweenComponentsGapExistence(boolean existence) Whether there exists a gap between plotted data sets. | final void | setBetweenComponentsGapThicknessModel(int thickness) The model thickness for the gap. | final void | setClip(boolean c) Sets the whether the overpaint of the graph components are clipped or not. | final public void | setComponentsAlphaComposite(AlphaComposite a) Sets the actual AlphaComposite object to use on the Graphics2D object context for painting the
graph components managed by this GraphProperties object. | final void | setComponentsColoringByCat(boolean b) Sets whether the graph components are colored by category or by set. | final void | setComponentsColorsByCat(Color[] c) Sets the color array for the category coloring. | final void | setComponentsLightSource(int s) Sets the side from which the lighting affect originates. | final void | setComponentsLightType(int t) Sets the type of lighting affect. | final void | setDataSign(int sign) Sets which kinds of the data is graphed. | final void | setDotColors(Color[] colors) The colors of the dot sets. | final void | setDotsExcessSpaceFeedbackRatio(float ratio) Specifies the amount of the excess space to feed back to dots thickness.
Frequently the graphs are larger than necessary, the excess space can
be fedback to the dots, making them larger. | final void | setDotsExistence(boolean existence) Whether to paint dots representing the graph values. | final void | setDotsThicknessModel(int thickness) The model thickness for the dots. | final void | setDotsWithinCategoryOverlapRatio(float ratio) Specifies how much the dots can overlap eachother when there are multiple
data values per data set and per data category. | final void | setGraphValues(int[][] values) The heights/widths of the components. | final void | setHorizontalLinesColor(Color color) The color of the horizontal lines. | final void | setHorizontalLinesExistence(boolean existence) Whether the horizontal lines exist. | final void | setHorizontalLinesStyle(float[] style) The style of the horizontal lines. | final void | setHorizontalLinesThicknessModel(int thickness) The model thickness for the horizontal lines. | final void | setLabelsAxisTicksAlignment(int alignment) Placement of the graph components (bars, dots, or line points) depends
to some degree on placement of the ticks. | final void | setLineColors(Color[] colors) The colors of the line sets. | final void | setLinesExcessSpaceFeedbackRatio(float ratio) Specifies the amount of the excess space to feed back to lines thickness.
Frequently the graphs are larger than necessary, the excess space can
be fedback to the lines, making them larger. | final void | setLinesExistence(boolean existence) Whether to paint lines representing the graph values. | final void | setLinesFillInterior(boolean fill) Indicates whether the region between the lines and between its baseline
should be filled in. | final void | setLinesFillInteriorBaseValue(int value) Indicates the length across the graph length, in the same direction of the
meaning of the graph values, that the forms the base for the filled region. | final void | setLinesThicknessAssociation(boolean association) Specifies whether the vertical and/or horizontal lines should maintain
the same size. | final void | setLinesThicknessModel(int thickness) The model thickness for the lines. | final void | setLinesWithinCategoryOverlapRatio(float ratio) Specifies how much the lines can overlap eachother when there are multiple
data values per data set and per data category. | final void | setOutlineComponents(boolean outline) Indicates whether bars, lines, and/or dots should have a thin black
outline around them. | final void | setOutlineComponentsColor(Color color) Indicates the color of the components outline if it exists. | final void | setType(int type) The type of the graph area. | final void | setVerticalLinesColor(Color color) The color of the vertical lines. | final void | setVerticalLinesExistence(boolean existence) Whether the vertical lines exist. | final void | setVerticalLinesStyle(float[] style) The style of the vertical lines. | final void | setVerticalLinesThicknessModel(int thickness) The model thickness for the vertical lines. | final void | setWarningRegions(Vector v) Sets the warning regions vector for applying to the graph background and the graph components. | final void | setXTicks(Rectangle[] ticks) Sets the ticks of the x axis. | final void | setYTicks(Rectangle[] ticks) Sets the ticks of the x axis. | int[][] | stackedBarConvert(int[][] graphValues, int[][] lowBarValues) Converts an array of graph values -- values indicating how far across
a graph a bar should go into an array that the method sortStackedBar can
use. | int[] | stackedBarSort(int[][] graphValues, int barIndex) Returns an array of the indexes, that is a sorted view of the array
graphValues[i][barIndex] i ranges from 0 to graphValues.length and
where barIndex is constant. | final void | updateGraphArea() Updates this parent's variables, and this' variables. |
COMPONENT | final static int COMPONENT(Code) | | |
CONTINUOUS | static float[] CONTINUOUS(Code) | | Indicates the continuous.
|
DASHED | static float[] DASHED(Code) | | Indicates the dashed.
|
DOTTED | static float[] DOTTED(Code) | | Indicates the dotted.
|
GRAPH | final static int GRAPH(Code) | | |
MIX | static int MIX(Code) | | Indicates both positive and negative.
|
NEG | static int NEG(Code) | | Indicates negative.
|
POS | static int POS(Code) | | Indicates positive.
|
GraphArea | GraphArea()(Code) | | Creates a graph area with the default values of the Area class
(except where overridden here), and its own default values.
|
getAllowComponentAlignment | final boolean getAllowComponentAlignment()(Code) | | Returns whether the bars, lines or dots are aligned.
If true, then they are. |
getBarColors | final Color[] getBarColors()(Code) | | Returns this property.
The colors of the bars. |
getBarLowValues | final int[][] getBarLowValues()(Code) | | Returns the low graph values for bars.
int[][] The low values. |
getBarRoundingRatio | final float getBarRoundingRatio()(Code) | | Gets the ratio of the rounding arc to the thickness of the bar.
Values need to be between zero and one. Zero is square. One is perfectly round.
The ratio. |
getBarsExcessSpaceFeedbackRatio | final float getBarsExcessSpaceFeedbackRatio()(Code) | | Returns the amount of the excess space to feed back to bars thickness.
float The ratio on the total amount of space to feedback. |
getBarsExistence | final boolean getBarsExistence()(Code) | | Returns this property.
If true, then they do. |
getBarsThicknessModel | final int getBarsThicknessModel()(Code) | | Returns this property.
The model thickness of the bars. |
getBarsWithinCategoryOverlapRatio | final float getBarsWithinCategoryOverlapRatio()(Code) | | Returns how much the bars can overlap eachother when there are multiple
data values per data set and per data category.
float The ratio on the thickness of the bar for overlap. |
getBetweenComponentsGapExistence | final boolean getBetweenComponentsGapExistence()(Code) | | Returns this property.
If true, then it does. |
getBetweenComponentsGapThicknessModel | final int getBetweenComponentsGapThicknessModel()(Code) | | Returns this property.
The model thickness of this gap. |
getClip | final boolean getClip()(Code) | | Gets the whether the overpaint of the graph components are clipped or not.
If true then the components are clipped. |
getComponentsAlphaComposite | final public AlphaComposite getComponentsAlphaComposite()(Code) | | Gets the actual AlphaComposite object to use on the Graphics2D object context for painting the
graph components managed by this GraphProperties object. By passing different AlphaComposite
objects, the graph components can take on a blending or transparency effect. Underneath
components can be seen through components painted over them. This is especially useful for
"line area" or "filled line" charts because top lines can paint over underneath lines if not
using a "stacked" dataset object.
The AlphaComposite object to use. |
getComponentsColoringByCat | final boolean getComponentsColoringByCat()(Code) | | Gets whether the graph components are colored by category or by set.
If true, then colored by category. |
getComponentsColorsByCat | final Color[] getComponentsColorsByCat()(Code) | | Gets the color array for the category coloring.
The color array. |
getComponentsLightSource | final int getComponentsLightSource()(Code) | | Gets the side from which the lighting affect originates.
Use the fields of FancyShape: TOP, BOTTOM, LEFT, RIGHT, TOPLEFT, BOTTOMRIGHT, and NONE.
Added for Siperian.
int The side. |
getComponentsLightType | final int getComponentsLightType()(Code) | | Gets the type of lighting affect.
Type refers to whether the lighting should begin and end by component or by graph (meaning
all components for each set).
For specifying the type use the fields COMPONENT and GRAPH.
Added for Siperian.
int The type. |
getDataSign | final int getDataSign()(Code) | | Gets which kinds of the data is graphed.
Use POS for non-negative data.
Use NEG for non-positive data.
Use MIX for both positive and negative data.
The sign of the data. |
getDotColors | final Color[] getDotColors()(Code) | | Returns this property.
The colors of the dots. |
getDotsExcessSpaceFeedbackRatio | final float getDotsExcessSpaceFeedbackRatio()(Code) | | Returns the amount of the excess space to feed back to dots thickness.
float The ratio on the total amount of space to feedback. |
getDotsExistence | final boolean getDotsExistence()(Code) | | Returns this property.
If true, then they do. |
getDotsThicknessModel | final int getDotsThicknessModel()(Code) | | Returns this property.
The model thickness of the dots. |
getDotsWithinCategoryOverlapRatio | final float getDotsWithinCategoryOverlapRatio()(Code) | | Returns how much the dots can overlap eachother when there are multiple
data values per data set and per data category.
float The ratio on the thickness of the dot for overlap. |
getGraphAreaNeedsUpdate | final boolean getGraphAreaNeedsUpdate()(Code) | | Indicates whether some property of this class has changed.
True if some property has changed. |
getGraphValues | final int[][] getGraphValues()(Code) | | Returns the graph values for the bars, dots, and lines.
The graph values, heights or widths respective to the bottom orside of the graph area. |
getHorizontalLinesColor | final Color getHorizontalLinesColor()(Code) | | Returns a value of the color of the horizontal lines.
The color of the horizontal lines. |
getHorizontalLinesExistence | final boolean getHorizontalLinesExistence()(Code) | | Returns a value indicating existence of horizontal lines on the graph.
True if horizontal lines exist. |
getHorizontalLinesStyle | final float[] getHorizontalLinesStyle()(Code) | | Returns a value of the style of the horizontal lines.
Possible values are CONTINUOUS, DASHED, and DOTTED.
The style of the horizontal lines. |
getHorizontalLinesThickness | final int getHorizontalLinesThickness()(Code) | | Returns a value of the horizontal lines thickness.
The thickness of this horizontal lines. |
getHorizontalLinesThicknessModel | final int getHorizontalLinesThicknessModel()(Code) | | Returns a value of the horizontal lines model thickness.
The model thickness of this horizontal lines. |
getLabelsAxisTicksAlignment | final int getLabelsAxisTicksAlignment()(Code) | | Indicates whether the ticks are aligned between each pair of labels or in
the center of the each label of the labels axis.
int With the value of either Area.CENTERED or Area.BETWEEN |
getLineColors | final Color[] getLineColors()(Code) | | Returns this property.
The colors of the lines. |
getLinesExcessSpaceFeedbackRatio | final float getLinesExcessSpaceFeedbackRatio()(Code) | | Returns the amount of the excess space to feed back to lines thickness.
float The ratio on the total amount of space to feedback. |
getLinesExistence | final boolean getLinesExistence()(Code) | | Returns this property.
If true, then they do. |
getLinesFillInterior | final boolean getLinesFillInterior()(Code) | | Returns whether the region between the lines and between its baseline
should be filled in.
boolean If true, then the region under/above the lines will befilled. |
getLinesFillInteriorBaseValue | final int getLinesFillInteriorBaseValue()(Code) | | Returns the length across the graph length, in the same direction of the
meaning of the graph values, that the forms the base for the filled region.
The base value for the region. |
getLinesThicknessModel | final int getLinesThicknessModel()(Code) | | Returns this property.
The model thickness of the lines. |
getLinesWithinCategoryOverlapRatio | final float getLinesWithinCategoryOverlapRatio()(Code) | | Returns how much the lines can overlap eachother when there are multiple
data values per data set and per data category.
float The ratio on the thickness of the line for overlap. |
getOutlineComponents | final boolean getOutlineComponents()(Code) | | Returns whether bars, lines, and/or dots should have a thin black
outline around them.
boolean If true, then outline. |
getOutlineComponentsColor | final Color getOutlineComponentsColor()(Code) | | Returns the color of the components outline if it exists.
Color The color of the outline. |
getType | final int getType()(Code) | | Returns the type of graph.
The type of graph. [LABELSBOTTOM or LABELSLEFT] |
getVerticalLinesColor | final Color getVerticalLinesColor()(Code) | | Returns a value of the color of the vertical lines.
The color of the vertical lines. |
getVerticalLinesExistence | final boolean getVerticalLinesExistence()(Code) | | Returns a value indicating existence of vertical lines on the graph.
True if vertical lines exist. |
getVerticalLinesStyle | final float[] getVerticalLinesStyle()(Code) | | Returns a value of the style of the vertical lines.
Possible values are CONTINUOUS, DASHED, and DOTTED.
The style of the vertical lines. |
getVerticalLinesThickness | final int getVerticalLinesThickness()(Code) | | Returns a value of the vertical lines thickness.
The thickness of this vertical lines. |
getVerticalLinesThicknessModel | final int getVerticalLinesThicknessModel()(Code) | | Returns a value of the vertical lines model thickness.
The model thickness of this vertical lines. |
getWarningRegions | final Vector getWarningRegions()(Code) | | Gets the warning regions vector for applying to the graph background and the graph components.
The warning regions vector. |
getXTicks | final Rectangle[] getXTicks()(Code) | | Returns the ticks of the x axis. Actually these mereley are the bounds of
the ticks, locations and sizes.
Bounds for the x axis ticks. |
getYTicks | final Rectangle[] getYTicks()(Code) | | Returns the ticks of the y axis. Actually these mereley are the bounds of
the ticks, locations and sizes.
Bounds for the y axis ticks. |
paintComponent | void paintComponent(Graphics2D g2D)(Code) | | Paints all the components of this class. First all variables are updated.
Parameters: g2D - The graphics context for calculations and painting. |
resetGraphAreaModel | final void resetGraphAreaModel(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 size to be set upon the next maxsizing. |
setAllowComponentAlignment | final void setAllowComponentAlignment(boolean allow)(Code) | | Specifies whether graph components, bars, lines, or dots are offset from
eachother. Generally, var charts are not aligned, and line and dot charts
are.
Parameters: allow - If true, then aligns the components. |
setBarColors | final void setBarColors(Color[] colors)(Code) | | The colors of the bar sets. Each data set has its own color. In every
set of bars, the left most bar (or first bar painted when components are
aligned) will be the color in the lowest order array position.
Parameters: colors - The colors for the data sets. |
setBarLowValues | final void setBarLowValues(int[][] values)(Code) | | Determines where bars of bar charts begin. Generally bars begin at zero,
but with stackable charts, bars sometimes need to start at the tops of
other bars. Also, bars can be used to signify uncertainty (i.e. 3+-2) can
be signified by a bar that starts at 1 and goes to 5.
Parameters: values - The low values normalized the graph area (i.e. not the actualdata set values). |
setBarRoundingRatio | final void setBarRoundingRatio(float r)(Code) | | Sets the ratio of the rounding arc to the thickness of the bar.
Values need to be between zero and one. Zero is square. One is perfectly round.
Parameters: r - The ratio. |
setBarsExcessSpaceFeedbackRatio | final void setBarsExcessSpaceFeedbackRatio(float ratio)(Code) | | Specifies the amount of the excess space to feed back to bars thickness.
Frequently the graphs are larger than necessary, the excess space can
be fedback to the bars, making them larger. The ratio is the amount of
space to feed back to the bars, to the total amount of space.
Parameters: ratio - The ratio on the total amount of space to feedback. |
setBarsExistence | final void setBarsExistence(boolean existence)(Code) | | Whether to paint bars representing the graph values. If they do not exist
then they will not be included in calculations or in painting.
Parameters: existence - If true, then they exist. |
setBarsThicknessModel | final void setBarsThicknessModel(int thickness)(Code) | | The model thickness for the bars. If auto maximum sizing
is enabled,
then the actual thickness size can grow and shrink; in this case a ratio
based
on the maximum area size / model area size is computed and applied to the
model thickness in order to find the actual thickness. With maximum sizing
disabled, the actual thickness is the model thickness.
Parameters: thickness - The model thickness for the bars. |
setBarsWithinCategoryOverlapRatio | final void setBarsWithinCategoryOverlapRatio(float ratio)(Code) | | Specifies how much the bars can overlap eachother when there are multiple
data values per data set and per data category.
Parameters: ratio - The ratio on the thickness of the bar for overlap. |
setBetweenComponentsGapExistence | final void setBetweenComponentsGapExistence(boolean existence)(Code) | | Whether there exists a gap between plotted data sets. For instance, after
plotting a single bar from each data set, the gap between these and the
next bars from the next location within the data sets.
Parameters: existence - If true, then it does. |
setBetweenComponentsGapThicknessModel | final void setBetweenComponentsGapThicknessModel(int thickness)(Code) | | The model thickness for the gap. If auto maximum sizing
is enabled,
then the actual thickness size can grow and shrink; in this case a ratio
based
on the maximum area size / model area size is computed and applied to the
model thickness in order to find the actual thickness. With maximum sizing
disabled, the actual thickness is the model thickness.
Parameters: thickness - The model thickness for the gap. |
setClip | final void setClip(boolean c)(Code) | | Sets the whether the overpaint of the graph components are clipped or not.
Parameters: c - If true then the components are clipped. |
setComponentsAlphaComposite | final public void setComponentsAlphaComposite(AlphaComposite a)(Code) | | Sets the actual AlphaComposite object to use on the Graphics2D object context for painting the
graph components managed by this GraphProperties object. By passing different AlphaComposite
objects, the graph components can take on a blending or transparency effect. Underneath
components can be seen through components painted over them. This is especially useful for
"line area" or "filled line" charts because top lines can paint over underneath lines if not
using a "stacked" dataset object.
Parameters: a - The AlphaComposite object to use. |
setComponentsColoringByCat | final void setComponentsColoringByCat(boolean b)(Code) | | Sets whether the graph components are colored by category or by set.
Parameters: b - If true, then colored by category. |
setComponentsColorsByCat | final void setComponentsColorsByCat(Color[] c)(Code) | | Sets the color array for the category coloring.
Parameters: c - The color array. |
setComponentsLightSource | final void setComponentsLightSource(int s)(Code) | | Sets the side from which the lighting affect originates.
all components for each set).
For specifying the side, use the fields of FancyShape:
TOP, BOTTOM, LEFT, RIGHT, TOPLEFT, BOTTOMRIGHT, and NONE.
Added for Siperian.
Parameters: s - The side. |
setComponentsLightType | final void setComponentsLightType(int t)(Code) | | Sets the type of lighting affect.
Type refers to whether the lighting should begin and end by component or by graph (meaning
all components for each set).
For specifying the type use the fields COMPONENT and GRAPH.
Added for Siperian.
Parameters: t - The type. |
setDataSign | final void setDataSign(int sign)(Code) | | Sets which kinds of the data is graphed.
Use POS for non-negative data.
Use NEG for non-positive data.
Use MIX for both positive and negative data.
Parameters: sign - The sign of the data. |
setDotColors | final void setDotColors(Color[] colors)(Code) | | The colors of the dot sets. Each data set has its own color. In every
set of dots, the left most dot (or first dot painted when components are
aligned) will be the color in the lowest order array position.
Parameters: colors - The colors for the data sets. |
setDotsExcessSpaceFeedbackRatio | final void setDotsExcessSpaceFeedbackRatio(float ratio)(Code) | | Specifies the amount of the excess space to feed back to dots thickness.
Frequently the graphs are larger than necessary, the excess space can
be fedback to the dots, making them larger. The ratio is the amount of
space to feed back to the dots, to the total amount of space.
Parameters: ratio - The ratio on the total amount of space to feedback. |
setDotsExistence | final void setDotsExistence(boolean existence)(Code) | | Whether to paint dots representing the graph values. If they do not exist
then they will not be included in calculations or in painting.
Parameters: existence - If true, then they exist. |
setDotsThicknessModel | final void setDotsThicknessModel(int thickness)(Code) | | The model thickness for the dots. If auto maximum sizing
is enabled,
then the actual thickness size can grow and shrink; in this case a ratio
based
on the maximum area size / model area size is computed and applied to the
model thickness in order to find the actual thickness. With maximum sizing
disabled, the actual thickness is the model thickness.
Parameters: thickness - The model thickness for the dots. |
setDotsWithinCategoryOverlapRatio | final void setDotsWithinCategoryOverlapRatio(float ratio)(Code) | | Specifies how much the dots can overlap eachother when there are multiple
data values per data set and per data category.
Parameters: ratio - The ratio on the thickness of the dot for overlap. |
setGraphValues | final void setGraphValues(int[][] values)(Code) | | The heights/widths of the components. This is respective to the bottom of
the graph area, but above the border/to the left of the graph area. This
is an array of arrays of values. The first array contains data sets. The
inner arrays contains the heights/widths for each set. Heights are used
for when the type of graph area is LABELSBOTTOM. Otherwise, widths.
Parameters: values - The offsets of the components from the data descriptor axis. |
setHorizontalLinesColor | final void setHorizontalLinesColor(Color color)(Code) | | The color of the horizontal lines.
Parameters: color - Some Color. |
setHorizontalLinesExistence | final void setHorizontalLinesExistence(boolean existence)(Code) | | Whether the horizontal lines exist.
Parameters: existence - If true, then they do. |
setHorizontalLinesStyle | final void setHorizontalLinesStyle(float[] style)(Code) | | The style of the horizontal lines. Lines may be continuous, dashed and
dotted. Or something other. See BasicStroke for more information.
Parameters: style - The style of the lines [CONTINOUS, DASHED, DOTTED] |
setHorizontalLinesThicknessModel | final void setHorizontalLinesThicknessModel(int thickness)(Code) | | The model thickness for the horizontal lines. If auto maximum sizing
is enabled,
then the actual thickness size can grow and shrink; in this case a ratio
based
on the maximum area size / model area size is computed and applied to the
model thickness in order to find the actual thickness. With maximum sizing
disabled, the actual thickness is the model thickness.
Parameters: thickness - The model thickness for the horizontal lines. |
setLabelsAxisTicksAlignment | final void setLabelsAxisTicksAlignment(int alignment)(Code) | | Placement of the graph components (bars, dots, or line points) depends
to some degree on placement of the ticks. (It shouldn't, but it does in
order to have things lined up within 1 pixel error). Pass the alignment
setting of the ticks of the axis that has the data description "labels".
Parameters: alignment - A value of either Area.BETWEEN or Area.CENTERED |
setLineColors | final void setLineColors(Color[] colors)(Code) | | The colors of the line sets. Each data set has its own color. In every
set of lines, the left most line (or first line painted when components are
aligned) will be the color in the lowest order array position.
Parameters: colors - The colors for the data sets. |
setLinesExcessSpaceFeedbackRatio | final void setLinesExcessSpaceFeedbackRatio(float ratio)(Code) | | Specifies the amount of the excess space to feed back to lines thickness.
Frequently the graphs are larger than necessary, the excess space can
be fedback to the lines, making them larger. The ratio is the amount of
space to feed back to the lines, to the total amount of space.
Parameters: ratio - The ratio on the total amount of space to feedback. |
setLinesExistence | final void setLinesExistence(boolean existence)(Code) | | Whether to paint lines representing the graph values. If they do not exist
then they will not be included in calculations or in painting.
Parameters: existence - If true, then they exist. |
setLinesFillInterior | final void setLinesFillInterior(boolean fill)(Code) | | Indicates whether the region between the lines and between its baseline
should be filled in.
Parameters: fill - If true, then the region under/above the lines will be filled. |
setLinesFillInteriorBaseValue | final void setLinesFillInteriorBaseValue(int value)(Code) | | Indicates the length across the graph length, in the same direction of the
meaning of the graph values, that the forms the base for the filled region.
int The base value for the region. |
setLinesThicknessAssociation | final void setLinesThicknessAssociation(boolean association)(Code) | | Specifies whether the vertical and/or horizontal lines should maintain
the same size. The vertical/horizontal lines are do not represent the
data sets. These lines are either perfectly horizontal or perfectly
vertical and mark out the graph area.
Parameters: association - If true, then the lines thicknesses will be equal. |
setLinesThicknessModel | final void setLinesThicknessModel(int thickness)(Code) | | The model thickness for the lines. If auto maximum sizing
is enabled,
then the actual thickness size can grow and shrink; in this case a ratio
based
on the maximum area size / model area size is computed and applied to the
model thickness in order to find the actual thickness. With maximum sizing
disabled, the actual thickness is the model thickness.
Parameters: thickness - The model thickness for the lines. |
setLinesWithinCategoryOverlapRatio | final void setLinesWithinCategoryOverlapRatio(float ratio)(Code) | | Specifies how much the lines can overlap eachother when there are multiple
data values per data set and per data category.
Parameters: ratio - The ratio on the thickness of the line for overlap. |
setOutlineComponents | final void setOutlineComponents(boolean outline)(Code) | | Indicates whether bars, lines, and/or dots should have a thin black
outline around them.
Parameters: outline - If true, then there will be an outline. |
setOutlineComponentsColor | final void setOutlineComponentsColor(Color color)(Code) | | Indicates the color of the components outline if it exists.
Parameters: color - The color for the outline. |
setType | final void setType(int type)(Code) | | The type of the graph area. There exist two types of graph areas. One
has the data descriptors on the bottom (i.e. vertical bar chart); the other
has them on the left (i.e. horizontal bar chart).
Parameters: type - The type of the graph area. [LABELSBOTTOM or LABELSLEFT] |
setVerticalLinesColor | final void setVerticalLinesColor(Color color)(Code) | | The color of the vertical lines.
Parameters: color - Some Color. |
setVerticalLinesExistence | final void setVerticalLinesExistence(boolean existence)(Code) | | Whether the vertical lines exist.
Parameters: existence - If true, then they do. |
setVerticalLinesStyle | final void setVerticalLinesStyle(float[] style)(Code) | | The style of the vertical lines. Lines may be continuous, dashed and
dotted. Or something other. See BasicStroke for more information.
Parameters: style - The style of the lines [CONTINOUS, DASHED, DOTTED] |
setVerticalLinesThicknessModel | final void setVerticalLinesThicknessModel(int thickness)(Code) | | The model thickness for the vertical lines. If auto maximum sizing
is enabled,
then the actual thickness size can grow and shrink; in this case a ratio
based
on the maximum area size / model area size is computed and applied to the
model thickness in order to find the actual thickness. With maximum sizing
disabled, the actual thickness is the model thickness.
Parameters: thickness - The model thickness for the vertical lines. |
setWarningRegions | final void setWarningRegions(Vector v)(Code) | | Sets the warning regions vector for applying to the graph background and the graph components.
Parameters: v - The warning regions vector. |
setXTicks | final void setXTicks(Rectangle[] ticks)(Code) | | Sets the ticks of the x axis. This is necessary in order to make sure the
components area exactly where they should be, either between the ticks or
aligned exactly respective to the middle of them.
Parameters: ticks - The bounds of the ticks, location and size. |
setYTicks | final void setYTicks(Rectangle[] ticks)(Code) | | Sets the ticks of the x axis. This is necessary in order to make sure the
components area exactly where they should be, either between the ticks or
aligned exactly respective to the middle of them.
Parameters: ticks - The bounds of the ticks, location and size. |
stackedBarConvert | int[][] stackedBarConvert(int[][] graphValues, int[][] lowBarValues)(Code) | | Converts an array of graph values -- values indicating how far across
a graph a bar should go into an array that the method sortStackedBar can
use. For graphs that plot negative values, the graph values that indicate
negative bars, must be converted to be negative values so that they
can be sorted properly in an array with values of positive bars.
|
stackedBarSort | int[] stackedBarSort(int[][] graphValues, int barIndex)(Code) | | Returns an array of the indexes, that is a sorted view of the array
graphValues[i][barIndex] i ranges from 0 to graphValues.length and
where barIndex is constant. This is used for creating stacked bar charts
where the tallest bars must be graphed first.
Parameters: graphValues - An int[][] of heights of bars... Parameters: barIndex - The grouping of bars to work on/sort. |
updateGraphArea | final void updateGraphArea()(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)
|
|
|