svn-gvsig-desktop / trunk / libraries / libFMap / src / com / iver / cit / gvsig / fmap / rendering / RasterUniqueValueLegend.java @ 6466
History | View | Annotate | Download (4.63 KB)
1 | 1100 | fjp | /* 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 | 322 | fernando | package com.iver.cit.gvsig.fmap.rendering; |
42 | |||
43 | 1034 | vcaballero | import com.hardcode.gdbms.engine.values.Value; |
44 | 322 | fernando | |
45 | 458 | fjp | import com.iver.cit.gvsig.fmap.core.v02.FSymbol; |
46 | 322 | fernando | import com.iver.cit.gvsig.fmap.rendering.styling.FStyle2D; |
47 | 1034 | vcaballero | |
48 | 435 | vcaballero | import com.iver.utiles.XMLEntity; |
49 | 322 | fernando | |
50 | 1034 | vcaballero | |
51 | /**
|
||
52 | * Leyenda de una clase raster por valor unico.
|
||
53 | *
|
||
54 | * @author Vicente Caballero Navarro
|
||
55 | */
|
||
56 | 334 | fernando | public class RasterUniqueValueLegend implements UniqueValueLegend, RasterLegend { |
57 | 1034 | vcaballero | String fieldName;
|
58 | 322 | fernando | |
59 | /**
|
||
60 | 1034 | vcaballero | * @see com.iver.cit.gvsig.fmap.rendering.UniqueValueLegend#setValueSymbolByID(int,
|
61 | * FSymbol)
|
||
62 | 322 | fernando | */
|
63 | 470 | fjp | public void setValueSymbolByID(int id, FSymbol symbol) { |
64 | 322 | fernando | } |
65 | |||
66 | /**
|
||
67 | 1034 | vcaballero | * @see com.iver.cit.gvsig.fmap.rendering.UniqueValueLegend#addSymbol(java.lang.Object,
|
68 | * FSymbol)
|
||
69 | 322 | fernando | */
|
70 | 470 | fjp | public void addSymbol(Object key, FSymbol symbol) { |
71 | 322 | fernando | } |
72 | |||
73 | /**
|
||
74 | * @see com.iver.cit.gvsig.fmap.rendering.ClassifiedLegend#clear()
|
||
75 | */
|
||
76 | public void clear() { |
||
77 | } |
||
78 | |||
79 | /**
|
||
80 | 470 | fjp | * @see com.iver.cit.gvsig.fmap.rendering.ClassifiedLegend#getFieldName()
|
81 | 322 | fernando | */
|
82 | 470 | fjp | public String getFieldName() { |
83 | return fieldName;
|
||
84 | 322 | fernando | } |
85 | |||
86 | /**
|
||
87 | 470 | fjp | * @see com.iver.cit.gvsig.fmap.rendering.ClassifiedLegend#setFieldName(String)
|
88 | 322 | fernando | */
|
89 | 470 | fjp | public void setFieldName(String i) { |
90 | 322 | fernando | } |
91 | |||
92 | /**
|
||
93 | * @see com.iver.cit.gvsig.fmap.rendering.RasterLegend#getSymbol(double)
|
||
94 | */
|
||
95 | public FStyle2D getSymbol(double d) { |
||
96 | return null; |
||
97 | } |
||
98 | |||
99 | /**
|
||
100 | * @see com.iver.cit.gvsig.fmap.rendering.RasterLegend#setDefaultSymbol(com.iver.cit.gvsig.fmap.rendering.styling.FStyle2D)
|
||
101 | */
|
||
102 | public void setDefaultSymbol(FStyle2D s) { |
||
103 | } |
||
104 | |||
105 | /**
|
||
106 | * @see com.iver.cit.gvsig.fmap.rendering.ClassifiedLegendInfo#getDescriptions()
|
||
107 | */
|
||
108 | public String[] getDescriptions() { |
||
109 | return null; |
||
110 | } |
||
111 | |||
112 | /**
|
||
113 | * @see com.iver.cit.gvsig.fmap.rendering.ClassifiedLegendInfo#getSymbols()
|
||
114 | */
|
||
115 | 458 | fjp | public FSymbol[] getSymbols() { |
116 | 322 | fernando | return null; |
117 | } |
||
118 | |||
119 | /**
|
||
120 | * @see com.iver.cit.gvsig.fmap.rendering.ClassifiedLegendInfo#getValues()
|
||
121 | */
|
||
122 | public Object[] getValues() { |
||
123 | return null; |
||
124 | } |
||
125 | |||
126 | /**
|
||
127 | 458 | fjp | * @see com.iver.cit.gvsig.fmap.rendering.Legend#getDefaultSymbol()
|
128 | 322 | fernando | */
|
129 | 458 | fjp | public FSymbol getDefaultSymbol() {
|
130 | 322 | fernando | return null; |
131 | } |
||
132 | 435 | vcaballero | |
133 | /**
|
||
134 | 3632 | ldiaz | * @see com.iver.cit.gvsig.fmap.rendering.Legend#getSLDString()
|
135 | */
|
||
136 | 4567 | ldiaz | public String getSLDString(String layerName) { |
137 | 3632 | ldiaz | StringBuffer sld = new StringBuffer(); |
138 | //xml.putProperty("className",this.getClass().getName());
|
||
139 | |||
140 | //TODO
|
||
141 | return sld.toString();
|
||
142 | } |
||
143 | |||
144 | /**
|
||
145 | 458 | fjp | * @see com.iver.cit.gvsig.fmap.rendering.Legend#getXMLEntity()
|
146 | 435 | vcaballero | */
|
147 | public XMLEntity getXMLEntity() {
|
||
148 | 1034 | vcaballero | XMLEntity xml = new XMLEntity();
|
149 | 1094 | vcaballero | xml.putProperty("className",this.getClass().getName()); |
150 | 1034 | vcaballero | |
151 | 435 | vcaballero | //TODO
|
152 | return xml;
|
||
153 | } |
||
154 | 1034 | vcaballero | |
155 | 435 | vcaballero | /**
|
156 | 1034 | vcaballero | * Crea un RasterUniqueValueLegend a partir del XMLEntity.
|
157 | *
|
||
158 | * @param xml XMLEntity.
|
||
159 | *
|
||
160 | * @return Nuevo RasterUniqueValueLegend
|
||
161 | */
|
||
162 | public static RasterUniqueValueLegend createFromXML(XMLEntity xml) { |
||
163 | RasterUniqueValueLegend ruvl = new RasterUniqueValueLegend();
|
||
164 | |||
165 | //TODO
|
||
166 | return ruvl;
|
||
167 | } |
||
168 | |||
169 | /**
|
||
170 | 470 | fjp | * @see com.iver.cit.gvsig.fmap.rendering.Legend#cloneLegend()
|
171 | 435 | vcaballero | */
|
172 | 470 | fjp | public Legend cloneLegend() {
|
173 | 435 | vcaballero | return createFromXML(getXMLEntity());
|
174 | } |
||
175 | 470 | fjp | |
176 | /* (non-Javadoc)
|
||
177 | * @see com.iver.cit.gvsig.fmap.rendering.UniqueValueLegend#getSymbolByID(int)
|
||
178 | */
|
||
179 | public FSymbol getSymbolByID(int ID) { |
||
180 | // TODO Auto-generated method stub
|
||
181 | return null; |
||
182 | } |
||
183 | |||
184 | /* (non-Javadoc)
|
||
185 | * @see com.iver.cit.gvsig.fmap.rendering.UniqueValueLegend#getSymbolByValue(com.hardcode.gdbms.engine.values.Value)
|
||
186 | */
|
||
187 | public FSymbol getSymbolByValue(Value key) {
|
||
188 | // TODO Auto-generated method stub
|
||
189 | return null; |
||
190 | } |
||
191 | 2795 | caballero | |
192 | public void delSymbol(Object key) { |
||
193 | // TODO Auto-generated method stub
|
||
194 | |||
195 | } |
||
196 | 435 | vcaballero | } |