Java Doc for ChartDataModel.java in  » Chart » charting-0.94 » de » progra » charting » model » 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 » charting 0.94 » de.progra.charting.model 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


de.progra.charting.model.ChartDataModel

All known Subclasses:   de.progra.charting.model.AbstractChartDataModel,
ChartDataModel
public interface ChartDataModel (Code)
This interface defines the methods to access chart data. It has to deal with several difficulties. The model is basically resembling a Swing table model. Furthermore, in the implementation it needs to be defined whether the datasets are organized in rows or in columns, whether the x-axis values are numeric etc. In order to layout certain components, there must be methods to return the maximum and minimum values.

A DataSet is a series of figures belonging together, whereas a column is the value printed at the x-axis. They can be rendered using specific Format classes.
author:
   mueller
version:
   1.0





Method Summary
public  voidaddChartDataModelListener(ChartDataModelListener l)
    
public  intgetAxisBinding(int set)
     Returns the Axis binding of a specific DataSet.
public  ChartDataModelConstraintsgetChartDataModelConstraints(int axis)
     Returns a ChartDataModelConstraints object for the given axis binding.
public  ClassgetColumnClass()
     Returns the class of the columns. the class of the column values.
public  ObjectgetColumnValueAt(int col)
     Returns a specific column value.
Parameters:
  col - the column index the column value.
public  ObjectgetColumnValueAt(int set, int col)
     Returns a specific column value.
Parameters:
  set - the data set index
Parameters:
  col - the column index the column value.
public  intgetDataSetLength(int set)
     Returns the length of a certain dataset.
public  StringgetDataSetName(int set)
     Returns the title of the DataSet used for rendering the Legend.
public  intgetDataSetNumber()
     Returns the total amount of datasets.
public  doublegetManualMaximumColumnValue()
    
public  NumbergetManualMaximumValue()
    
public  doublegetManualMinimumColumnValue()
    
public  NumbergetManualMinimumValue()
    
public  NumbergetValueAt(int set, int index)
     Returns the Value in a specific dataset at a certain index.
public  booleanisAutoScale()
    
public  booleanisColumnNumeric()
     Defines whether the column values are numeric, that is, they can be casted to Number.
public  booleanisManualScale()
     Returns true if the manual axis scaling is enabled.
public  voidremoveChartDataModelListener(ChartDataModelListener l)
    
public  voidsetAutoScale(boolean b)
    
public  voidsetAxisBinding(int set, int axis)
     Sets the Axis binding of a DataSet.
public  voidsetChartDataModelConstraints(int axis, ChartDataModelConstraints constraints)
     Sets the ChartDataModelConstraints object for the given axis binding.
public  voidsetManualScale(boolean b)
     Enables the manual axis scaling.
public  voidsetMaximumColumnValue(double d)
     Sets the maximum x-axis value.
public  voidsetMaximumValue(Number n)
     Sets the maximum y-axis value.
public  voidsetMinimumColumnValue(double d)
     Sets the minimum x-axis value.
public  voidsetMinimumValue(Number n)
     Sets the minimum y-axis value.
public  voidsetValueAt(int set, int index, Object value)
     Sets the value in a specific dataset at the given index.



Method Detail
addChartDataModelListener
public void addChartDataModelListener(ChartDataModelListener l)(Code)
Adds a ChartDataModelListener
Parameters:
  l - the ChartDataModelListener



getAxisBinding
public int getAxisBinding(int set)(Code)
Returns the Axis binding of a specific DataSet.
Parameters:
  set - the DataSet index an integer constant defining the Axis binding



getChartDataModelConstraints
public ChartDataModelConstraints getChartDataModelConstraints(int axis)(Code)
Returns a ChartDataModelConstraints object for the given axis binding.
Parameters:
  axis - the Axis constant a ChartDataModelConstraints object.



getColumnClass
public Class getColumnClass()(Code)
Returns the class of the columns. the class of the column values. In case of numericcolumns this is always Number.class.



getColumnValueAt
public Object getColumnValueAt(int col)(Code)
Returns a specific column value.
Parameters:
  col - the column index the column value. In case of numeric columns this isalways a Number object.



getColumnValueAt
public Object getColumnValueAt(int set, int col)(Code)
Returns a specific column value.
Parameters:
  set - the data set index
Parameters:
  col - the column index the column value. In case of numeric columns this isalways a Number object.



getDataSetLength
public int getDataSetLength(int set)(Code)
Returns the length of a certain dataset. Note that for proper rendering all datasets should have an equal length.
Parameters:
  set - the DataSet index the int length of a DataSet



getDataSetName
public String getDataSetName(int set)(Code)
Returns the title of the DataSet used for rendering the Legend.
Parameters:
  set - the DataSet index a String containing the Title.



getDataSetNumber
public int getDataSetNumber()(Code)
Returns the total amount of datasets. the total amount of DataSets



getManualMaximumColumnValue
public double getManualMaximumColumnValue()(Code)



getManualMaximumValue
public Number getManualMaximumValue()(Code)



getManualMinimumColumnValue
public double getManualMinimumColumnValue()(Code)



getManualMinimumValue
public Number getManualMinimumValue()(Code)



getValueAt
public Number getValueAt(int set, int index)(Code)
Returns the Value in a specific dataset at a certain index.
Parameters:
  set - the DataSet index
Parameters:
  index - the value index in the DataSet the value Object



isAutoScale
public boolean isAutoScale()(Code)



isColumnNumeric
public boolean isColumnNumeric()(Code)
Defines whether the column values are numeric, that is, they can be casted to Number. true if the column value can besafely casted to Number type.



isManualScale
public boolean isManualScale()(Code)
Returns true if the manual axis scaling is enabled. This overrides the enabled automatic axis scaling.



removeChartDataModelListener
public void removeChartDataModelListener(ChartDataModelListener l)(Code)
Removes a ChartDataModelListener
Parameters:
  l - the ChartDataModelListener



setAutoScale
public void setAutoScale(boolean b)(Code)



setAxisBinding
public void setAxisBinding(int set, int axis)(Code)
Sets the Axis binding of a DataSet.
Parameters:
  set - the DataSet index
Parameters:
  axis - the Axis binding constant



setChartDataModelConstraints
public void setChartDataModelConstraints(int axis, ChartDataModelConstraints constraints)(Code)
Sets the ChartDataModelConstraints object for the given axis binding.
Parameters:
  axis - the Axis constant
Parameters:
  constraints - the ChartDataModelConstraints object a ChartDataModelConstraints object.



setManualScale
public void setManualScale(boolean b)(Code)
Enables the manual axis scaling. Set the desired maximum and minimum values using the setMaximum...Value functions.



setMaximumColumnValue
public void setMaximumColumnValue(double d)(Code)
Sets the maximum x-axis value.



setMaximumValue
public void setMaximumValue(Number n)(Code)
Sets the maximum y-axis value.



setMinimumColumnValue
public void setMinimumColumnValue(double d)(Code)
Sets the minimum x-axis value.



setMinimumValue
public void setMinimumValue(Number n)(Code)
Sets the minimum y-axis value.



setValueAt
public void setValueAt(int set, int index, Object value)(Code)
Sets the value in a specific dataset at the given index.
Parameters:
  set - the DataSet index
Parameters:
  index - the value index in the DataSet
Parameters:
  value - the value to be stored



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