net.sourceforge.chart2d
Class GraphArea

java.lang.Object
  |
  +--net.sourceforge.chart2d.Area
        |
        +--net.sourceforge.chart2d.GraphArea
Direct Known Subclasses:
LBGraphArea, LLGraphArea

class GraphArea
extends Area

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.


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) GraphArea()
          Creates a graph area with the default values of the Area class (except where overridden here), and its own default values.
 
Method Summary
(package private)  boolean getAllowComponentAlignment()
          Returns whether the bars, lines or dots are aligned.
(package private)  java.awt.Color[] getBarColors()
          Returns this property.
(package private)  int[][] getBarLowValues()
          Returns the low graph values for bars.
(package private)  float getBarsExcessSpaceFeedbackRatio()
          Returns the amount of the excess space to feed back to bars thickness.
(package private)  boolean getBarsExistence()
          Returns this property.
(package private)  int getBarsThicknessModel()
          Returns this property.
(package private)  float getBarsWithinCategoryOverlapRatio()
          Returns how much the bars can overlap eachother when there are multiple data values per data set and per data category.
(package private)  boolean getBetweenComponentsGapExistence()
          Returns this property.
(package private)  int getBetweenComponentsGapThicknessModel()
          Returns this property.
(package private)  java.awt.Color[] getDotColors()
          Returns this property.
(package private)  float getDotsExcessSpaceFeedbackRatio()
          Returns the amount of the excess space to feed back to dots thickness.
(package private)  boolean getDotsExistence()
          Returns this property.
(package private)  int getDotsThicknessModel()
          Returns this property.
(package private)  float getDotsWithinCategoryOverlapRatio()
          Returns how much the dots can overlap eachother when there are multiple data values per data set and per data category.
(package private)  boolean getGraphAreaNeedsUpdate()
          Indicates whether some property of this class has changed.
(package private)  int[][] getGraphValues()
          Returns the graph values for the bars, dots, and lines.
(package private)  java.awt.Color getHorizontalLinesColor()
          Returns a value of the color of the horizontal lines.
(package private)  boolean getHorizontalLinesExistence()
          Returns a value indicating existence of horizontal lines on the graph.
(package private)  float[] getHorizontalLinesStyle()
          Returns a value of the style of the horizontal lines.
(package private)  int getHorizontalLinesThickness()
          Returns a value of the horizontal lines thickness.
(package private)  int getHorizontalLinesThicknessModel()
          Returns a value of the horizontal lines model thickness.
(package private)  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.
(package private)  java.awt.Color[] getLineColors()
          Returns this property.
(package private)  float getLinesExcessSpaceFeedbackRatio()
          Returns the amount of the excess space to feed back to lines thickness.
(package private)  boolean getLinesExistence()
          Returns this property.
(package private)  boolean getLinesFillInterior()
          Returns whether the region between the lines and between its baseline should be filled in.
(package private)  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.
(package private)  int getLinesThicknessModel()
          Returns this property.
(package private)  float getLinesWithinCategoryOverlapRatio()
          Returns how much the lines can overlap eachother when there are multiple data values per data set and per data category.
(package private)  boolean getOutlineComponents()
          Returns whether bars, lines, and/or dots should have a thin black outline around them.
(package private)  java.awt.Color getOutlineComponentsColor()
          Returns the color of the components outline if it exists.
(package private)  int getType()
          Returns the type of graph.
(package private)  java.awt.Color getVerticalLinesColor()
          Returns a value of the color of the vertical lines.
(package private)  boolean getVerticalLinesExistence()
          Returns a value indicating existence of vertical lines on the graph.
(package private)  float[] getVerticalLinesStyle()
          Returns a value of the style of the vertical lines.
(package private)  int getVerticalLinesThickness()
          Returns a value of the vertical lines thickness.
(package private)  int getVerticalLinesThicknessModel()
          Returns a value of the vertical lines model thickness.
(package private)  java.awt.Rectangle[] getXTicks()
          Returns the ticks of the x axis.
(package private)  java.awt.Rectangle[] getYTicks()
          Returns the ticks of the y axis.
(package private)  void paintComponent(java.awt.Graphics2D g2D)
          Paints all the components of this class.
(package private)  void resetGraphAreaModel(boolean reset)
          Resets the model for this class.
(package private)  void setAllowComponentAlignment(boolean allow)
          Specifies whether graph components, bars, lines, or dots are offset from eachother.
(package private)  void setBarColors(java.awt.Color[] colors)
          The colors of the bar sets.
(package private)  void setBarLowValues(int[][] values)
          Determines where bars of bar charts begin.
(package private)  void setBarsExcessSpaceFeedbackRatio(float ratio)
          Specifies the amount of the excess space to feed back to bars thickness.
(package private)  void setBarsExistence(boolean existence)
          Whether to paint bars representing the graph values.
(package private)  void setBarsThicknessModel(int thickness)
          The model thickness for the bars.
(package private)  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.
(package private)  void setBetweenComponentsGapExistence(boolean existence)
          Whether there exists a gap between plotted data sets.
(package private)  void setBetweenComponentsGapThicknessModel(int thickness)
          The model thickness for the gap.
(package private)  void setDotColors(java.awt.Color[] colors)
          The colors of the dot sets.
(package private)  void setDotsExcessSpaceFeedbackRatio(float ratio)
          Specifies the amount of the excess space to feed back to dots thickness.
(package private)  void setDotsExistence(boolean existence)
          Whether to paint dots representing the graph values.
(package private)  void setDotsThicknessModel(int thickness)
          The model thickness for the dots.
(package private)  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.
(package private)  void setGraphValues(int[][] values)
          The heights/widths of the components.
(package private)  void setHorizontalLinesColor(java.awt.Color color)
          The color of the horizontal lines.
(package private)  void setHorizontalLinesExistence(boolean existence)
          Whether the horizontal lines exist.
(package private)  void setHorizontalLinesStyle(float[] style)
          The style of the horizontal lines.
(package private)  void setHorizontalLinesThicknessModel(int thickness)
          The model thickness for the horizontal lines.
(package private)  void setLabelsAxisTicksAlignment(int alignment)
          Placement of the graph components (bars, dots, or line points) depends to some degree on placement of the ticks.
(package private)  void setLineColors(java.awt.Color[] colors)
          The colors of the line sets.
(package private)  void setLinesExcessSpaceFeedbackRatio(float ratio)
          Specifies the amount of the excess space to feed back to lines thickness.
(package private)  void setLinesExistence(boolean existence)
          Whether to paint lines representing the graph values.
(package private)  void setLinesFillInterior(boolean fill)
          Indicates whether the region between the lines and between its baseline should be filled in.
(package private)  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.
(package private)  void setLinesThicknessAssociation(boolean association)
          Specifies whether the vertical and/or horizontal lines should maintain the same size.
(package private)  void setLinesThicknessModel(int thickness)
          The model thickness for the lines.
(package private)  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.
(package private)  void setOutlineComponents(boolean outline)
          Indicates whether bars, lines, and/or dots should have a thin black outline around them.
(package private)  void setOutlineComponentsColor(java.awt.Color color)
          Indicates the color of the components outline if it exists.
(package private)  void setType(int type)
          The type of the graph area.
(package private)  void setVerticalLinesColor(java.awt.Color color)
          The color of the vertical lines.
(package private)  void setVerticalLinesExistence(boolean existence)
          Whether the vertical lines exist.
(package private)  void setVerticalLinesStyle(float[] style)
          The style of the vertical lines.
(package private)  void setVerticalLinesThicknessModel(int thickness)
          The model thickness for the vertical lines.
(package private)  void setXTicks(java.awt.Rectangle[] ticks)
          Sets the ticks of the x axis.
(package private)  void setYTicks(java.awt.Rectangle[] ticks)
          Sets the ticks of the x axis.
(package private)  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.
(package private)  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.
(package private)  void updateGraphArea()
          Updates this parent's variables, and this' variables.
 
Methods inherited from class net.sourceforge.chart2d.Area
applyRatio, getAreaNeedsUpdate, getAutoSize, getBackgroundColor, getBackgroundExistence, getBorderColor, getBorderColor, getBorderExistence, getBorderExistence, getBorderThickness, getBorderThickness, getBorderThicknessModel, getBorderThicknessModel, getGapThickness, getGapThicknessModel, getJustifications, getRatio, getResetAreaModel, getSize, getSizeLocation, getSpaceSize, getSpaceSizeLocation, resetAreaModel, setAutoJustifys, setAutoSizes, setBackgroundColor, setBackgroundExistence, setBorderAssociations, setBorderColor, setBorderColors, setBorderCornerAssociations, setBorderExistence, setBorderExistences, setBorderThicknessModel, setBorderThicknessModels, setCustomRatio, setGapAssociations, setGapExistence, setGapExistences, setGapThicknessModel, setGapThicknessModels, setJustifications, setLockRatios, setSize, setSizeLocation, setSpaceSize, setSpaceSizeLocation, updateArea
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphArea

GraphArea()
Creates a graph area with the default values of the Area class (except where overridden here), and its own default values.
Method Detail

setOutlineComponents

void setOutlineComponents(boolean outline)
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

void setOutlineComponentsColor(java.awt.Color color)
Indicates the color of the components outline if it exists.
Parameters:
color - The color for the outline.

setLabelsAxisTicksAlignment

void setLabelsAxisTicksAlignment(int alignment)
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

setType

void setType(int type)
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]

setAllowComponentAlignment

void setAllowComponentAlignment(boolean allow)
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.

setGraphValues

void setGraphValues(int[][] values)
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.

setBarLowValues

void setBarLowValues(int[][] values)
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 actual data set values).

setXTicks

void setXTicks(java.awt.Rectangle[] ticks)
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

void setYTicks(java.awt.Rectangle[] ticks)
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.

setLinesThicknessAssociation

void setLinesThicknessAssociation(boolean association)
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.

setHorizontalLinesExistence

void setHorizontalLinesExistence(boolean existence)
Whether the horizontal lines exist.
Parameters:
existence - If true, then they do.

setHorizontalLinesThicknessModel

void setHorizontalLinesThicknessModel(int thickness)
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.

setHorizontalLinesStyle

void setHorizontalLinesStyle(float[] style)
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]

setHorizontalLinesColor

void setHorizontalLinesColor(java.awt.Color color)
The color of the horizontal lines.
Parameters:
color - Some Color.

setVerticalLinesExistence

void setVerticalLinesExistence(boolean existence)
Whether the vertical lines exist.
Parameters:
existence - If true, then they do.

setVerticalLinesThicknessModel

void setVerticalLinesThicknessModel(int thickness)
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.

setVerticalLinesStyle

void setVerticalLinesStyle(float[] style)
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]

setVerticalLinesColor

void setVerticalLinesColor(java.awt.Color color)
The color of the vertical lines.
Parameters:
color - Some Color.

setBarsExistence

void setBarsExistence(boolean existence)
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

void setBarsThicknessModel(int thickness)
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.

setBarColors

void setBarColors(java.awt.Color[] colors)
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.

setBarsExcessSpaceFeedbackRatio

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. 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.

setBarsWithinCategoryOverlapRatio

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.
Parameters:
ratio - The ratio on the thickness of the bar for overlap.

setDotsExistence

void setDotsExistence(boolean existence)
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

void setDotsThicknessModel(int thickness)
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

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.
Parameters:
ratio - The ratio on the thickness of the dot for overlap.

setDotColors

void setDotColors(java.awt.Color[] colors)
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

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. 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.

setLinesExistence

void setLinesExistence(boolean existence)
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.

setLinesThicknessModel

void setLinesThicknessModel(int thickness)
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.

setLinesFillInterior

void setLinesFillInterior(boolean fill)
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

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.
Parameters:
int - The base value for the region.

setLineColors

void setLineColors(java.awt.Color[] colors)
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

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. 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.

setLinesWithinCategoryOverlapRatio

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.
Parameters:
ratio - The ratio on the thickness of the line for overlap.

setBetweenComponentsGapExistence

void setBetweenComponentsGapExistence(boolean existence)
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

void setBetweenComponentsGapThicknessModel(int thickness)
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.

getOutlineComponents

boolean getOutlineComponents()
Returns whether bars, lines, and/or dots should have a thin black outline around them.
Returns:
boolean If true, then outline.

getOutlineComponentsColor

java.awt.Color getOutlineComponentsColor()
Returns the color of the components outline if it exists.
Returns:
Color The color of the outline.

getType

int getType()
Returns the type of graph.
Returns:
The type of graph. [LABELSBOTTOM or LABELSLEFT]

getAllowComponentAlignment

boolean getAllowComponentAlignment()
Returns whether the bars, lines or dots are aligned.
Returns:
If true, then they are.

getGraphValues

int[][] getGraphValues()
Returns the graph values for the bars, dots, and lines.
Returns:
The graph values, heights or widths respective to the bottom or side of the graph area.

getBarLowValues

int[][] getBarLowValues()
Returns the low graph values for bars.
Returns:
int[][] The low values.

getXTicks

java.awt.Rectangle[] getXTicks()
Returns the ticks of the x axis. Actually these mereley are the bounds of the ticks, locations and sizes.
Returns:
Bounds for the x axis ticks.

getYTicks

java.awt.Rectangle[] getYTicks()
Returns the ticks of the y axis. Actually these mereley are the bounds of the ticks, locations and sizes.
Returns:
Bounds for the y axis ticks.

getLabelsAxisTicksAlignment

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.
Returns:
int With the value of either Area.CENTERED or Area.BETWEEN

getBarsExistence

boolean getBarsExistence()
Returns this property.
Returns:
If true, then they do.

getBarsThicknessModel

int getBarsThicknessModel()
Returns this property.
Returns:
The model thickness of the bars.

getBarColors

java.awt.Color[] getBarColors()
Returns this property.
Returns:
The colors of the bars.

getBarsExcessSpaceFeedbackRatio

float getBarsExcessSpaceFeedbackRatio()
Returns the amount of the excess space to feed back to bars thickness.
Returns:
float The ratio on the total amount of space to feedback.

getBarsWithinCategoryOverlapRatio

float getBarsWithinCategoryOverlapRatio()
Returns how much the bars can overlap eachother when there are multiple data values per data set and per data category.
Returns:
float The ratio on the thickness of the bar for overlap.

getDotsExistence

boolean getDotsExistence()
Returns this property.
Returns:
If true, then they do.

getDotsThicknessModel

int getDotsThicknessModel()
Returns this property.
Returns:
The model thickness of the dots.

getDotColors

java.awt.Color[] getDotColors()
Returns this property.
Returns:
The colors of the dots.

getDotsExcessSpaceFeedbackRatio

float getDotsExcessSpaceFeedbackRatio()
Returns the amount of the excess space to feed back to dots thickness.
Returns:
float The ratio on the total amount of space to feedback.

getDotsWithinCategoryOverlapRatio

float getDotsWithinCategoryOverlapRatio()
Returns how much the dots can overlap eachother when there are multiple data values per data set and per data category.
Returns:
float The ratio on the thickness of the dot for overlap.

getLinesExistence

boolean getLinesExistence()
Returns this property.
Returns:
If true, then they do.

getLinesThicknessModel

int getLinesThicknessModel()
Returns this property.
Returns:
The model thickness of the lines.

getLinesFillInterior

boolean getLinesFillInterior()
Returns whether the region between the lines and between its baseline should be filled in.
Returns:
boolean If true, then the region under/above the lines will be filled.

getLinesFillInteriorBaseValue

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.
Returns:
The base value for the region.

getLineColors

java.awt.Color[] getLineColors()
Returns this property.
Returns:
The colors of the lines.

getLinesExcessSpaceFeedbackRatio

float getLinesExcessSpaceFeedbackRatio()
Returns the amount of the excess space to feed back to lines thickness.
Returns:
float The ratio on the total amount of space to feedback.

getLinesWithinCategoryOverlapRatio

float getLinesWithinCategoryOverlapRatio()
Returns how much the lines can overlap eachother when there are multiple data values per data set and per data category.
Returns:
float The ratio on the thickness of the line for overlap.

getBetweenComponentsGapExistence

boolean getBetweenComponentsGapExistence()
Returns this property.
Returns:
If true, then it does.

getBetweenComponentsGapThicknessModel

int getBetweenComponentsGapThicknessModel()
Returns this property.
Returns:
The model thickness of this gap.

getVerticalLinesExistence

boolean getVerticalLinesExistence()
Returns a value indicating existence of vertical lines on the graph.
Returns:
True if vertical lines exist.

getVerticalLinesThicknessModel

int getVerticalLinesThicknessModel()
Returns a value of the vertical lines model thickness.
Returns:
The model thickness of this vertical lines.

getVerticalLinesThickness

int getVerticalLinesThickness()
Returns a value of the vertical lines thickness.
Returns:
The thickness of this vertical lines.

getVerticalLinesColor

java.awt.Color getVerticalLinesColor()
Returns a value of the color of the vertical lines.
Returns:
The color of the vertical lines.

getVerticalLinesStyle

float[] getVerticalLinesStyle()
Returns a value of the style of the vertical lines. Possible values are CONTINUOUS, DASHED, and DOTTED.
Returns:
The style of the vertical lines.

getHorizontalLinesExistence

boolean getHorizontalLinesExistence()
Returns a value indicating existence of horizontal lines on the graph.
Returns:
True if horizontal lines exist.

getHorizontalLinesThicknessModel

int getHorizontalLinesThicknessModel()
Returns a value of the horizontal lines model thickness.
Returns:
The model thickness of this horizontal lines.

getHorizontalLinesThickness

int getHorizontalLinesThickness()
Returns a value of the horizontal lines thickness.
Returns:
The thickness of this horizontal lines.

getHorizontalLinesColor

java.awt.Color getHorizontalLinesColor()
Returns a value of the color of the horizontal lines.
Returns:
The color of the horizontal lines.

getHorizontalLinesStyle

float[] getHorizontalLinesStyle()
Returns a value of the style of the horizontal lines. Possible values are CONTINUOUS, DASHED, and DOTTED.
Returns:
The style of the horizontal lines.

stackedBarSort

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. This is used for creating stacked bar charts where the tallest bars must be graphed first.
Parameters:
graphValues - An int[][] of heights of bars...
barIndex - The grouping of bars to work on/sort.

stackedBarConvert

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. 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.

resetGraphAreaModel

void resetGraphAreaModel(boolean reset)
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 max sizing.

getGraphAreaNeedsUpdate

boolean getGraphAreaNeedsUpdate()
Indicates whether some property of this class has changed.
Returns:
True if some property has changed.

updateGraphArea

void updateGraphArea()
Updates this parent's variables, and this' variables.
Parameters:
g2D - The graphics context to use for calculations.

paintComponent

void paintComponent(java.awt.Graphics2D g2D)
Paints all the components of this class. First all variables are updated.
Overrides:
paintComponent in class Area
Parameters:
g2D - The graphics context for calculations and painting.