gvsig-raster / org.gvsig.raster.georeferencing / trunk / org.gvsig.raster.georeferencing / org.gvsig.raster.georeferencing.swing / org.gvsig.raster.georeferencing.swing.api / src / main / java / org / gvsig / raster / georeferencing / swing / GeoreferencingSwingManager.java @ 1712
History | View | Annotate | Download (3.83 KB)
1 |
/* gvSIG. Geographic Information System of the Valencian Government
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department
|
4 |
* of the Valencian Government (CIT)
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 2
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
*/
|
22 |
package org.gvsig.raster.georeferencing.swing; |
23 |
|
24 |
import java.util.List; |
25 |
|
26 |
import org.gvsig.fmap.dal.coverage.datastruct.GeoPointList; |
27 |
import org.gvsig.gui.beans.buttonspanel.ButtonsPanelListener; |
28 |
import org.gvsig.raster.georeferencing.swing.control.GeorefControlPanel; |
29 |
import org.gvsig.raster.georeferencing.swing.view.GeoreferencingView; |
30 |
import org.gvsig.raster.georeferencing.swing.view.IViewRequestManager; |
31 |
import org.gvsig.raster.georeferencing.swing.view.SynchronizedViews; |
32 |
import org.gvsig.raster.georeferencing.swing.view.ToolListener; |
33 |
import org.gvsig.raster.swing.pagedtable.PagedTable; |
34 |
|
35 |
/**
|
36 |
* This class is responsible of the management of the library's swing user
|
37 |
* interface. It is the swing library's main entry point, and provides all the
|
38 |
* services to manage library swing components.
|
39 |
*
|
40 |
* @see GeoreferencingWindowManager
|
41 |
* @see JValidationServicePanel
|
42 |
* @author gvSIG team
|
43 |
* @version $Id$
|
44 |
*/
|
45 |
public interface GeoreferencingSwingManager { |
46 |
|
47 |
/**
|
48 |
* Returns the translation of a string.
|
49 |
*
|
50 |
* @param key
|
51 |
* String to translate
|
52 |
* @return a String with the translation of the string passed by parameter
|
53 |
*/
|
54 |
public String getTranslation(String key); |
55 |
|
56 |
/**
|
57 |
* Creates a view to georeference images
|
58 |
* @param w
|
59 |
* @param h
|
60 |
* @param showInfo
|
61 |
* @param minMaxUL
|
62 |
* @param request
|
63 |
* @param toolListener
|
64 |
* @param viewListener
|
65 |
* @return
|
66 |
*/
|
67 |
public GeoreferencingView createView(
|
68 |
boolean showInfo,
|
69 |
boolean minMaxUL,
|
70 |
boolean rightSideButtons,
|
71 |
ToolListener toolListener); |
72 |
|
73 |
/**
|
74 |
* Creates a zoom view
|
75 |
* @param w
|
76 |
* @param h
|
77 |
* @param showInfo
|
78 |
* @param minMaxUL
|
79 |
* @param request
|
80 |
* @return
|
81 |
*/
|
82 |
public GeoreferencingView createZoom(
|
83 |
boolean showInfo,
|
84 |
boolean minMaxUL);
|
85 |
|
86 |
/**
|
87 |
* Builds the synchronization between views. The arrays contains this order
|
88 |
* (view map, view raster, zoom map, zoom raster)
|
89 |
* @param views
|
90 |
* @param viewMan
|
91 |
* @param table
|
92 |
* @param listener
|
93 |
* @return
|
94 |
*/
|
95 |
public SynchronizedViews createSyncViews(
|
96 |
GeoreferencingView[] views,
|
97 |
IViewRequestManager[] viewMan,
|
98 |
GeoPointList gpList, |
99 |
PagedTable table, |
100 |
ToolListener listener); |
101 |
|
102 |
/**
|
103 |
* Creates the entry point panel
|
104 |
* @param viewList
|
105 |
* @param polynomialDegree
|
106 |
* @param listener
|
107 |
* @return
|
108 |
*/
|
109 |
public GeoreferencingLauncher createWindowLauncher(
|
110 |
List<String> viewList, |
111 |
int polynomialDegree);
|
112 |
|
113 |
/**
|
114 |
* Creates the panel of georeferencing options
|
115 |
* @param polynomialDegree
|
116 |
* @param listener
|
117 |
* @return
|
118 |
*/
|
119 |
public GeoreferencingOptions createWindowOptions(
|
120 |
int polynomialDegree,
|
121 |
ButtonsPanelListener listener); |
122 |
|
123 |
/**
|
124 |
* Gets the instance of the data model
|
125 |
* @return
|
126 |
*/
|
127 |
public GeoreferencingOptionsDataModel getDataModel();
|
128 |
|
129 |
/**
|
130 |
* Creates the bar with the buttons to control georeferencing actions
|
131 |
* @return
|
132 |
*/
|
133 |
public GeorefControlPanel createGeorefControlPanel();
|
134 |
|
135 |
} |