Java Doc for DateTickUnit.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) 


java.lang.Object
   org.jfree.chart.axis.TickUnit
      org.jfree.chart.axis.DateTickUnit

DateTickUnit
public class DateTickUnit extends TickUnit implements Serializable(Code)
A tick unit for use by subclasses of DateAxis . Instances of this class are immutable.


Field Summary
final public static  intDAY
     A constant for days.
final public static  intHOUR
     A constant for hours.
final public static  intMILLISECOND
     A constant for milliseconds.
final public static  intMINUTE
     A constant for minutes.
final public static  intMONTH
     A constant for months.
final public static  intSECOND
     A constant for seconds.
final public static  intYEAR
     A constant for years.

Constructor Summary
public  DateTickUnit(int unit, int count)
     Creates a new date tick unit.
public  DateTickUnit(int unit, int count, DateFormat formatter)
     Creates a new date tick unit.
public  DateTickUnit(int unit, int count, int rollUnit, int rollCount, DateFormat formatter)
     Creates a new unit.

Method Summary
public  DateaddToDate(Date base)
     Calculates a new date by adding this unit to the base date.
Parameters:
  base - the base date.
public  DateaddToDate(Date base, TimeZone zone)
     Calculates a new date by adding this unit to the base date.
Parameters:
  base - the base date.
Parameters:
  zone - the time zone for the date calculation.
public  StringdateToString(Date date)
     Formats a date using the tick unit's formatter.
Parameters:
  date - the date.
public  booleanequals(Object obj)
     Tests this unit for equality with another object.
Parameters:
  obj - the object (null permitted).
public  intgetCalendarField()
     Returns a field code that can be used with the Calendar class.
public  intgetCount()
     Returns the unit count.
public  intgetRollCount()
     Returns the roll count.
public  intgetRollUnit()
     Returns the roll unit.
public  intgetUnit()
     Returns the date unit.
public  inthashCode()
     Returns a hash code for this object.
public  DaterollDate(Date base)
     Rolls the date forward by the amount specified by the roll unit and count.
Parameters:
  base - the base date.
public  DaterollDate(Date base, TimeZone zone)
     Rolls the date forward by the amount specified by the roll unit and count.
Parameters:
  base - the base date.
Parameters:
  zone - the time zone.
public  StringtoString()
     Returns a string representation of this instance, primarily used for debugging purposes.
public  StringvalueToString(double milliseconds)
     Formats a value.
Parameters:
  milliseconds - date in milliseconds since 01-01-1970.

Field Detail
DAY
final public static int DAY(Code)
A constant for days.



HOUR
final public static int HOUR(Code)
A constant for hours.



MILLISECOND
final public static int MILLISECOND(Code)
A constant for milliseconds.



MINUTE
final public static int MINUTE(Code)
A constant for minutes.



MONTH
final public static int MONTH(Code)
A constant for months.



SECOND
final public static int SECOND(Code)
A constant for seconds.



YEAR
final public static int YEAR(Code)
A constant for years.




Constructor Detail
DateTickUnit
public DateTickUnit(int unit, int count)(Code)
Creates a new date tick unit. The dates will be formatted using a SHORT format for the default locale.
Parameters:
  unit - the unit.
Parameters:
  count - the unit count.



DateTickUnit
public DateTickUnit(int unit, int count, DateFormat formatter)(Code)
Creates a new date tick unit. You can specify the units using one of the constants YEAR, MONTH, DAY, HOUR, MINUTE, SECOND or MILLISECOND. In addition, you can specify a unit count, and a date format.
Parameters:
  unit - the unit.
Parameters:
  count - the unit count.
Parameters:
  formatter - the date formatter (defaults to DateFormat.SHORT).



DateTickUnit
public DateTickUnit(int unit, int count, int rollUnit, int rollCount, DateFormat formatter)(Code)
Creates a new unit.
Parameters:
  unit - the unit.
Parameters:
  count - the count.
Parameters:
  rollUnit - the roll unit.
Parameters:
  rollCount - the roll count.
Parameters:
  formatter - the date formatter (defaults to DateFormat.SHORT).




Method Detail
addToDate
public Date addToDate(Date base)(Code)
Calculates a new date by adding this unit to the base date.
Parameters:
  base - the base date. A new date one unit after the base date.
See Also:   DateTickUnit.addToDate(Date,TimeZone)



addToDate
public Date addToDate(Date base, TimeZone zone)(Code)
Calculates a new date by adding this unit to the base date.
Parameters:
  base - the base date.
Parameters:
  zone - the time zone for the date calculation. A new date one unit after the base date.
since:
   1.0.6
See Also:   DateTickUnit.addToDate(Date)



dateToString
public String dateToString(Date date)(Code)
Formats a date using the tick unit's formatter.
Parameters:
  date - the date. The formatted date.



equals
public boolean equals(Object obj)(Code)
Tests this unit for equality with another object.
Parameters:
  obj - the object (null permitted). true or false.



getCalendarField
public int getCalendarField()(Code)
Returns a field code that can be used with the Calendar class. The field code.



getCount
public int getCount()(Code)
Returns the unit count. The unit count.



getRollCount
public int getRollCount()(Code)
Returns the roll count. The roll count.



getRollUnit
public int getRollUnit()(Code)
Returns the roll unit. This is the amount by which the tick advances if it is "hidden" when displayed on a segmented date axis. Typically the roll will be smaller than the regular tick unit (for example, a 7 day tick unit might use a 1 day roll). The roll unit.



getUnit
public int getUnit()(Code)
Returns the date unit. This will be one of the constants YEAR, MONTH, DAY, HOUR, MINUTE, SECOND or MILLISECOND, defined by this class. Note that these constants do NOT correspond to those defined in Java's Calendar class. The date unit.



hashCode
public int hashCode()(Code)
Returns a hash code for this object. A hash code.



rollDate
public Date rollDate(Date base)(Code)
Rolls the date forward by the amount specified by the roll unit and count.
Parameters:
  base - the base date. The rolled date.
See Also:   DateTickUnit.rollDate(Date,TimeZone)



rollDate
public Date rollDate(Date base, TimeZone zone)(Code)
Rolls the date forward by the amount specified by the roll unit and count.
Parameters:
  base - the base date.
Parameters:
  zone - the time zone. The rolled date.
since:
   1.0.6
See Also:   DateTickUnit.rollDate(Date)



toString
public String toString()(Code)
Returns a string representation of this instance, primarily used for debugging purposes. A string representation of this instance.



valueToString
public String valueToString(double milliseconds)(Code)
Formats a value.
Parameters:
  milliseconds - date in milliseconds since 01-01-1970. The formatted date.



Methods inherited from org.jfree.chart.axis.TickUnit
public int compareTo(Object object)(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
public double getSize()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public String valueToString(double value)(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.