Java Doc for DateGraduation.java in  » GIS » GeoTools-2.4.1 » org » geotools » 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 » GIS » GeoTools 2.4.1 » org.geotools.axis 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.geotools.axis.AbstractGraduation
      org.geotools.axis.DateGraduation

DateGraduation
public class DateGraduation extends AbstractGraduation (Code)
A graduation using dates on a linear axis.
since:
   2.0
version:
   $Id: DateGraduation.java 20883 2006-08-07 13:48:09Z jgarnett $
author:
   Martin Desruisseaux


Field Summary
final public static  UnitMILLISECOND
     The unit for millisecond.

Constructor Summary
public  DateGraduation(TimeZone timezone)
     Construct a graduation with the supplied time zone.
public  DateGraduation(TimeZone timezone, Unit unit)
     Construct a graduation with the supplied time zone and unit.
Parameters:
  timezone - The timezone.
Parameters:
  unit - The unit.

Method Summary
public  booleanequals(Object object)
     Compares this graduation with the specified object for equality.
public  FormatgetFormat()
     Returns the format to use for formatting labels.
public  doublegetMaximum()
     Returns the maximal value for this graduation.
public  doublegetMinimum()
     Returns the minimal value for this graduation.
public synchronized  doublegetRange()
     Returns the graduation's range.
 StringgetSymbol()
     Returns a string representation of the time zone for this graduation.
public synchronized  TickIteratorgetTickIterator(RenderingHints hints, TickIterator reuse)
     Returns an iterator object that iterates along the graduation ticks and provides access to the graduation values.
public  TimeZonegetTimeZone()
     Returns the timezone for this graduation.
public  inthashCode()
     Returns a hash value for this graduation.
public synchronized  booleansetMaximum(Date time)
     Set the maximum value for this graduation.
final public synchronized  booleansetMaximum(double value)
     Set the maximum value as a real number.
public synchronized  booleansetMinimum(Date time)
     Set the minimum value for this graduation.
final public synchronized  booleansetMinimum(double value)
     Set the minimum value as a real number.
public  voidsetTimeZone(TimeZone timezone)
     Sets the time zone for this graduation.
public  voidsetUnit(Unit unit)
     Changes the graduation's units.

Field Detail
MILLISECOND
final public static Unit MILLISECOND(Code)
The unit for millisecond.




Constructor Detail
DateGraduation
public DateGraduation(TimeZone timezone)(Code)
Construct a graduation with the supplied time zone. Unit default to .
Parameters:
  timezone - The timezone.



DateGraduation
public DateGraduation(TimeZone timezone, Unit unit) throws ConversionException(Code)
Construct a graduation with the supplied time zone and unit.
Parameters:
  timezone - The timezone.
Parameters:
  unit - The unit. Must be compatible with .
throws:
  ConversionException - if the supplied unit is not a time unit.




Method Detail
equals
public boolean equals(Object object)(Code)
Compares this graduation with the specified object for equality. This method do not compare registered listeners.



getFormat
public Format getFormat()(Code)
Returns the format to use for formatting labels. The format really used by TickIterator.currentLabel may not be the same. For example, some iterators may choose to show or hide hours, minutes and seconds.



getMaximum
public double getMaximum()(Code)
Returns the maximal value for this graduation. The value is in units of DateGraduation.getUnit . By default, it is the number of millisecondes ellapsed since January 1st, 1970 at 00:00 UTC.
See Also:   DateGraduation.setMaximum(double)
See Also:   DateGraduation.getMinimum
See Also:   DateGraduation.getRange



getMinimum
public double getMinimum()(Code)
Returns the minimal value for this graduation. The value is in units of DateGraduation.getUnit . By default, it is the number of millisecondes ellapsed since January 1st, 1970 at 00:00 UTC.
See Also:   DateGraduation.setMinimum(double)
See Also:   DateGraduation.getMaximum
See Also:   DateGraduation.getRange



getRange
public synchronized double getRange()(Code)
Returns the graduation's range. This is equivalents to computing DateGraduation.getMaximum - DateGraduation.getMinimum , but using integer arithmetic.



getSymbol
String getSymbol()(Code)
Returns a string representation of the time zone for this graduation.



getTickIterator
public synchronized TickIterator getTickIterator(RenderingHints hints, TickIterator reuse)(Code)
Returns an iterator object that iterates along the graduation ticks and provides access to the graduation values. If an optional RenderingHints is specified, tick locations are adjusted according values for DateGraduation.VISUAL_AXIS_LENGTH and DateGraduation.VISUAL_TICK_SPACING keys.
Parameters:
  hints - Rendering hints, or null for the default hints.
Parameters:
  reuse - An iterator to reuse if possible, or null to create a new one. A non-null object may help to reduce thenumber of object garbage-collected when rendering the axis. A iterator to use for iterating through the graduation. Thisiterator may or may not be the reuse object.



getTimeZone
public TimeZone getTimeZone()(Code)
Returns the timezone for this graduation.



hashCode
public int hashCode()(Code)
Returns a hash value for this graduation.



setMaximum
public synchronized boolean setMaximum(Date time)(Code)
Set the maximum value for this graduation. If the new maximum is less than the current minimum, then the minimum will also be set to a value less than or equals to the maximum.
Parameters:
  time - The new maximum. true if the state of this graduation changed as a result of this call, or false if the new value is identical to the previous one.
See Also:   DateGraduation.setMinimum(Date)



setMaximum
final public synchronized boolean setMaximum(double value)(Code)
Set the maximum value as a real number. This method converts the value to and invokes DateGraduation.setMaximum(Date) .



setMinimum
public synchronized boolean setMinimum(Date time)(Code)
Set the minimum value for this graduation. If the new minimum is greater than the current maximum, then the maximum will also be set to a value greater than or equals to the minimum.
Parameters:
  time - The new minimum. true if the state of this graduation changed as a result of this call, or false if the new value is identical to the previous one.
See Also:   DateGraduation.setMaximum(Date)



setMinimum
final public synchronized boolean setMinimum(double value)(Code)
Set the minimum value as a real number. This method converts the value to and invokes DateGraduation.setMinimum(Date) .



setTimeZone
public void setTimeZone(TimeZone timezone)(Code)
Sets the time zone for this graduation. This affect only the way labels are displayed.



setUnit
public void setUnit(Unit unit) throws ConversionException(Code)
Changes the graduation's units. This method will automatically convert minimum and maximum values from the old units to the new one.
Parameters:
  unit - The new units, or null if unknow. If null, minimum and maximum valuesare not converted.
throws:
  ConversionException - if the specified unit is not a time unit.



Fields inherited from org.geotools.axis.AbstractGraduation
final protected PropertyChangeSupport listenerList(Code)(Java Doc)

Methods inherited from org.geotools.axis.AbstractGraduation
public void addPropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc)
static void ensureFinite(String name, double n) throws IllegalArgumentException(Code)(Java Doc)
static void ensureFinite(String name, float n) throws IllegalArgumentException(Code)(Java Doc)
static void ensureNonNull(String name, double n) throws IllegalArgumentException(Code)(Java Doc)
public boolean equals(Object object)(Code)(Java Doc)
public Locale getLocale()(Code)(Java Doc)
String getSymbol()(Code)(Java Doc)
public synchronized String getTitle(boolean includeSymbol)(Code)(Java Doc)
public Unit getUnit()(Code)(Java Doc)
static float getVisualAxisLength(RenderingHints hints)(Code)(Java Doc)
static float getVisualTickSpacing(RenderingHints hints)(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public void removePropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc)
public synchronized void setLocale(Locale locale)(Code)(Java Doc)
abstract public boolean setMaximum(double value) throws IllegalArgumentException(Code)(Java Doc)
abstract public boolean setMinimum(double value) throws IllegalArgumentException(Code)(Java Doc)
public void setTitle(String title)(Code)(Java Doc)
public void setUnit(Unit unit) throws ConversionException(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.