Java Doc for Timeline.java in  » Chart » jfreechart » org » jfree » chart » axis » 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 » jfreechart » org.jfree.chart.axis 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jfree.chart.axis.Timeline

All known Subclasses:   org.jfree.chart.axis.SegmentedTimeline,
Timeline
public interface Timeline (Code)
An interface that defines the contract for a Timeline.

A Timeline will present a series of values to be used for an axis. Each Timeline must provide transformation methods between domain values and timeline values. In theory many transformations are possible. This interface has been implemented completely in org.jfree.chart.axis.SegmentedTimeline .

A timeline can be used as parameter to a org.jfree.chart.axis.DateAxis to define the values that this axis supports. As an example, the org.jfree.chart.axis.SegmentedTimeline implements a timeline formed by segments of equal length (ex. days, hours, minutes) where some segments can be included in the timeline and others excluded. Therefore timelines like "working days" or "working hours" can be created where non-working days or non-working hours respectively can be removed from the timeline, and therefore from the axis. This creates a smooth plot with equal separation between all included segments.

Because Timelines were created mainly for Date related axis, values are represented as longs instead of doubles. In this case, the domain value is just the number of milliseconds since January 1, 1970, 00:00:00 GMT as defined by the getTime() method of java.util.Date .
See Also:   org.jfree.chart.axis.SegmentedTimeline
See Also:   org.jfree.chart.axis.DateAxis





Method Summary
 booleancontainsDomainRange(long fromMillisecond, long toMillisecond)
     Returns true if a range of values are contained in the timeline.
Parameters:
  fromMillisecond - the start of the range to verify.
Parameters:
  toMillisecond - the end of the range to verify.
 booleancontainsDomainRange(Date fromDate, Date toDate)
     Returns true if a range of dates are contained in the timeline.
Parameters:
  fromDate - the start of the range to verify.
Parameters:
  toDate - the end of the range to verify.
 booleancontainsDomainValue(long millisecond)
     Returns true if a value is contained in the timeline values.
Parameters:
  millisecond - the millisecond.
 booleancontainsDomainValue(Date date)
     Returns true if a date is contained in the timeline values.
Parameters:
  date - the date to verify.
 longtoMillisecond(long timelineValue)
     Translates a value relative to this timeline into a domain value.
 longtoTimelineValue(long millisecond)
     Translates a millisecond (as defined by java.util.Date) into an index along this timeline.
Parameters:
  millisecond - the millisecond.
 longtoTimelineValue(Date date)
     Translates a date into a value on this timeline.
Parameters:
  date - the date.



Method Detail
containsDomainRange
boolean containsDomainRange(long fromMillisecond, long toMillisecond)(Code)
Returns true if a range of values are contained in the timeline.
Parameters:
  fromMillisecond - the start of the range to verify.
Parameters:
  toMillisecond - the end of the range to verify. true if the range is contained in the timeline or false otherwise



containsDomainRange
boolean containsDomainRange(Date fromDate, Date toDate)(Code)
Returns true if a range of dates are contained in the timeline.
Parameters:
  fromDate - the start of the range to verify.
Parameters:
  toDate - the end of the range to verify. true if the range is contained in the timeline or false otherwise



containsDomainValue
boolean containsDomainValue(long millisecond)(Code)
Returns true if a value is contained in the timeline values.
Parameters:
  millisecond - the millisecond. true if value is contained in the timeline and false otherwise.



containsDomainValue
boolean containsDomainValue(Date date)(Code)
Returns true if a date is contained in the timeline values.
Parameters:
  date - the date to verify. true if value is contained in the timeline and false otherwise.



toMillisecond
long toMillisecond(long timelineValue)(Code)
Translates a value relative to this timeline into a domain value. The domain value obtained by this method is not always the same domain value that could have been supplied to translateDomainValueToTimelineValue(domainValue). This is because the original tranformation may not be complete reversable.
See Also:   org.jfree.chart.axis.SegmentedTimeline
Parameters:
  timelineValue - a timeline value. A domain value.



toTimelineValue
long toTimelineValue(long millisecond)(Code)
Translates a millisecond (as defined by java.util.Date) into an index along this timeline.
Parameters:
  millisecond - the millisecond. A timeline value.



toTimelineValue
long toTimelineValue(Date date)(Code)
Translates a date into a value on this timeline.
Parameters:
  date - the date. A timeline value



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