|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--net.sourceforge.chart2d.Area
|
+--net.sourceforge.chart2d.GraphArea
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 java.lang.Object |
|
| Constructor Detail |
GraphArea()
| Method Detail |
void setOutlineComponents(boolean outline)
outline - If true, then there will be an outline.void setOutlineComponentsColor(java.awt.Color color)
color - The color for the outline.void setLabelsAxisTicksAlignment(int alignment)
alignment - A value of either Area.BETWEEN or Area.CENTEREDvoid setType(int type)
type - The type of the graph area. [LABELSBOTTOM or LABELSLEFT]void setAllowComponentAlignment(boolean allow)
allow - If true, then aligns the components.void setGraphValues(int[][] values)
values - The offsets of the components from the data descriptor axis.void setBarLowValues(int[][] values)
values - The low values normalized the graph area (i.e. not the actual
data set values).void setXTicks(java.awt.Rectangle[] ticks)
ticks - The bounds of the ticks, location and size.void setYTicks(java.awt.Rectangle[] ticks)
ticks - The bounds of the ticks, location and size.void setLinesThicknessAssociation(boolean association)
association - If true, then the lines thicknesses will be equal.void setHorizontalLinesExistence(boolean existence)
existence - If true, then they do.void setHorizontalLinesThicknessModel(int thickness)
thickness - The model thickness for the horizontal lines.void setHorizontalLinesStyle(float[] style)
style - The style of the lines [CONTINOUS, DASHED, DOTTED]void setHorizontalLinesColor(java.awt.Color color)
color - Some Color.void setVerticalLinesExistence(boolean existence)
existence - If true, then they do.void setVerticalLinesThicknessModel(int thickness)
thickness - The model thickness for the vertical lines.void setVerticalLinesStyle(float[] style)
style - The style of the lines [CONTINOUS, DASHED, DOTTED]void setVerticalLinesColor(java.awt.Color color)
color - Some Color.void setBarsExistence(boolean existence)
existence - If true, then they exist.void setBarsThicknessModel(int thickness)
thickness - The model thickness for the bars.void setBarColors(java.awt.Color[] colors)
colors - The colors for the data sets.void setBarsExcessSpaceFeedbackRatio(float ratio)
ratio - The ratio on the total amount of space to feedback.void setBarsWithinCategoryOverlapRatio(float ratio)
ratio - The ratio on the thickness of the bar for overlap.void setDotsExistence(boolean existence)
existence - If true, then they exist.void setDotsThicknessModel(int thickness)
thickness - The model thickness for the dots.void setDotsWithinCategoryOverlapRatio(float ratio)
ratio - The ratio on the thickness of the dot for overlap.void setDotColors(java.awt.Color[] colors)
colors - The colors for the data sets.void setDotsExcessSpaceFeedbackRatio(float ratio)
ratio - The ratio on the total amount of space to feedback.void setLinesExistence(boolean existence)
existence - If true, then they exist.void setLinesThicknessModel(int thickness)
thickness - The model thickness for the lines.void setLinesFillInterior(boolean fill)
fill - If true, then the region under/above the lines will be filled.void setLinesFillInteriorBaseValue(int value)
int - The base value for the region.void setLineColors(java.awt.Color[] colors)
colors - The colors for the data sets.void setLinesExcessSpaceFeedbackRatio(float ratio)
ratio - The ratio on the total amount of space to feedback.void setLinesWithinCategoryOverlapRatio(float ratio)
ratio - The ratio on the thickness of the line for overlap.void setBetweenComponentsGapExistence(boolean existence)
existence - If true, then it does.void setBetweenComponentsGapThicknessModel(int thickness)
thickness - The model thickness for the gap.boolean getOutlineComponents()
java.awt.Color getOutlineComponentsColor()
int getType()
boolean getAllowComponentAlignment()
int[][] getGraphValues()
int[][] getBarLowValues()
java.awt.Rectangle[] getXTicks()
java.awt.Rectangle[] getYTicks()
int getLabelsAxisTicksAlignment()
boolean getBarsExistence()
int getBarsThicknessModel()
java.awt.Color[] getBarColors()
float getBarsExcessSpaceFeedbackRatio()
float getBarsWithinCategoryOverlapRatio()
boolean getDotsExistence()
int getDotsThicknessModel()
java.awt.Color[] getDotColors()
float getDotsExcessSpaceFeedbackRatio()
float getDotsWithinCategoryOverlapRatio()
boolean getLinesExistence()
int getLinesThicknessModel()
boolean getLinesFillInterior()
int getLinesFillInteriorBaseValue()
java.awt.Color[] getLineColors()
float getLinesExcessSpaceFeedbackRatio()
float getLinesWithinCategoryOverlapRatio()
boolean getBetweenComponentsGapExistence()
int getBetweenComponentsGapThicknessModel()
boolean getVerticalLinesExistence()
int getVerticalLinesThicknessModel()
int getVerticalLinesThickness()
java.awt.Color getVerticalLinesColor()
float[] getVerticalLinesStyle()
boolean getHorizontalLinesExistence()
int getHorizontalLinesThicknessModel()
int getHorizontalLinesThickness()
java.awt.Color getHorizontalLinesColor()
float[] getHorizontalLinesStyle()
int[] stackedBarSort(int[][] graphValues,
int barIndex)
graphValues - An int[][] of heights of bars...barIndex - The grouping of bars to work on/sort.
int[][] stackedBarConvert(int[][] graphValues,
int[][] lowBarValues)
void resetGraphAreaModel(boolean reset)
reset - True causes the max model size to be set upon the next max
sizing.boolean getGraphAreaNeedsUpdate()
void updateGraphArea()
g2D - The graphics context to use for calculations.void paintComponent(java.awt.Graphics2D g2D)
paintComponent in class Areag2D - The graphics context for calculations and painting.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||