Source Code Cross Referenced for FeatureTypeStyle.java in  » GIS » GeoTools-2.4.1 » org » geotools » styling » 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.styling 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         *    GeoTools - OpenSource mapping toolkit
003:         *    http://geotools.org
004:         *    (C) 2002-2006, GeoTools Project Managment Committee (PMC)
005:         *
006:         *    This library is free software; you can redistribute it and/or
007:         *    modify it under the terms of the GNU Lesser General Public
008:         *    License as published by the Free Software Foundation;
009:         *    version 2.1 of the License.
010:         *
011:         *    This library is distributed in the hope that it will be useful,
012:         *    but WITHOUT ANY WARRANTY; without even the implied warranty of
013:         *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
014:         *    Lesser General Public License for more details.
015:         */
016:        package org.geotools.styling;
017:
018:        import java.util.List;
019:        import org.geotools.event.GTComponent;
020:
021:        /**
022:         * How to style a feature type.  This is introduced as a convenient package
023:         * that can be used independently for feature types, for example in
024:         * GML Default Styling.  The "layer" concept is discarded inside of this
025:         * element and all processing is relative to feature types.
026:         * The FeatureTypeName is allowed to be optional, but only one feature
027:         * type may be in context and it must match the syntax and semantics of all
028:         * attribute references inside of the FeatureTypeStyle.
029:         * <p>
030:         * The details of this object are taken from the
031:         * <a href="https://portal.opengeospatial.org/files/?artifact_id=1188">
032:         * OGC Styled-Layer Descriptor Report (OGC 02-070) version 1.0.0.</a>:
033:         * <pre><code>
034:         * &lt;xsd:element name="FeatureTypeStyle"&gt;
035:         * &lt;xsd:annotation&gt;
036:         *   &lt;xsd:documentation&gt;
037:         *     A FeatureTypeStyle contains styling information specific to one
038:         *    feature type.  This is the SLD level that separates the 'layer'
039:         *     handling from the 'feature' handling.
040:         *   &lt;/xsd:documentation&gt;
041:         *   &lt;/xsd:annotation&gt;
042:         *   &lt;xsd:complexType&gt;
043:         *     &lt;xsd:sequence&gt;
044:         *       &lt;xsd:element ref="sld:Name" minOccurs="0"/&gt;
045:         *       &lt;xsd:element ref="sld:Title" minOccurs="0"/&gt;
046:         *       &lt;xsd:element ref="sld:Abstract" minOccurs="0"/&gt;
047:         *       &lt;xsd:element ref="sld:FeatureTypeName" minOccurs="0"/&gt;
048:         *       &lt;xsd:element ref="sld:SemanticTypeIdentifier" minOccurs="0"
049:         *                   maxOccurs="unbounded"/&gt;
050:         *       &lt;xsd:element ref="sld:Rule" maxOccurs="unbounded"/&gt;
051:         *     &lt;/xsd:sequence&gt;
052:         *   &lt;/xsd:complexType&gt;
053:         * &lt;/xsd:element&gt;
054:         * </code></pre>
055:         *
056:         * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/api/src/main/java/org/geotools/styling/FeatureTypeStyle.java $
057:         * @version $Id: FeatureTypeStyle.java 22294 2006-10-20 00:55:40Z desruisseaux $
058:         * @author James Macgill, CCG
059:         */
060:        public interface FeatureTypeStyle extends GTComponent {
061:            public String getName();
062:
063:            void setName(String name);
064:
065:            public String getTitle();
066:
067:            void setTitle(String title);
068:
069:            public String getAbstract();
070:
071:            void setAbstract(String abstractStr);
072:
073:            /**
074:             * Only features with the type name returned by this method should
075:             * be styled by this feature type styler.
076:             * @return The name of types that this styler applies to
077:             */
078:            String getFeatureTypeName();
079:
080:            /**
081:             * Sets the type name of the features that this styler should be
082:             * applied to.
083:             * @task REVISIT: should a set method be declared in this interface at all?
084:             * @param name The TypeName of the features to be styled by this instance.
085:             */
086:            void setFeatureTypeName(String name);
087:
088:            /**
089:             * The SemanticTypeIdentifiers is experimental and is intended to be used
090:             * to identify, using a community-controlled name(s), what the style is
091:             * suitable to be used for.
092:             * For example, a single style may be suitable to use with many
093:             * different feature types.  The syntax of the SemanticTypeIdentifiers
094:             * string is undefined, but the strings "generic:line_string",
095:             * "generic:polygon", "generic:point", "generic:text",
096:             * "generic:raster", and "generic:any" are reserved to indicate
097:             * that a FeatureTypeStyle may be used with any feature type
098:             * with the corresponding default geometry type (i.e., no feature
099:             * properties are referenced in the feature type style).
100:             *
101:             *
102:             * @return An array of strings representing systematic types which
103:             *         could be styled by this instance.
104:             **/
105:            String[] getSemanticTypeIdentifiers();
106:
107:            /**
108:             * The SemanticTypeIdentifiers is experimental and is intended to be used
109:             * to identify, using a community-controlled name(s), what the style is
110:             * suitable to be used for.
111:             * For example, a single style may be suitable to use with many
112:             * different feature types.  The syntax of the SemanticTypeIdentifiers
113:             * string is undefined, but the strings "generic:line_string",
114:             * "generic:polygon", "generic:point", "generic:text",
115:             * "generic:raster", and "generic:any" are reserved to indicate
116:             * that a FeatureTypeStyle may be used with any feature type
117:             * with the corresponding default geometry type (i.e., no feature
118:             * properties are referenced in the feature type style).
119:             *
120:             *
121:             * @param types An array of strings representing systematic types which
122:             *         could be styled by this instance.
123:             **/
124:            void setSemanticTypeIdentifiers(String[] types);
125:
126:            /**
127:             * Rules govern the appearance of any given feature to be styled by
128:             * this styler.  Each rule contains conditions based on scale and
129:             * feature attribute values.  In addition, rules contain the symbolizers
130:             * which should be applied when the rule holds true.
131:             *
132:             * @version SLD 1.0
133:             * @version SLD 1.0.20 TODO: GeoAPI getRules(): List<Rule>
134:             * @return The full set of rules contained in this styler.
135:             */
136:            Rule[] getRules();
137:
138:            /**
139:             * Rules govern the appearance of any given feature to be styled by
140:             * this styler.  Each rule contains conditions based on scale and
141:             * feature attribute values.  In addition, rules contain the symbolizers
142:             * which should be applied when the rule holds true.
143:             *
144:             * @param rules The set of rules to be set for this styler.
145:             */
146:            void setRules(Rule[] rules);
147:
148:            void addRule(Rule rule);
149:
150:            /**
151:             * Rules govern the appearance of any given feature to be styled by
152:             * this styler.
153:             * <p>
154:             * This is *the* list being used to mange the rules!
155:             * </p>
156:             * @since GeoTools 2.2.M3, GeoAPI 2.0
157:             */
158:            List rules();
159:
160:            void accept(StyleVisitor visitor);
161:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.