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

All known Subclasses:   org.geotools.axis.LogarithmicNumberGraduation,
NumberGraduation
public class NumberGraduation extends AbstractGraduation (Code)
A graduation using numbers on a linear axis.
since:
   2.0
version:
   $Id: NumberGraduation.java 23632 2006-12-29 22:13:51Z desruisseaux $
author:
   Martin Desruisseaux



Constructor Summary
public  NumberGraduation(Unit unit)
     Construct a graduation with the supplied units.

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()
    
public synchronized  doublegetRange()
     Returns the graduation's range.
public synchronized  TickIteratorgetTickIterator(RenderingHints hints, TickIterator reuse)
     Returns an iterator object that iterates along the graduation ticks and provides access to the graduation values.
 NumberIteratorgetTickIterator(TickIterator reuse, Locale locale)
     Constructs or reuses an iterator.
public  inthashCode()
     Returns a hash value for this graduation.
public synchronized  booleansetMaximum(double value)
     Set the maximum value for this graduation.
public synchronized  booleansetMinimum(double value)
     Set the minimum value for this graduation.
public  voidsetRange(double min, double max, Unit unit)
     Sets the graduation's minimum, maximum and units.
public synchronized  voidsetUnit(Unit newUnit)
     Changes the graduation's units.


Constructor Detail
NumberGraduation
public NumberGraduation(Unit unit)(Code)
Construct a graduation with the supplied units.
Parameters:
  unit - The axis's units, or null if unknow.




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 adjust automatically the number of fraction digits.



getMaximum
public double getMaximum()(Code)
Returns the maximal value for this graduation. The maximal value in NumberGraduation.getUnit units.
See Also:   NumberGraduation.setMaximum(double)
See Also:   NumberGraduation.getMinimum
See Also:   NumberGraduation.getRange



getMinimum
public double getMinimum()(Code)
Returns the minimal value for this graduation The minimal value in NumberGraduation.getUnit units.
See Also:   NumberGraduation.setMinimum(double)
See Also:   NumberGraduation.getMaximum
See Also:   NumberGraduation.getRange



getRange
public synchronized double getRange()(Code)
Returns the graduation's range. This is equivalents to computing NumberGraduation.getMaximum - NumberGraduation.getMinimum .



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 NumberGraduation.VISUAL_AXIS_LENGTH and NumberGraduation.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. Anon-null object may help to reduce the number of object garbage-collected whenrendering the axis. A iterator to use for iterating through the graduation. Thisiterator may or may not be the reuse object.



getTickIterator
NumberIterator getTickIterator(TickIterator reuse, Locale locale)(Code)
Constructs or reuses an iterator. This method is overridden by LogarithmicNumberGraduation .



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



setMaximum
public synchronized boolean setMaximum(double value) throws IllegalArgumentException(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:
  value - The new maximum in NumberGraduation.getUnit units. 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.
throws:
  IllegalArgumentException - If value is NaN ou infinite.
See Also:   NumberGraduation.getMaximum
See Also:   NumberGraduation.setMinimum(double)



setMinimum
public synchronized boolean setMinimum(double value) throws IllegalArgumentException(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:
  value - The new minimum in NumberGraduation.getUnit units. true if the state of this graduation changedas a result of this call, or false if the newvalue is identical to the previous one.
throws:
  IllegalArgumentException - Si value is NaN ou infinite.
See Also:   NumberGraduation.getMinimum
See Also:   NumberGraduation.setMaximum(double)



setRange
public void setRange(double min, double max, Unit unit)(Code)
Sets the graduation's minimum, maximum and units. This method will fire property change events for "minimum" , "maximum" and "unit" property names.



setUnit
public synchronized void setUnit(Unit newUnit) 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:
  newUnit - The new units, or null if unknow.If null, minimum and maximum values are not converted.
throws:
  ConversionException - if units are not convertible.



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.