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


java.lang.Object
   org.jfree.data.time.RegularTimePeriod

All known Subclasses:   org.jfree.data.time.Year,  org.jfree.data.time.Millisecond,  org.jfree.data.time.FixedMillisecond,  org.jfree.data.time.Week,  org.jfree.data.time.Month,  org.jfree.data.time.Quarter,  org.jfree.data.time.Minute,  org.jfree.data.time.Day,  org.jfree.data.time.Hour,  org.jfree.data.time.Second,
RegularTimePeriod
abstract public class RegularTimePeriod implements TimePeriod,Comparable,MonthConstants(Code)
An abstract class representing a unit of time. Convenient methods are provided for calculating the next and previous time periods. Conversion methods are defined that return the first and last milliseconds of the time period. The results from these methods are timezone dependent.

This class is immutable, and all subclasses should be immutable also.



Field Summary
final public static  TimeZoneDEFAULT_TIME_ZONE
     The default time zone.
final public static  CalendarWORKING_CALENDAR
     A working calendar (recycle to avoid unnecessary object creation).


Method Summary
public static  RegularTimePeriodcreateInstance(Class c, Date millisecond, TimeZone zone)
     Creates a time period that includes the specified millisecond, assuming the given time zone.
Parameters:
  c - the time period class.
Parameters:
  millisecond - the time.
Parameters:
  zone - the time zone.
public static  Classdownsize(Class c)
     Returns a subclass of RegularTimePeriod that is smaller than the specified class.
Parameters:
  c - a subclass of RegularTimePeriod.
public  DategetEnd()
     Returns the date/time that marks the end of the time period.
abstract public  longgetFirstMillisecond()
     Returns the first millisecond of the time period.
public  longgetFirstMillisecond(TimeZone zone)
     Returns the first millisecond of the time period, evaluated within a specific time zone.
Parameters:
  zone - the time zone (null not permitted).
abstract public  longgetFirstMillisecond(Calendar calendar)
     Returns the first millisecond of the time period, evaluated using the supplied calendar (which incorporates a timezone).
Parameters:
  calendar - the calendar (null not permitted).
abstract public  longgetLastMillisecond()
     Returns the last millisecond of the time period.
public  longgetLastMillisecond(TimeZone zone)
     Returns the last millisecond of the time period, evaluated within a specific time zone.
Parameters:
  zone - the time zone (null not permitted).
abstract public  longgetLastMillisecond(Calendar calendar)
     Returns the last millisecond of the time period, evaluated using the supplied calendar (which incorporates a timezone).
Parameters:
  calendar - the calendar (null not permitted).
public  longgetMiddleMillisecond()
     Returns the millisecond closest to the middle of the time period.
public  longgetMiddleMillisecond(TimeZone zone)
     Returns the millisecond closest to the middle of the time period, evaluated within a specific time zone.
Parameters:
  zone - the time zone (null not permitted).
public  longgetMiddleMillisecond(Calendar calendar)
     Returns the millisecond closest to the middle of the time period, evaluated using the supplied calendar (which incorporates a timezone).
Parameters:
  calendar - the calendar.
abstract public  longgetSerialIndex()
     Returns a serial index number for the time unit.
public  DategetStart()
     Returns the date/time that marks the start of the time period.
abstract public  RegularTimePeriodnext()
     Returns the time period following this one, or null if some limit has been reached.
abstract public  voidpeg(Calendar calendar)
     Recalculates the start date/time and end date/time for this time period relative to the supplied calendar (which incorporates a time zone).
abstract public  RegularTimePeriodprevious()
     Returns the time period preceding this one, or null if some lower limit has been reached.
public  StringtoString()
     Returns a string representation of the time period.

Field Detail
DEFAULT_TIME_ZONE
final public static TimeZone DEFAULT_TIME_ZONE(Code)
The default time zone.



WORKING_CALENDAR
final public static Calendar WORKING_CALENDAR(Code)
A working calendar (recycle to avoid unnecessary object creation).





Method Detail
createInstance
public static RegularTimePeriod createInstance(Class c, Date millisecond, TimeZone zone)(Code)
Creates a time period that includes the specified millisecond, assuming the given time zone.
Parameters:
  c - the time period class.
Parameters:
  millisecond - the time.
Parameters:
  zone - the time zone. The time period.



downsize
public static Class downsize(Class c)(Code)
Returns a subclass of RegularTimePeriod that is smaller than the specified class.
Parameters:
  c - a subclass of RegularTimePeriod. A class.



getEnd
public Date getEnd()(Code)
Returns the date/time that marks the end of the time period. This method returns a new Date instance every time it is called. The end date/time.
See Also:   RegularTimePeriod.getLastMillisecond()



getFirstMillisecond
abstract public long getFirstMillisecond()(Code)
Returns the first millisecond of the time period. This will be determined relative to the time zone specified in the constructor, or in the calendar instance passed in the most recent call to the RegularTimePeriod.peg(Calendar) method. The first millisecond of the time period.
See Also:   RegularTimePeriod.getLastMillisecond()



getFirstMillisecond
public long getFirstMillisecond(TimeZone zone)(Code)
Returns the first millisecond of the time period, evaluated within a specific time zone.
Parameters:
  zone - the time zone (null not permitted). The first millisecond of the time period.RegularTimePeriod.getFirstMillisecond(Calendar)
See Also:   RegularTimePeriod.getLastMillisecond(TimeZone)



getFirstMillisecond
abstract public long getFirstMillisecond(Calendar calendar)(Code)
Returns the first millisecond of the time period, evaluated using the supplied calendar (which incorporates a timezone).
Parameters:
  calendar - the calendar (null not permitted). The first millisecond of the time period.
throws:
  NullPointerException - if calendar,/code> is null.
See Also:   RegularTimePeriod.getLastMillisecond(Calendar)



getLastMillisecond
abstract public long getLastMillisecond()(Code)
Returns the last millisecond of the time period. This will be determined relative to the time zone specified in the constructor, or in the calendar instance passed in the most recent call to the RegularTimePeriod.peg(Calendar) method. The last millisecond of the time period.
See Also:   RegularTimePeriod.getFirstMillisecond()



getLastMillisecond
public long getLastMillisecond(TimeZone zone)(Code)
Returns the last millisecond of the time period, evaluated within a specific time zone.
Parameters:
  zone - the time zone (null not permitted). The last millisecond of the time period.RegularTimePeriod.getLastMillisecond(Calendar)
See Also:   RegularTimePeriod.getFirstMillisecond(TimeZone)



getLastMillisecond
abstract public long getLastMillisecond(Calendar calendar)(Code)
Returns the last millisecond of the time period, evaluated using the supplied calendar (which incorporates a timezone).
Parameters:
  calendar - the calendar (null not permitted). The last millisecond of the time period.
See Also:   RegularTimePeriod.getFirstMillisecond(Calendar)



getMiddleMillisecond
public long getMiddleMillisecond()(Code)
Returns the millisecond closest to the middle of the time period. The middle millisecond.



getMiddleMillisecond
public long getMiddleMillisecond(TimeZone zone)(Code)
Returns the millisecond closest to the middle of the time period, evaluated within a specific time zone.
Parameters:
  zone - the time zone (null not permitted). The middle millisecond.RegularTimePeriod.getMiddleMillisecond(Calendar)



getMiddleMillisecond
public long getMiddleMillisecond(Calendar calendar)(Code)
Returns the millisecond closest to the middle of the time period, evaluated using the supplied calendar (which incorporates a timezone).
Parameters:
  calendar - the calendar. The middle millisecond.



getSerialIndex
abstract public long getSerialIndex()(Code)
Returns a serial index number for the time unit. The serial index number.



getStart
public Date getStart()(Code)
Returns the date/time that marks the start of the time period. This method returns a new Date instance every time it is called. The start date/time.
See Also:   RegularTimePeriod.getFirstMillisecond()



next
abstract public RegularTimePeriod next()(Code)
Returns the time period following this one, or null if some limit has been reached. The next time period (possibly null).



peg
abstract public void peg(Calendar calendar)(Code)
Recalculates the start date/time and end date/time for this time period relative to the supplied calendar (which incorporates a time zone).
Parameters:
  calendar - the calendar (null not permitted).
since:
   1.0.3



previous
abstract public RegularTimePeriod previous()(Code)
Returns the time period preceding this one, or null if some lower limit has been reached. The previous time period (possibly null).



toString
public String toString()(Code)
Returns a string representation of the time period. The string.



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.