Statistics
| Revision:

svn-gvsig-desktop / branches / v02_desarrollo / libraries / sld / temp / org.gvsig.sldsupport.lib.api / oldcode / symbolizer / ISLDSymbolizer.java @ 40781

History | View | Annotate | Download (3.69 KB)

1
/* gvSIG. Sistema de Informaci�n Geogr�fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
4
 *
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License
7
 * as published by the Free Software Foundation; either version 2
8
 * of the License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
18
 *
19
 * For more information, contact:
20
 *
21
 *  Generalitat Valenciana
22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib��ez, 50
24
 *   46010 VALENCIA
25
 *   SPAIN
26
 *
27
 *      +34 963862235
28
 *   gvsig@gva.es
29
 *      www.gvsig.gva.es
30
 *
31
 *    or
32
 *
33
 *   IVER T.I. S.A
34
 *   Salamanca 50
35
 *   46005 Valencia
36
 *   Spain
37
 *
38
 *   +34 963163400
39
 *   dac@iver.es
40
 */
41
package org.gvsig.sldsupport.symbolizer;
42

    
43
import java.io.IOException;
44

    
45
import org.gvsig.sldsupport.exception.SLDReadException;
46
import org.xmlpull.v1.XmlPullParser;
47
import org.xmlpull.v1.XmlPullParserException;
48

    
49
/**
50
 * Implements an interface for SLD symbolizers in order to define methods
51
 * for them.<p>
52
 * Embedded inside of Rules (<code>SLDRule</code>), which group conditions for 
53
 * styling features, are Symbolizers. A Symbolizer describes how a feature is 
54
 * to appears on a map. The symbolizer describes not just the shape that should 
55
 * appear but also such graphical properties as color and opacity. A symbol is 
56
 * obtained by specifying one of a small number of different types of symbolizer
57
 * and then supplying parameters to override its default behaviour.<p>
58
 * For the moment three types of symbolizers are defined for gvSIG:<p>
59
 * -Line ->  (<code>SLDLineSymbolizer</code>).<p>
60
 * -Point -> (<code>SLDPointSymbolizer</code>).<p>
61
 * -Polygon -> (<code>SLDPolygonSymbolizer</code>).<p>  
62
 * 
63
 * @see SLDLineSymbolizer
64
 * @see SLDPointSymbolizer
65
 * @see SLDPolygonSymbolizer
66
 * @see http://portal.opengeospatial.org/files/?artifact_id=1188 
67
 * @author pepe vidal salvador - jose.vidal.salvador@iver.es
68
 */
69
public interface ISLDSymbolizer {
70

    
71
        public void parse(XmlPullParser parser)
72
                        throws IOException, XmlPullParserException, SLDReadException;
73
        /**
74
         * Returns the shape type of the SLD symbolizer
75
         * 
76
         * @return the shape type of the symbolizer
77
         */
78
        int getShapeType();
79
        /**
80
         * Creates an Specification in SLD for a symbolizer when it is going 
81
         * to be exported.
82
         * 
83
         * @return the specification in SLD for the symbolizer.
84
         */
85
        abstract String toXML();
86
        /**
87
         * Sets the minScaleDenominator element for a symbolizer. This element
88
         * defines the low range of map-rendering scales for which the rule where 
89
         * the symbolizer appears should be applied.
90
         * 
91
         * @param maxScaleDenominator
92
         */
93
        void setMinScaleDenominator(double minScaleDenominator);
94
        /**
95
         * Sets the maxScaleDenominator element for a symbolizer. This element
96
         * defines the upper range of map-rendering scales for which the rule where
97
         * the symbolizer appears should be applied.
98
         * 
99
         * @param maxScaleDenominator
100
         */
101
        void setMaxScaleDenominator(double maxScaleDenominator);
102
        
103
        public double getMinScaleDenominator();
104
        public double getMaxScaleDenominator();
105
        
106
        public String getGeometry();
107
        public void setGeometry(String geometry) ;
108

    
109
}