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

All known Subclasses:   org.geotools.axis.NumberGraduation,  org.geotools.axis.DateGraduation,
AbstractGraduation
abstract public class AbstractGraduation implements Graduation,Serializable(Code)
Base class for graduation.
since:
   2.0
version:
   $Id: AbstractGraduation.java 27576 2007-10-22 13:54:24Z desruisseaux $
author:
   Martin Desruisseaux


Field Summary
final protected  PropertyChangeSupportlistenerList
     A list of event listeners for this component.

Constructor Summary
public  AbstractGraduation(Unit unit)
     Constructs a graduation with the supplied units.

Method Summary
public  voidaddPropertyChangeListener(PropertyChangeListener listener)
     Adds a PropertyChangeListener to the listener list.
static  voidensureFinite(String name, double n)
     Vérifie que le nombre spécifié est réel.
static  voidensureFinite(String name, float n)
     Vérifie que le nombre spécifié est réel.
static  voidensureNonNull(String name, double n)
     Vérifie que le nombre spécifié est non-nul.
public  booleanequals(Object object)
     Compares this graduation with the specified object for equality.
public  LocalegetLocale()
     Returns the locale to use for formatting labels.
 StringgetSymbol()
     Returns a string representation of axis's units, or null if there is none.
public synchronized  StringgetTitle(boolean includeSymbol)
     Returns the axis title.
public  UnitgetUnit()
     Returns the graduation's units, or null if unknow.
static  floatgetVisualAxisLength(RenderingHints hints)
     Retourne la longueur de l'axe, en pixels ou en points (1/72 de pouce).
static  floatgetVisualTickSpacing(RenderingHints hints)
     Retourne l'espace approximatif (en pixels ou en points) à laisser entre les graduations principales.
public  inthashCode()
     Returns a hash value for this graduation.
public  voidremovePropertyChangeListener(PropertyChangeListener listener)
     Removes a PropertyChangeListener from the listener list.
public synchronized  voidsetLocale(Locale locale)
     Sets the locale to use for formatting labels.
abstract public  booleansetMaximum(double value)
     Sets the maximum value for this graduation.
abstract public  booleansetMinimum(double value)
     Sets the minimum value for this graduation.
public  voidsetTitle(String title)
     Sets the axis title, not including unit symbol.
public  voidsetUnit(Unit unit)
     Changes the graduation's units.

Field Detail
listenerList
final protected PropertyChangeSupport listenerList(Code)
A list of event listeners for this component.




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




Method Detail
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)(Code)
Adds a PropertyChangeListener to the listener list. The listener is registered for all properties. A PropertyChangeEvent will get fired in response to setting a property, such as AbstractGraduation.setTitle or AbstractGraduation.setLocale .



ensureFinite
static void ensureFinite(String name, double n) throws IllegalArgumentException(Code)
Vérifie que le nombre spécifié est réel. S'il est NaN ou infini, une exception sera lancée.
Parameters:
  name - Nom de l'argument.
Parameters:
  n - Nombre à vérifier.
throws:
  IllegalArgumentException - Si n est NaN ou infini.



ensureFinite
static void ensureFinite(String name, float n) throws IllegalArgumentException(Code)
Vérifie que le nombre spécifié est réel. S'il est NaN ou infini, une exception sera lancée.
Parameters:
  name - Nom de l'argument.
Parameters:
  n - Nombre à vérifier.
throws:
  IllegalArgumentException - Si n est NaN ou infini.



ensureNonNull
static void ensureNonNull(String name, double n) throws IllegalArgumentException(Code)
Vérifie que le nombre spécifié est non-nul. S'il est 0, NaN ou infini, une exception sera lancée.
Parameters:
  name - Nom de l'argument.
Parameters:
  n - Nombre à vérifier.
throws:
  IllegalArgumentException - Si n est NaN ou infini.



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



getLocale
public Locale getLocale()(Code)
Returns the locale to use for formatting labels.



getSymbol
String getSymbol()(Code)
Returns a string representation of axis's units, or null if there is none. The default implementation returns the string representation of AbstractGraduation.getUnit .



getTitle
public synchronized String getTitle(boolean includeSymbol)(Code)
Returns the axis title. If includeUnits is true , then the returned string will includes units as in "Temperature (°C)". The exact formatting is local-dependent.
Parameters:
  includeSymbol - true to format unit symbol after the name. The graduation name (also to be use as axis title).



getUnit
public Unit getUnit()(Code)
Returns the graduation's units, or null if unknow.



getVisualAxisLength
static float getVisualAxisLength(RenderingHints hints)(Code)
Retourne la longueur de l'axe, en pixels ou en points (1/72 de pouce).



getVisualTickSpacing
static float getVisualTickSpacing(RenderingHints hints)(Code)
Retourne l'espace approximatif (en pixels ou en points) à laisser entre les graduations principales. L'espace réel entre les graduations peut être légèrement différent, par exemple pour avoir des étiquettes qui correspondent à des valeurs arrondies.



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



removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener)(Code)
Removes a PropertyChangeListener from the listener list.



setLocale
public synchronized void setLocale(Locale locale)(Code)
Sets the locale to use for formatting labels. This will fire a property change event with the "locale" property name.



setMaximum
abstract public boolean setMaximum(double value) throws IllegalArgumentException(Code)
Sets 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 AbstractGraduation.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:   AbstractGraduation.getMaximum
See Also:   AbstractGraduation.setMinimum(double)



setMinimum
abstract public boolean setMinimum(double value) throws IllegalArgumentException(Code)
Sets 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 AbstractGraduation.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:   AbstractGraduation.getMinimum
See Also:   AbstractGraduation.setMaximum(double)



setTitle
public void setTitle(String title)(Code)
Sets the axis title, not including unit symbol. This method will fire a property change event with the "title" property name.
Parameters:
  title - New axis title, or null to remove any previous setting.



setUnit
public void setUnit(Unit unit) throws ConversionException(Code)
Changes the graduation's units. Subclasses will automatically convert minimum and maximum values from the old units to the new one. This method fires a property change event with the "unit" property name.
Parameters:
  unit - The new units, or null if unknow. If null, minimum and maximum valuesare not converted.
throws:
  ConversionException - if units are not convertible, or if thespecified units is illegal for this graduation.



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.