gvsig-raster / org.gvsig.raster / branches / org.gvsig.raster.2.4 / org.gvsig.raster.tools / org.gvsig.raster.tools.swing / org.gvsig.raster.tools.swing.impl / src / main / java / org / gvsig / raster / tools / swing / impl / DefaultRasterToolsSwingManager.java @ 6689
History | View | Annotate | Download (2.72 KB)
1 |
/* gvSIG. Desktop Geographic Information System.
|
---|---|
2 |
*
|
3 |
* Copyright ? 2007-2017 gvSIG Association
|
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., 51 Franklin Street, Fifth Floor, Boston,
|
18 |
* MA 02110-1301, USA.
|
19 |
*
|
20 |
* For any additional information, do not hesitate to contact us
|
21 |
* at info AT gvsig.com, or visit our website www.gvsig.com.
|
22 |
*/
|
23 |
package org.gvsig.raster.tools.swing.impl; |
24 |
|
25 |
import java.io.File; |
26 |
|
27 |
import org.gvsig.fmap.geom.primitive.Envelope; |
28 |
import org.gvsig.raster.tools.lib.api.exceptions.RasterToolCreatingPanelException; |
29 |
import org.gvsig.raster.tools.swing.api.ClipPanel; |
30 |
import org.gvsig.raster.tools.swing.api.RasterToolsSwingManager; |
31 |
import org.gvsig.raster.tools.swing.impl.clip.ClipPanelController; |
32 |
import org.gvsig.tools.dynobject.DynObject; |
33 |
import org.gvsig.tools.service.Service; |
34 |
import org.gvsig.tools.service.ServiceException; |
35 |
|
36 |
|
37 |
/**
|
38 |
* @author fdiaz
|
39 |
*
|
40 |
*/
|
41 |
public class DefaultRasterToolsSwingManager implements RasterToolsSwingManager{ |
42 |
|
43 |
Envelope lastClipEnvelopeSaved; |
44 |
private File folder; |
45 |
|
46 |
@Override
|
47 |
public DynObject createServiceParameters(String serviceName) throws ServiceException { |
48 |
// TODO Auto-generated method stub
|
49 |
return null; |
50 |
} |
51 |
|
52 |
@Override
|
53 |
public Service getService(DynObject parameters) throws ServiceException { |
54 |
// TODO Auto-generated method stub
|
55 |
return null; |
56 |
} |
57 |
|
58 |
// @Override
|
59 |
// public ClipPanel createClipPanel(RasterLayer layer, MapControl mapControl) throws RasterToolCreatingPanelException {
|
60 |
// return new ClipPanelController(layer, mapControl);
|
61 |
// }
|
62 |
|
63 |
@Override
|
64 |
public ClipPanel createClipPanel() throws RasterToolCreatingPanelException { |
65 |
return new ClipPanelController(); |
66 |
} |
67 |
|
68 |
@Override
|
69 |
public void setLastClipEnvelopeSaved(Envelope envelope) { |
70 |
this.lastClipEnvelopeSaved = envelope;
|
71 |
} |
72 |
|
73 |
@Override
|
74 |
public Envelope getLastClipEnvelopeSaved() {
|
75 |
return this.lastClipEnvelopeSaved; |
76 |
} |
77 |
|
78 |
@Override
|
79 |
public File getLastFolderUsedToSaveRaster() { |
80 |
return this.folder; |
81 |
} |
82 |
|
83 |
@Override
|
84 |
public void setLastFolderUsedToSaveRaster(File folder) { |
85 |
this.folder = folder;
|
86 |
} |
87 |
|
88 |
} |