Source Code Cross Referenced for SymbolizerContent.java in  » GIS » udig-1.1 » net » refractions » udig » style » sld » internal » 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 » udig 1.1 » net.refractions.udig.style.sld.internal 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * uDig - User Friendly Desktop Internet GIS client http://udig.refractions.net (C) 2004,
003:         * Refractions Research Inc. This library is free software; you can redistribute it and/or modify it
004:         * under the terms of the GNU Lesser General Public License as published by the Free Software
005:         * Foundation; version 2.1 of the License. This library is distributed in the hope that it will be
006:         * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
007:         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
008:         */
009:        package net.refractions.udig.style.sld.internal;
010:
011:        import java.awt.Color;
012:
013:        import org.eclipse.swt.SWT;
014:        import org.eclipse.ui.IMemento;
015:        import org.geotools.styling.Style;
016:        import org.geotools.styling.StyleBuilder;
017:        import org.geotools.styling.Symbolizer;
018:
019:        /**
020:         * Seems to be a mess of defaults?
021:         * 
022:         * @author jgarnett
023:         * @since 0.6.0
024:         */
025:        public class SymbolizerContent {
026:            //   
027:            /** <code>ID</code> field */
028:            public static final String ID = "net.refractions.udig.style.sld.symbolizer"; //$NON-NLS-1$
029:
030:            static final String TAG_TYPE = "featureType"; //$NON-NLS-1$
031:            static final String TAG_LABEL = "text_label"; //$NON-NLS-1$
032:            static final String TAG_FONT = "text_font"; //$NON-NLS-1$
033:            static final String TAG_HALO = "text_halo"; //$NON-NLS-1$
034:
035:            /** <code>DEFAULT_LINE_COLOR</code> field */
036:            public static final Color DEFAULT_LINE_COLOR = Color.BLUE;
037:            /** <code>DEFAULT_LINE_WIDTH</code> field */
038:            public static final int DEFAULT_LINE_WIDTH = 1;
039:            /** <code>DEFAULT_LINE_OPACITY</code> field */
040:            public static final float DEFAULT_LINE_OPACITY = 1.0f;
041:            /** <code>DEFAULT_LINE_LINEJOIN</code> field */
042:            public static final String DEFAULT_LINE_LINEJOIN = "mitre"; //$NON-NLS-1$
043:            /** <code>DEFAULT_LINE_LINECAP</code> field */
044:            public static final String DEFAULT_LINE_LINECAP = "butt"; //$NON-NLS-1$
045:
046:            /** <code>DEFAULT_FILL_COLOR</code> field */
047:            public static final Color DEFAULT_FILL_COLOR = Color.GREEN;
048:            /** <code>DEFAULT_BORDER_COLOR</code> field */
049:            public static final Color DEFAULT_BORDER_COLOR = Color.BLACK;
050:            /** <code>DEFAULT_BORDER_WIDTH</code> field */
051:            public static final int DEFAULT_BORDER_WIDTH = 1;
052:            /** <code>DEFAULT_POLY_BORDER_OPACITY</code> field */
053:            public static final float DEFAULT_POLY_BORDER_OPACITY = 1.0f;
054:            /** <code>DEFAULT_POLY_FILL_OPACITY</code> field */
055:            public static final float DEFAULT_POLY_FILL_OPACITY = 1.0f;
056:
057:            /** <code>DEFAULT_MARKER_COLOR</code> field */
058:            public static final Color DEFAULT_MARKER_COLOR = Color.RED;
059:            /** <code>DEFAULT_MARKER_WIDTH</code> field */
060:            public static final int DEFAULT_MARKER_WIDTH = 1;
061:            /** <code>DEFAULT_MARKER_TYPE</code> field */
062:            public static final String DEFAULT_MARKER_TYPE = StyleBuilder.MARK_CIRCLE;
063:            /** <code>DEFAULT_MARKER_BORDER_OPACITY</code> field */
064:            public static final float DEFAULT_MARKER_BORDER_OPACITY = 1.0f;
065:            /** <code>DEFAULT_MARKER_OPACITY</code> field */
066:            public static final float DEFAULT_MARKER_OPACITY = 1.0f;
067:
068:            /** <code>DEFAULT_OPACITY</code> field */
069:            public static final float DEFAULT_OPACITY = 1.0f;
070:
071:            /** <code>DEFAULT_FONT_COLOR</code> field */
072:            public static final Color DEFAULT_FONT_COLOR = Color.BLACK;
073:            /** <code>DEFAULT_FONT_FACE</code> field */
074:            public static final String DEFAULT_FONT_FACE = "Arial"; //$NON-NLS-1$
075:            /** <code>DEFAULT_FONT_SIZE</code> field */
076:            public static final int DEFAULT_FONT_SIZE = 10;
077:            /** <code>DEFAULT_FONT_STYLE</code> field */
078:            public static final int DEFAULT_FONT_STYLE = SWT.NORMAL;
079:            /** <code>DEFAULT_HALO_COLOR</code> field */
080:            public static final Color DEFAULT_HALO_COLOR = Color.GREEN;
081:            /** <code>DEFAULT_HALO_OPACITY</code> field */
082:            public static final float DEFAULT_HALO_OPACITY = 1.0f;
083:            /** <code>DEFAULT_HALO_WIDTH</code> field */
084:            public static final float DEFAULT_HALO_WIDTH = 1.0f;
085:
086:            Class symbolizer;
087:
088:            <T extends Symbolizer> SymbolizerContent(Class<T> symbolizer) {
089:                this .symbolizer = symbolizer;
090:            }
091:
092:            /**
093:             * Can we save this symbolizer?
094:             * 
095:             * @param sym
096:             * @return true if this TYPE manages the provided symbolizer
097:             */
098:            final boolean isManaged(Symbolizer sym) {
099:                return symbolizer.isInstance(sym);
100:            }
101:
102:            /**
103:             * Save provided symbolizer to the momento?
104:             * <p>
105:             * This delegates the actual saving to various content managers like SldPolygonContentManager.
106:             * </p>
107:             * 
108:             * @param momento
109:             * @param sym
110:             */
111:            void save(IMemento momento, Symbolizer sym) {
112:                // momento.putInteger(TAG_TYPE, this.ordinal());
113:            }
114:
115:            /**
116:             * Load previously saved symbolizer from a momento?
117:             * <p>
118:             * This delegates the actual load to various content managers like SldPolygonContentManager.
119:             * </p>
120:             * 
121:             * @param momento
122:             * @return Symbolizer
123:             */
124:            public Symbolizer load(IMemento momento) {
125:                return null; // could not handle
126:            }
127:
128:            /**
129:             * Create the default Style (w/ Symbolizer for this thing)
130:             * 
131:             * @return a style with some defaults set
132:             */
133:            public Style defaultStyle() {
134:                return null;
135:            }
136:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.