Java Doc for Chart2DProperties.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.Properties
      net.sourceforge.chart2d.Chart2DProperties

Chart2DProperties
final public class Chart2DProperties extends Properties (Code)
A data structure for holding the properties common to all Chart2D charts. Chart2D charts are all capable of having a legend. Pass this to any number of Chart2D objects.


Field Summary
final public static  booleanCHART_BETWEEN_CHART_AND_LEGEND_GAP_EXISTENCE_DEFAULT
     The default is true.
final public static  intCHART_BETWEEN_CHART_AND_LEGEND_GAP_THICKNESS_MODEL_DEFAULT
     The default is 5.
final public static  intCHART_DATA_LABELS_PRECISION_DEFAULT
     The default is MAX_INTEGER.
final public static  intMAX_FLOAT
     The number is -38.
final public static  intMAX_INTEGER
     The number is 38.

Constructor Summary
public  Chart2DProperties()
     Creates a Chart2DProperties object with the documented default values.
public  Chart2DProperties(Chart2DProperties chart2DProps)
     Creates a Chart2DProperties object with property values copied from another object.

Method Summary
final  voidaddChart2D(Chart2D chart2D)
     Adds a Chart2D to the set of objects using these properties.
final  booleangetChart2DNeedsUpdate(Chart2D chart2D)
     Gets whether this object needs to be updated with new properties.
Parameters:
  chart2D - The object that may need to be updated.
final public  booleangetChartBetweenChartAndLegendGapExistence()
     Gets whether the gap between the chart and the legend exists.
final public  intgetChartBetweenChartAndLegendGapThicknessModel()
     Gets the thickness of the gap between the chart and the legend for the chart's model size.
final public  intgetChartDataLabelsPrecision()
     Gets the look of labels that are supposed to describe the value of the data.
final  voidremoveChart2D(Chart2D chart2D)
     Removes a Chart2D from the set of objects using these properties.
final public  voidsetChart2DProperties(Chart2DProperties chart2DProps)
     Sets all properties to be the values of another Chart2DProperties object.
final public  voidsetChart2DPropertiesToDefaults()
     Sets all properties to their default values.
final public  voidsetChartBetweenChartAndLegendGapExistence(boolean existence)
     Sets whether the gap between the chart and the legend exists.
final public  voidsetChartBetweenChartAndLegendGapThicknessModel(int thickness)
     Sets the thickness of the gap between the chart and the legend for the chart's model size.
final public  voidsetChartDataLabelsPrecision(int precision)
     Sets the look of labels that are supposed to describe the value of the data.
final  voidupdateChart2D(Chart2D chart2D)
     Updates the properties of this Chart2D.
final  booleanvalidate(boolean debug)
     Validates the properties of this object. If debug is true then prints a messages indicating whether each property is valid. Returns true if all the properties were valid and false otherwise.
Parameters:
  debug - If true then will print status messages.

Field Detail
CHART_BETWEEN_CHART_AND_LEGEND_GAP_EXISTENCE_DEFAULT
final public static boolean CHART_BETWEEN_CHART_AND_LEGEND_GAP_EXISTENCE_DEFAULT(Code)
The default is true.



CHART_BETWEEN_CHART_AND_LEGEND_GAP_THICKNESS_MODEL_DEFAULT
final public static int CHART_BETWEEN_CHART_AND_LEGEND_GAP_THICKNESS_MODEL_DEFAULT(Code)
The default is 5.



CHART_DATA_LABELS_PRECISION_DEFAULT
final public static int CHART_DATA_LABELS_PRECISION_DEFAULT(Code)
The default is MAX_INTEGER.



MAX_FLOAT
final public static int MAX_FLOAT(Code)
The number is -38.



MAX_INTEGER
final public static int MAX_INTEGER(Code)
The number is 38.




Constructor Detail
Chart2DProperties
public Chart2DProperties()(Code)
Creates a Chart2DProperties object with the documented default values.



Chart2DProperties
public Chart2DProperties(Chart2DProperties chart2DProps)(Code)
Creates a Chart2DProperties object with property values copied from another object. The copying is a deep copy.
Parameters:
  chart2DProps - The properties to copy.




Method Detail
addChart2D
final void addChart2D(Chart2D chart2D)(Code)
Adds a Chart2D to the set of objects using these properties.
Parameters:
  chart2D - The object to add.



getChart2DNeedsUpdate
final boolean getChart2DNeedsUpdate(Chart2D chart2D)(Code)
Gets whether this object needs to be updated with new properties.
Parameters:
  chart2D - The object that may need to be updated. If true then needs update.



getChartBetweenChartAndLegendGapExistence
final public boolean getChartBetweenChartAndLegendGapExistence()(Code)
Gets whether the gap between the chart and the legend exists. If the legend doesn't exist, this gap will automatically not exist. If true, the gap exists.



getChartBetweenChartAndLegendGapThicknessModel
final public int getChartBetweenChartAndLegendGapThicknessModel()(Code)
Gets the thickness of the gap between the chart and the legend for the chart's model size. The model thickness of the gap.



getChartDataLabelsPrecision
final public int getChartDataLabelsPrecision()(Code)
Gets the look of labels that are supposed to describe the value of the data. For example, for pie charts this method will influence the labels that surround the chart, and for charts with axes this method will influence the labels on the numbers axis. The specific labels are first determined from the greatest and least value in the data set and other factors. This method then lets you adjust whether you want integer or floating point labels and how exact you want those labels to be. You do this using the precision parameter, and passing values between 8 and -8. Nonnegative ints indicate the labels will not contain a decimal (ie will be integer labels), and the specific nonnegative number indicates how many zeroes will be to the left of the decimal if it were there (ex. for the number 1976, a precision of 0 would return 1976, a precision of 1 would return 1980, a precision of 3 would return 2000, and a precision greater than 3 would also return 2000). If the number of desired zeroes is greater than the label, then the number of zeroes is automatically scaled back to be 1 less than the number of digits. Negative ints for precision indicate the labels will contain a decimal, and the specific negative number indicates how many digits to the right of the decimal are wanted (ex. for the number 1.935, a precision of -1 would return 1.9, a precision of -2 would return 1.94, a precision of -4 would return 1.9350). If the number of desired decimal places is larger than the number of places present in the number, then zeroes are added to form as many places as are desired up to -8. MAX_INTEGER or MAX_FLOAT will always indicate the maximum number of zeroes and the maximum number of decimal places possible by Chart2D's algorithm for adjusting these labels. The adjustement of the precision of numbers labels.



removeChart2D
final void removeChart2D(Chart2D chart2D)(Code)
Removes a Chart2D from the set of objects using these properties.
Parameters:
  chart2D - The object to remove.



setChart2DProperties
final public void setChart2DProperties(Chart2DProperties chart2DProps)(Code)
Sets all properties to be the values of another Chart2DProperties object. The copying is a deep copy.
Parameters:
  chart2DProps - The properties to copy.



setChart2DPropertiesToDefaults
final public void setChart2DPropertiesToDefaults()(Code)
Sets all properties to their default values.



setChartBetweenChartAndLegendGapExistence
final public void setChartBetweenChartAndLegendGapExistence(boolean existence)(Code)
Sets whether the gap between the chart and the legend exists. If the legend doesn't exist, this gap will automatically not exist.
Parameters:
  existence - If true, the gap exists.



setChartBetweenChartAndLegendGapThicknessModel
final public void setChartBetweenChartAndLegendGapThicknessModel(int thickness)(Code)
Sets the thickness of the gap between the chart and the legend for the chart's model size.
Parameters:
  thickness - The model thickness of the gap.



setChartDataLabelsPrecision
final public void setChartDataLabelsPrecision(int precision)(Code)
Sets the look of labels that are supposed to describe the value of the data. For example, for pie charts this method will influence the labels that surround the chart, and for charts with axes this method will influence the labels on the numbers axis. The specific labels are first determined from the greatest and least value in the data set and other factors. This method then lets you adjust whether you want integer or floating point labels and how exact you want those labels to be. You do this using the precision parameter, and passing values between 38 and -38. Nonnegative ints indicate the labels will not contain a decimal (ie will be integer labels), and the specific nonnegative number indicates how many zeroes will be to the left of the decimal if it were there (ex. for the number 1976, a precision of 0 would return 1976, a precision of 1 would return 1980, a precision of 3 would return 2000, and a precision greater than 3 would also return 2000). If the number of desired zeroes is greater than the label, then the number of zeroes is automatically scaled back to be 1 less than the number of digits. Negative ints for precision indicate the labels will contain a decimal, and the specific negative number indicates how many digits to the right of the decimal are wanted (ex. for the number 1.935, a precision of -1 would return 1.9, a precision of -2 would return 1.94, a precision of -4 would return 1.9350). If the number of desired decimal places is larger than the number of places present in the number, then zeroes are added to form as many places as are desired up to -38. MAX_INTEGER or MAX_FLOAT will always indicate the maximum number of zeroes and the maximum number of decimal places possible by Chart2D's algorithm for adjusting these labels.
Parameters:
  precision - The adjustement of the precision of numbers labels.



updateChart2D
final void updateChart2D(Chart2D chart2D)(Code)
Updates the properties of this Chart2D.
Parameters:
  chart2D - The Chart2D to update.



validate
final boolean validate(boolean debug)(Code)
Validates the properties of this object. If debug is true then prints a messages indicating whether each property is valid. Returns true if all the properties were valid and false otherwise.
Parameters:
  debug - If true then will print status messages. If true then valid.



Methods inherited from net.sourceforge.chart2d.Properties
final public synchronized boolean isFontNameExists(String name)(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.