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


org.geotools.axis.Graduation

All known Subclasses:   org.geotools.axis.AbstractGraduation,
Graduation
public interface Graduation (Code)
An axis's graduation. A Graduation object encompass minimal and maximal values for an axis in arbitrary units, and allow access to tick locations and labels through a TickIterator object.

Different implementations may compute tick locations in different ways. For example a graduation for dates is handled in a different way than a graduation for numbers.
since:
   2.0
version:
   $Id: Graduation.java 27576 2007-10-22 13:54:24Z desruisseaux $
author:
   Martin Desruisseaux



Field Summary
 RenderingHints.KeyAXIS_TITLE_FONT
     The font to use for rendering the title.
 RenderingHints.KeyTICK_LABEL_FONT
     The font to use for rendering tick labels.
 RenderingHints.KeyVISUAL_AXIS_LENGTH
     Rendering hint for the axis length, in pixels or points (1/72 of inch). Values for this key must be Number objects.
 RenderingHints.KeyVISUAL_TICK_SPACING
     Rendering hint for the preferred spacing between ticks, in pixels or points (1/72 of inch).


Method Summary
 voidaddPropertyChangeListener(PropertyChangeListener listener)
     Adds a PropertyChangeListener to the listener list.
 FormatgetFormat()
     Returns the format to use for formatting labels.
 LocalegetLocale()
     Returns the locale to use for formatting title and labels.
 doublegetMaximum()
     Returns the maximal value for this graduation.
 doublegetMinimum()
     Returns the minimal value for this graduation.
 doublegetRange()
     Returns the graduation's range.
 TickIteratorgetTickIterator(RenderingHints hints, TickIterator reuse)
     Returns an iterator object that iterates along the graduation ticks and provides access to the graduation values.
 StringgetTitle(boolean includeSymbol)
     Returns the axis title.
 UnitgetUnit()
     Returns the graduation's units, or null if unknow.
 voidremovePropertyChangeListener(PropertyChangeListener listener)
     Removes a PropertyChangeListener from the listener list.

Field Detail
AXIS_TITLE_FONT
RenderingHints.Key AXIS_TITLE_FONT(Code)
The font to use for rendering the title. Value for this key must be a Font object. If this hint is not provided, a default font will be used.
See Also:   Axis2D.paint



TICK_LABEL_FONT
RenderingHints.Key TICK_LABEL_FONT(Code)
The font to use for rendering tick labels. Value for this key must be a Font object. If this hint is not provided, a default font will be used.
See Also:   Axis2D.paint



VISUAL_AXIS_LENGTH
RenderingHints.Key VISUAL_AXIS_LENGTH(Code)
Rendering hint for the axis length, in pixels or points (1/72 of inch). Values for this key must be Number objects. This hint is used together with Graduation.VISUAL_TICK_SPACING during TickIterator creation in order to compute a tick increment value.
See Also:   Graduation.getTickIterator



VISUAL_TICK_SPACING
RenderingHints.Key VISUAL_TICK_SPACING(Code)
Rendering hint for the preferred spacing between ticks, in pixels or points (1/72 of inch). Values for this key must be Number objects. This hint is used together with Graduation.VISUAL_AXIS_LENGTH during TickIterator creation in order to compute a tick increment value. The tick spacing really used may be slightly different, since TickIterator may choose a rounded value.
See Also:   Graduation.getTickIterator





Method Detail
addPropertyChangeListener
void addPropertyChangeListener(PropertyChangeListener listener)(Code)
Adds a PropertyChangeListener to the listener list. The listener is registered for all properties, such as "label" and "locale".



getFormat
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.



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



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



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



getRange
double getRange()(Code)
Returns the graduation's range. This is equivalents to computing Graduation.getMaximum - Graduation.getMinimum . However, some implementation may optimize this computation in order to avoid rounding errors.



getTickIterator
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 Graduation.VISUAL_AXIS_LENGTH and Graduation.VISUAL_TICK_SPACING keys.
Parameters:
  hints - Rendering hints for the axis, 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.



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



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



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



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.