Source Code Cross Referenced for TickIterator.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 Referenced  Class Diagram Java Document (Java Doc) 


01:        /*
02:         *    GeoTools - OpenSource mapping toolkit
03:         *    http://geotools.org
04:         *    (C) 2003-2006, Geotools Project Managment Committee (PMC)
05:         *    (C) 2000, Institut de Recherche pour le Développement
06:         *    (C) 1999, Pêches et Océans Canada
07:         *
08:         *    This library is free software; you can redistribute it and/or
09:         *    modify it under the terms of the GNU Lesser General Public
10:         *    License as published by the Free Software Foundation; either
11:         *    version 2.1 of the License, or (at your option) any later version.
12:         *
13:         *    This library is distributed in the hope that it will be useful,
14:         *    but WITHOUT ANY WARRANTY; without even the implied warranty of
15:         *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16:         *    Lesser General Public License for more details.
17:         */
18:        package org.geotools.axis;
19:
20:        // Miscellaneous
21:        import java.util.Locale;
22:
23:        /**
24:         * Provides the mechanism for {@link Graduation} objects to return the
25:         * values and labels of their ticks one tick at a time. This interface
26:         * returns tick values from some minimal value up to some maximal value,
27:         * using some increment value. Note that the increment value <strong>may
28:         * not be constant</strong>. For example, a graduation for the time axis
29:         * may use a slightly variable increment between differents months, since
30:         * all months doesn't have the same number of days.
31:         *
32:         * @since 2.0
33:         * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/extension/widgets-swing/src/main/java/org/geotools/axis/TickIterator.java $
34:         * @version $Id: TickIterator.java 20883 2006-08-07 13:48:09Z jgarnett $
35:         * @author Martin Desruisseaux
36:         */
37:        public interface TickIterator {
38:            /**
39:             * Tests if the iterator has more ticks.
40:             */
41:            public abstract boolean hasNext();
42:
43:            /**
44:             * Tests if the current tick is a major one.
45:             *
46:             * @return {@code true} if current tick is a major tick,
47:             *         or {@code false} if it is a minor tick.
48:             */
49:            public abstract boolean isMajorTick();
50:
51:            /**
52:             * Returns the position where to draw the current tick.  The position is scaled
53:             * from the graduation's minimum to maximum.    This is usually the same number
54:             * than {@link #currentValue}. The mean exception is for logarithmic graduation,
55:             * in which the tick position is not proportional to the tick value.
56:             */
57:            public abstract double currentPosition();
58:
59:            /**
60:             * Returns the value for current tick. The current tick may be major or minor.
61:             */
62:            public abstract double currentValue();
63:
64:            /**
65:             * Returns the label for current tick. This method is usually invoked
66:             * only for major ticks, but may be invoked for minor ticks as well.
67:             * This method returns {@code null} if it can't produces a label
68:             * for current tick.
69:             */
70:            public abstract String currentLabel();
71:
72:            /**
73:             * Moves the iterator to the next minor or major tick.
74:             */
75:            public abstract void next();
76:
77:            /**
78:             * Moves the iterator to the next major tick. This move
79:             * ignore any minor ticks between current position and
80:             * the next major tick.
81:             */
82:            public abstract void nextMajor();
83:
84:            /**
85:             * Reset the iterator on its first tick.
86:             * All other properties are left unchanged.
87:             */
88:            public abstract void rewind();
89:
90:            /**
91:             * Returns the locale used for formatting tick labels.
92:             */
93:            public abstract Locale getLocale();
94:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.