Statistics
| Revision:

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 / GeoreferencingOptionsDataModel.java @ 1717

History | View | Annotate | Download (5.72 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.awt.Color;
25

    
26
import org.gvsig.fmap.dal.coverage.store.RasterDataStore;
27

    
28
/**
29
 * Data model for options to georeferencing. This a shared object to read 
30
 * and write properties selected by the user
31
 * @author Nacho Brodin nachobrodin@gmail.com
32
 */
33
public interface GeoreferencingOptionsDataModel {
34
        
35
        /**
36
         * Obtiene la capa que ha sido abierta por el usuario 
37
         * @return Obtiene la capa que ha sido abierta por el usuario o null si no 
38
         * hay abierta ninguna.
39
         */
40
        public RasterDataStore getDataStore();
41
        
42
        /**
43
         * Obtiene la vista seleccionada
44
         * @return
45
         */
46
        public String getSelectedView();
47
        
48
        /**
49
         * Obtiene el tipo de georreferenciaci?n seleccionada
50
         * @return entero con el tipo de georreferenciaci?n. Es una constante contenida en la 
51
         * clase georreferencing.
52
         */
53
        public int getType();
54
        
55
        /**
56
         * Obtiene el nombre del fichero de salida
57
         * @return Fichero de salida
58
         */
59
        public String getOutFile();
60
        
61
        /**
62
         * Obtiene el tipo de algoritmo seleccionado
63
         * @return entero con el tipo de algoritmo. Es una constante definida 
64
         * en la clase georreferencing. 
65
         */
66
        public int getAlgorithm();
67
        
68
        /**
69
         * Obtiene el grado del algoritmo si este es polinomial
70
         * @return entero con el grado del algoritmo. 
71
         */
72
        public int getDegree();
73
        
74
        /**
75
         * Obtiene el m?todo de interpolaci?n del algoritmo si este es polinomial
76
         * @return entero con el m?todo de interpolaci?n 
77
         */
78
        public int getInterpolationMethod();
79
        
80
        /**
81
         * Obtiene el tama?o de celda en X.
82
         * @return double con el tama?o de celda. 
83
         */
84
        public double getXCellSize();
85
        
86
        /**
87
         * Asigna el tama?o de celda en X.
88
         * @param cellSize
89
         */
90
        public void setXCellSize(double cellSize);
91
        
92
        /**
93
         * Obtiene el tama?o de celda en Y.
94
         * @return double con el tama?o de celda. 
95
         */
96
        public double getYCellSize();
97
        
98
        /**
99
         * Asigna el tama?o de celda en Y.
100
         * @param cellSize
101
         */
102
        public void setYCellSize(double cellSize);
103
        
104
        /**
105
         * Asigna el m?todo de interpolaci?n
106
         * @param interpolationMethod
107
         */
108
        public void setInterpolationMethod(int interpolationMethod);
109
        
110
        /**
111
         * Asigna el nombre del fichero de salida
112
         * @param interpolationMethod
113
         */
114
        public void setOutFile(String out);
115
        
116
        /**
117
         * Asigna el grado del algoritmo cuando es polinomial
118
         * @param optiondegree
119
         */
120
        public void setDegree(int optiondegree);
121
        
122
        /**
123
         * Asigna el algoritmo
124
         * @param alg
125
         */
126
        public void setAlgorithm(int alg);
127
        
128
        /**
129
         * Asigna el color de fonfo
130
         * @param c
131
         */
132
        public void setBackGroundColor(Color c);
133
        
134
        /**
135
         * Obtiene el color de fondo
136
         * @return
137
         */
138
        public Color getBackgroundColor();
139
        
140
        /**
141
         * Asigna el color del texto
142
         * @param c
143
         */
144
        public void setTextColor(Color c);
145
        
146
        /**
147
         * Obtiene el color del texto
148
         * @return
149
         */
150
        public Color getTextColor();
151
        
152
        /**
153
         * Obtiene el control para selecci?n de umbral de error
154
         * @return JButton
155
         */
156
        public double getThresholdError();
157
        
158
        /**
159
         * Asigna el control para selecci?n de umbral de error
160
         * @return JButton
161
         */
162
        public void setThresholdError(double threshold);
163
        
164
        /**
165
         * Sets the type of georeferencing selected
166
         * @param type
167
         */
168
        public void setType(int type);
169
        
170
        /**
171
         * Sets the data store
172
         * @param store
173
         */
174
        public void setDataStore(RasterDataStore store);
175
        
176
        /**
177
         * Sets the selected view
178
         * @param v
179
         */
180
        public void setSelectedView(String v);
181
        
182
        /**
183
         * Asigna el flag que dice si los errores se escriben en el fichero CSV
184
         * @param true para escribirlos en el fichero y false para no hacerlo
185
         */
186
        public void setAddErrorsCSV(boolean addErrorsCSV);
187
        
188
        /**
189
         * Consulta si est? activo el flag de centrar las vistas autom?ticamente sobre
190
         * el punto que est? seleccionado en la tabla.
191
         * @return true para centrar autom?ticamente y false para no hacerlo
192
         */
193
        public boolean isCenterView();
194

    
195
        /**
196
         * Asigna el flag que dice si se centran las vistas autom?ticamente sobre
197
         * el punto que est? seleccionado en la tabla.
198
         * @return true para centrar autom?ticamente y false para no hacerlo
199
         */
200
        public void setCenterView(boolean centerView);
201
        
202
        /**
203
         * Asigna el flag que dice si se muestra el n?mero del punto en la vista
204
         * @param true para mostrarlo y false para no hacerlo
205
         */
206
        public void setShowNumber(boolean showNumber);
207
        
208
        /**
209
         * Consulta el flag que informa si se muestra el n?mero del punto en la vista
210
         * @return true si se muestra y false si no
211
         */
212
        public boolean isShowNumber();
213
        
214
        /**
215
         * Obtiene el umbral de error a partir del cual se iluminan en rojo en la tabla
216
         * @return double con el valor del umbral
217
         */
218
        public double getThreshold();
219
        
220
        /**
221
         * Consulta si los errores se escriben en el fichero CSV
222
         * @return true si se escriben en el fichero y false si no se hace
223
         */
224
        public boolean isAddErrorsCSV();
225
        
226
        /**
227
         * Asigna el umbral de error a partir del cual se iluminan en rojo en la tabla
228
         * @param double con el valor del umbral
229
         */
230
        public void setThreshold(double threshold);
231
}