Java Doc for GraphArea.java in  » Chart » Chart2D_1.9.6k » net » sourceforge » chart2d » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Chart » Chart2D_1.9.6k » net.sourceforge.chart2d 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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  intCOMPONENT
    
static  float[]CONTINUOUS
     Indicates the continuous.
static  float[]DASHED
     Indicates the dashed.
static  float[]DOTTED
     Indicates the dotted.
final static  intGRAPH
    
static  intMIX
     Indicates both positive and negative.
static  intNEG
     Indicates negative.
static  intPOS
     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  booleangetAllowComponentAlignment()
     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  floatgetBarRoundingRatio()
     Gets the ratio of the rounding arc to the thickness of the bar. Values need to be between zero and one.
final  floatgetBarsExcessSpaceFeedbackRatio()
     Returns the amount of the excess space to feed back to bars thickness.
final  booleangetBarsExistence()
     Returns this property.
final  intgetBarsThicknessModel()
     Returns this property.
final  floatgetBarsWithinCategoryOverlapRatio()
     Returns how much the bars can overlap eachother when there are multiple data values per data set and per data category.
final  booleangetBetweenComponentsGapExistence()
     Returns this property.
final  intgetBetweenComponentsGapThicknessModel()
     Returns this property.
final  booleangetClip()
     Gets the whether the overpaint of the graph components are clipped or not.
final public  AlphaCompositegetComponentsAlphaComposite()
     Gets the actual AlphaComposite object to use on the Graphics2D object context for painting the graph components managed by this GraphProperties object.
final  booleangetComponentsColoringByCat()
     Gets whether the graph components are colored by category or by set.
final  Color[]getComponentsColorsByCat()
     Gets the color array for the category coloring.
final  intgetComponentsLightSource()
     Gets the side from which the lighting affect originates.
final  intgetComponentsLightType()
     Gets the type of lighting affect.
final  intgetDataSign()
     Gets which kinds of the data is graphed.
final  Color[]getDotColors()
     Returns this property.
final  floatgetDotsExcessSpaceFeedbackRatio()
     Returns the amount of the excess space to feed back to dots thickness.
final  booleangetDotsExistence()
     Returns this property.
final  intgetDotsThicknessModel()
     Returns this property.
final  floatgetDotsWithinCategoryOverlapRatio()
     Returns how much the dots can overlap eachother when there are multiple data values per data set and per data category.
final  booleangetGraphAreaNeedsUpdate()
     Indicates whether some property of this class has changed.
final  int[][]getGraphValues()
     Returns the graph values for the bars, dots, and lines.
final  ColorgetHorizontalLinesColor()
     Returns a value of the color of the horizontal lines.
final  booleangetHorizontalLinesExistence()
     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  intgetHorizontalLinesThickness()
     Returns a value of the horizontal lines thickness.
final  intgetHorizontalLinesThicknessModel()
     Returns a value of the horizontal lines model thickness.
final  intgetLabelsAxisTicksAlignment()
     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  floatgetLinesExcessSpaceFeedbackRatio()
     Returns the amount of the excess space to feed back to lines thickness.
final  booleangetLinesExistence()
     Returns this property.
final  booleangetLinesFillInterior()
     Returns whether the region between the lines and between its baseline should be filled in.
final  intgetLinesFillInteriorBaseValue()
     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  intgetLinesThicknessModel()
     Returns this property.
final  floatgetLinesWithinCategoryOverlapRatio()
     Returns how much the lines can overlap eachother when there are multiple data values per data set and per data category.
final  booleangetOutlineComponents()
     Returns whether bars, lines, and/or dots should have a thin black outline around them.
final  ColorgetOutlineComponentsColor()
     Returns the color of the components outline if it exists.
final  intgetType()
     Returns the type of graph. The type of graph.
final  ColorgetVerticalLinesColor()
     Returns a value of the color of the vertical lines.
final  booleangetVerticalLinesExistence()
     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  intgetVerticalLinesThickness()
     Returns a value of the vertical lines thickness.
final  intgetVerticalLinesThicknessModel()
     Returns a value of the vertical lines model thickness.
final  VectorgetWarningRegions()
     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.
 voidpaintComponent(Graphics2D g2D)
     Paints all the components of this class.
final  voidresetGraphAreaModel(boolean reset)
     Resets the model for this class.
final  voidsetAllowComponentAlignment(boolean allow)
     Specifies whether graph components, bars, lines, or dots are offset from eachother.
final  voidsetBarColors(Color[] colors)
     The colors of the bar sets.
final  voidsetBarLowValues(int[][] values)
     Determines where bars of bar charts begin.
final  voidsetBarRoundingRatio(float r)
     Sets the ratio of the rounding arc to the thickness of the bar. Values need to be between zero and one.
final  voidsetBarsExcessSpaceFeedbackRatio(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  voidsetBarsExistence(boolean existence)
     Whether to paint bars representing the graph values.
final  voidsetBarsThicknessModel(int thickness)
     The model thickness for the bars.
final  voidsetBarsWithinCategoryOverlapRatio(float ratio)
     Specifies how much the bars can overlap eachother when there are multiple data values per data set and per data category.
final  voidsetBetweenComponentsGapExistence(boolean existence)
     Whether there exists a gap between plotted data sets.
final  voidsetBetweenComponentsGapThicknessModel(int thickness)
     The model thickness for the gap.
final  voidsetClip(boolean c)
     Sets the whether the overpaint of the graph components are clipped or not.
final public  voidsetComponentsAlphaComposite(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  voidsetComponentsColoringByCat(boolean b)
     Sets whether the graph components are colored by category or by set.
final  voidsetComponentsColorsByCat(Color[] c)
     Sets the color array for the category coloring.
final  voidsetComponentsLightSource(int s)
     Sets the side from which the lighting affect originates.
final  voidsetComponentsLightType(int t)
     Sets the type of lighting affect.
final  voidsetDataSign(int sign)
     Sets which kinds of the data is graphed.
final  voidsetDotColors(Color[] colors)
     The colors of the dot sets.
final  voidsetDotsExcessSpaceFeedbackRatio(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  voidsetDotsExistence(boolean existence)
     Whether to paint dots representing the graph values.
final  voidsetDotsThicknessModel(int thickness)
     The model thickness for the dots.
final  voidsetDotsWithinCategoryOverlapRatio(float ratio)
     Specifies how much the dots can overlap eachother when there are multiple data values per data set and per data category.
final  voidsetGraphValues(int[][] values)
     The heights/widths of the components.
final  voidsetHorizontalLinesColor(Color color)
     The color of the horizontal lines.
final  voidsetHorizontalLinesExistence(boolean existence)
     Whether the horizontal lines exist.
final  voidsetHorizontalLinesStyle(float[] style)
     The style of the horizontal lines.
final  voidsetHorizontalLinesThicknessModel(int thickness)
     The model thickness for the horizontal lines.
final  voidsetLabelsAxisTicksAlignment(int alignment)
     Placement of the graph components (bars, dots, or line points) depends to some degree on placement of the ticks.
final  voidsetLineColors(Color[] colors)
     The colors of the line sets.
final  voidsetLinesExcessSpaceFeedbackRatio(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  voidsetLinesExistence(boolean existence)
     Whether to paint lines representing the graph values.
final  voidsetLinesFillInterior(boolean fill)
     Indicates whether the region between the lines and between its baseline should be filled in.
final  voidsetLinesFillInteriorBaseValue(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  voidsetLinesThicknessAssociation(boolean association)
     Specifies whether the vertical and/or horizontal lines should maintain the same size.
final  voidsetLinesThicknessModel(int thickness)
     The model thickness for the lines.
final  voidsetLinesWithinCategoryOverlapRatio(float ratio)
     Specifies how much the lines can overlap eachother when there are multiple data values per data set and per data category.
final  voidsetOutlineComponents(boolean outline)
     Indicates whether bars, lines, and/or dots should have a thin black outline around them.
final  voidsetOutlineComponentsColor(Color color)
     Indicates the color of the components outline if it exists.
final  voidsetType(int type)
     The type of the graph area.
final  voidsetVerticalLinesColor(Color color)
     The color of the vertical lines.
final  voidsetVerticalLinesExistence(boolean existence)
     Whether the vertical lines exist.
final  voidsetVerticalLinesStyle(float[] style)
     The style of the vertical lines.
final  voidsetVerticalLinesThicknessModel(int thickness)
     The model thickness for the vertical lines.
final  voidsetWarningRegions(Vector v)
     Sets the warning regions vector for applying to the graph background and the graph components.
final  voidsetXTicks(Rectangle[] ticks)
     Sets the ticks of the x axis.
final  voidsetYTicks(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  voidupdateGraphArea()
     Updates this parent's variables, and this' variables.

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




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




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



Fields inherited from net.sourceforge.chart2d.Area
final static int BETWEEN(Code)(Java Doc)
final static int BOTTOM(Code)(Java Doc)
final static int CENTER(Code)(Java Doc)
final static int CENTERED(Code)(Java Doc)
static float[] CONTINUOUS(Code)(Java Doc)
static float[] DASHED(Code)(Java Doc)
static float[] DOTTED(Code)(Java Doc)
final static int HEIGHT(Code)(Java Doc)
final static int HORIZONTAL(Code)(Java Doc)
final static int LABELSBOTTOM(Code)(Java Doc)
final static int LABELSLEFT(Code)(Java Doc)
final static int LEFT(Code)(Java Doc)
final static int LEFTBOTTOM(Code)(Java Doc)
final static int LEFTRIGHT(Code)(Java Doc)
final static int LEFTTOP(Code)(Java Doc)
final static int LESSER(Code)(Java Doc)
final static int MAX(Code)(Java Doc)
final static int MAXMODEL(Code)(Java Doc)
final static int MIN(Code)(Java Doc)
static int NONE(Code)(Java Doc)
final static int RIGHT(Code)(Java Doc)
final static int RIGHTBOTTOM(Code)(Java Doc)
final static int RIGHTTOP(Code)(Java Doc)
final static int TOP(Code)(Java Doc)
final static int TOPBOTTOM(Code)(Java Doc)
final static int VERTICAL(Code)(Java Doc)
final static int WIDTH(Code)(Java Doc)

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)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.