Statistics
| Revision:

root / trunk / libraries / libFMap / src / com / iver / cit / gvsig / fmap / rendering / RasterIntervalLegend.java @ 2413

History | View | Annotate | Download (4.17 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 com.iver.cit.gvsig.fmap.rendering;
42

    
43
import com.iver.cit.gvsig.fmap.core.v02.FSymbol;
44
import com.iver.cit.gvsig.fmap.rendering.styling.FStyle2D;
45

    
46
import com.iver.utiles.XMLEntity;
47

    
48

    
49
/**
50
 * Leyenda sobre una clase raster por intervalos.
51
 *
52
 * @author Vicente Caballero Navarro
53
 */
54
public class RasterIntervalLegend implements IntervalLegend, RasterLegend {
55
        String fieldName;
56

    
57
        /**
58
         * @see com.iver.cit.gvsig.fmap.rendering.IntervalLegend#setIntervalSymbol(com.iver.cit.gvsig.fmap.rendering.FInterval,
59
         *                 com.iver.cit.gvsig.fmap.rendering.styling.FStyle2D)
60
         */
61
        public void setIntervalSymbol(IInterval i, FStyle2D value) {
62
        }
63

    
64
        /**
65
         * @see com.iver.cit.gvsig.fmap.rendering.IntervalLegend#changeInterval(int,
66
         *                 com.iver.cit.gvsig.fmap.rendering.FInterval)
67
         */
68
        public void changeInterval(int index, IInterval newInterval) {
69
        }
70

    
71
        /**
72
         * @see com.iver.cit.gvsig.fmap.rendering.ClassifiedLegend#clear()
73
         */
74
        public void clear() {
75
        }
76

    
77
        /**
78
         * @see com.iver.cit.gvsig.fmap.rendering.ClassifiedLegend#getFieldName()
79
         */
80
        public String getFieldName() {
81
                return fieldName;
82
        }
83

    
84
        /**
85
         * @see com.iver.cit.gvsig.fmap.rendering.ClassifiedLegend#setFieldName(String)
86
         */
87
        public void setFieldName(String str) {
88
                fieldName = str;
89
        }
90

    
91
        /**
92
         * @see com.iver.cit.gvsig.fmap.rendering.RasterLegend#getSymbol(double)
93
         */
94
        public FStyle2D getSymbol(double d) {
95
                return null;
96
        }
97

    
98
        /**
99
         * @see com.iver.cit.gvsig.fmap.rendering.RasterLegend#setDefaultSymbol(com.iver.cit.gvsig.fmap.rendering.styling.FStyle2D)
100
         */
101
        public void setDefaultSymbol(FStyle2D s) {
102
        }
103

    
104
        /**
105
         * @see com.iver.cit.gvsig.fmap.rendering.ClassifiedLegendInfo#getDescriptions()
106
         */
107
        public String[] getDescriptions() {
108
                return null;
109
        }
110

    
111
        /**
112
         * @see com.iver.cit.gvsig.fmap.rendering.ClassifiedLegendInfo#getSymbols()
113
         */
114
        public FSymbol[] getSymbols() {
115
                return null;
116
        }
117

    
118
        /**
119
         * @see com.iver.cit.gvsig.fmap.rendering.ClassifiedLegendInfo#getValues()
120
         */
121
        public Object[] getValues() {
122
                return null;
123
        }
124

    
125
        /**
126
         * @see com.iver.cit.gvsig.fmap.rendering.Legend#getDefaultSymbol()
127
         */
128
        public FSymbol getDefaultSymbol() {
129
                return null;
130
        }
131

    
132
        /**
133
         * @see com.iver.cit.gvsig.fmap.rendering.Legend#getXMLEntity()
134
         */
135
        public XMLEntity getXMLEntity() {
136
                XMLEntity xml = new XMLEntity();
137
                xml.putProperty("className",this.getClass().getName());
138

    
139
                //TODO
140
                return xml;
141
        }
142

    
143
        /**
144
         * Crea una RasterIntervalLegend a partir del XMLEntity.
145
         *
146
         * @param xml XMLEntity
147
         *
148
         * @return nuevo RasterIntervalLegend.
149
         */
150
        public static RasterIntervalLegend createFromXML(XMLEntity xml) {
151
                RasterIntervalLegend ril = new RasterIntervalLegend();
152

    
153
                //TODO
154
                return ril;
155
        }
156

    
157
        /**
158
         * @see com.iver.cit.gvsig.fmap.rendering.Legend#cloneLegend()
159
         */
160
        public Legend cloneLegend() {
161
                return createFromXML(getXMLEntity());
162
        }
163

    
164
        /**
165
         * @see com.iver.cit.gvsig.fmap.rendering.IntervalLegend#setIntervalSymbol(com.iver.cit.gvsig.fmap.rendering.FInterval,
166
         *                 com.iver.cit.gvsig.fmap.core.v02.FSymbol)
167
         */
168
        public void setIntervalSymbol(IInterval i, FSymbol value) {
169
        }
170
}