root / trunk / libraries / libFMap / src / com / iver / cit / gvsig / fmap / layers / FLyrComplexRaster.java @ 1100
History | View | Annotate | Download (6.77 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.layers; |
42 |
|
43 |
import com.iver.cit.gvsig.fmap.DriverException; |
44 |
import com.iver.cit.gvsig.fmap.ViewPort; |
45 |
import com.iver.cit.gvsig.fmap.core.FShape; |
46 |
import com.iver.cit.gvsig.fmap.layers.layerOperations.AlphanumericData; |
47 |
import com.iver.cit.gvsig.fmap.layers.layerOperations.ClassifiableRaster; |
48 |
import com.iver.cit.gvsig.fmap.layers.layerOperations.Selectable; |
49 |
import com.iver.cit.gvsig.fmap.operations.Cancellable; |
50 |
import com.iver.cit.gvsig.fmap.rendering.Legend; |
51 |
import com.iver.cit.gvsig.fmap.rendering.RasterLegend; |
52 |
|
53 |
import com.iver.utiles.XMLEntity; |
54 |
|
55 |
import org.apache.log4j.Logger; |
56 |
|
57 |
import org.cresques.cts.ICoordTrans; |
58 |
|
59 |
import java.awt.Graphics2D; |
60 |
import java.awt.Point; |
61 |
import java.awt.geom.Rectangle2D; |
62 |
import java.awt.image.BufferedImage; |
63 |
|
64 |
|
65 |
/**
|
66 |
* DOCUMENT ME!
|
67 |
*
|
68 |
* @author Fernando Gonz?lez Cort?s
|
69 |
*/
|
70 |
public class FLyrComplexRaster extends FLyrDefault implements ClassifiableRaster, |
71 |
Selectable, AlphanumericData, LowLevelRasterOperations, RasterOperations { |
72 |
private static Logger logger = Logger.getLogger(FLyrComplexRaster.class.getName()); |
73 |
private ComplexRasterAdapter complexRasterAdapter;
|
74 |
private LegendListener[] listeners; |
75 |
|
76 |
/**
|
77 |
* @see com.iver.cit.gvsig.fmap.layers.CommonOperations#setSelection(java.util.BitSet)
|
78 |
*/
|
79 |
public void setSelection(FBitSet selection) { |
80 |
} |
81 |
|
82 |
/**
|
83 |
* @see com.iver.cit.gvsig.fmap.layers.CommonOperations#isSelected(int)
|
84 |
*/
|
85 |
public boolean isSelected(int index) { |
86 |
return false; |
87 |
} |
88 |
|
89 |
/**
|
90 |
* @see com.iver.cit.gvsig.fmap.layers.CommonOperations#clearSelection()
|
91 |
*/
|
92 |
public void clearSelection() { |
93 |
} |
94 |
|
95 |
/**
|
96 |
* @see com.iver.cit.gvsig.fmap.layers.CommonOperations#getRecordset()
|
97 |
*/
|
98 |
public SelectableDataSource getRecordset() {
|
99 |
return null; |
100 |
} |
101 |
|
102 |
/**
|
103 |
* @see com.iver.cit.gvsig.fmap.layers.LowLevelRasterOperations#applyFilter(com.iver.cit.gvsig.fmap.layers.Filter)
|
104 |
*/
|
105 |
public void applyFilter(Filter f) { |
106 |
} |
107 |
|
108 |
/**
|
109 |
* @see com.iver.cit.gvsig.fmap.layers.LowLevelRasterOperations#setBands(int[])
|
110 |
*/
|
111 |
public void setBands(int[] bandsIndexes) { |
112 |
} |
113 |
|
114 |
/**
|
115 |
* @see com.iver.cit.gvsig.fmap.layers.LayerOperations#draw(java.awt.image.BufferedImage,
|
116 |
* java.awt.Graphics2D, com.iver.cit.gvsig.fmap.ViewPort,
|
117 |
* com.iver.cit.gvsig.fmap.operations.Cancellable)
|
118 |
*/
|
119 |
public void draw(BufferedImage image, Graphics2D g, ViewPort viewPort, |
120 |
Cancellable cancel) throws DriverException {
|
121 |
} |
122 |
|
123 |
/**
|
124 |
* @see com.iver.cit.gvsig.fmap.layers.FLayer#print(java.awt.Graphics2D,
|
125 |
* com.iver.cit.gvsig.fmap.ViewPort,
|
126 |
* com.iver.cit.gvsig.fmap.operations.Cancellable)
|
127 |
*/
|
128 |
public void print(Graphics2D g, ViewPort viewPort, Cancellable cancel) |
129 |
throws DriverException {
|
130 |
} |
131 |
|
132 |
/**
|
133 |
* @see com.iver.cit.gvsig.fmap.layers.RasterOperations#queryByPoint(com.iver.cit.gvsig.fmap.operations.QueriedPoint)
|
134 |
*/
|
135 |
public String queryByPoint(Point point) { |
136 |
return null; |
137 |
} |
138 |
|
139 |
/**
|
140 |
* @see com.iver.cit.gvsig.fmap.layers.CommonOperations#fireSelectionEvents()
|
141 |
*/
|
142 |
public void fireSelectionEvents() { |
143 |
} |
144 |
|
145 |
/**
|
146 |
* @see com.iver.cit.gvsig.fmap.layers.CommonOperations#removeLegendListener(com.iver.cit.gvsig.fmap.layers.VectorialListener)
|
147 |
*/
|
148 |
public void removeLegendListener(LegendListener listener) { |
149 |
} |
150 |
|
151 |
/**
|
152 |
* @see com.iver.cit.gvsig.fmap.layers.LayerOperations#getFullExtent()
|
153 |
*/
|
154 |
public Rectangle2D getFullExtent() throws DriverException { |
155 |
Rectangle2D rAux = null; |
156 |
|
157 |
/* complexRasterAdapter.start();
|
158 |
rAux = source.getFullExtent();
|
159 |
source.stop(); */
|
160 |
return rAux;
|
161 |
} |
162 |
|
163 |
/**
|
164 |
* @see com.iver.cit.gvsig.fmap.layers.LowLevelRasterOperations#getRasterLegend()
|
165 |
*/
|
166 |
public RasterLegend getRasterLegend() {
|
167 |
return null; |
168 |
} |
169 |
|
170 |
/**
|
171 |
* @see com.iver.cit.gvsig.fmap.layers.LowLevelRasterOperations#setRasterLegend(com.iver.cit.gvsig.fmap.rendering.RasterLegend)
|
172 |
*/
|
173 |
public void setRasterLegend(RasterLegend legend) { |
174 |
} |
175 |
|
176 |
/**
|
177 |
* @see org.cresques.geo.Projected#reProject(org.cresques.cts.ICoordTrans)
|
178 |
*/
|
179 |
public void reProject(ICoordTrans arg0) { |
180 |
} |
181 |
|
182 |
/**
|
183 |
* @see com.iver.cit.gvsig.fmap.layers.CommonOperations#getShapeType()
|
184 |
*/
|
185 |
public int getShapeType() { |
186 |
return FShape.POLYGON;
|
187 |
} |
188 |
|
189 |
/**
|
190 |
* @see com.iver.cit.gvsig.fmap.layers.FLayer#getProperties()
|
191 |
*/
|
192 |
public XMLEntity getProperties() {
|
193 |
XMLEntity xml = super.getXMLEntity();
|
194 |
|
195 |
//TODO falta el complexRaster
|
196 |
return xml;
|
197 |
} |
198 |
|
199 |
/**
|
200 |
* @see com.iver.cit.gvsig.fmap.layers.FLyrDefault#setXMLEntity(com.iver.utiles.XMLEntity)
|
201 |
*/
|
202 |
public void setXMLEntity(XMLEntity xml) { |
203 |
} |
204 |
|
205 |
/**
|
206 |
* @see com.iver.cit.gvsig.fmap.layers.CommonOperations#getSelection()
|
207 |
*/
|
208 |
public FBitSet getSelection() {
|
209 |
return null; |
210 |
} |
211 |
|
212 |
/**
|
213 |
* @see com.iver.cit.gvsig.fmap.layers.CommonOperations#changeRecordsetName()
|
214 |
*/
|
215 |
public void changeRecordsetName(String newName) throws DriverException { |
216 |
} |
217 |
|
218 |
/**
|
219 |
* @see com.iver.cit.gvsig.fmap.layers.layerOperations.ClassifiableRaster#setLegend(com.iver.cit.gvsig.fmap.rendering.RasterLegend)
|
220 |
*/
|
221 |
public void setLegend(RasterLegend r) { |
222 |
} |
223 |
|
224 |
/**
|
225 |
* @see com.iver.cit.gvsig.fmap.layers.layerOperations.ClassifiableRaster#getLegend()
|
226 |
*/
|
227 |
public Legend getLegend() {
|
228 |
return null; |
229 |
} |
230 |
|
231 |
/**
|
232 |
* @see com.iver.cit.gvsig.fmap.layers.layerOperations.Selectable#addSelectionListener(com.iver.cit.gvsig.fmap.layers.SelectionListener)
|
233 |
*/
|
234 |
public void addSelectionListener(SelectionListener listener) { |
235 |
} |
236 |
|
237 |
/**
|
238 |
* @see com.iver.cit.gvsig.fmap.layers.layerOperations.Selectable#removeSelectionListener(com.iver.cit.gvsig.fmap.layers.SelectionListener)
|
239 |
*/
|
240 |
public void removeSelectionListener(SelectionListener listener) { |
241 |
} |
242 |
|
243 |
/**
|
244 |
* @see com.iver.cit.gvsig.fmap.layers.layerOperations.Classifiable#addLegendListener(com.iver.cit.gvsig.fmap.layers.LegendListener)
|
245 |
*/
|
246 |
public void addLegendListener(LegendListener listener) { |
247 |
} |
248 |
} |