Revision 5681
trunk/extensions/extGeoreferencing/text.properties | ||
---|---|---|
15 | 15 |
cargar_fichero=Cargar Fichero |
16 | 16 |
cargar_puntos=?Desea cargar los puntos asociados a este fichero y descartar la informaci?n que haya introducido? |
17 | 17 |
cargar_sin_georef= Cargar imagen sin georeferenciar |
18 |
centrar_punto=Centrar punto seleccionado en la vista |
|
18 | 19 |
coordenadas_vacias=Coordenadas vacias |
19 | 20 |
confirmacion=Confirmaci?n |
20 | 21 |
crear_worldfile=Crear fichero de georreferenciaci?n (worldfile) |
trunk/extensions/extGeoreferencing/src/org/gvsig/georeferencing/gui/dialogs/GeoreferencingDialog.java | ||
---|---|---|
131 | 131 |
* despu?s del primer punto. |
132 | 132 |
*/ |
133 | 133 |
private boolean offLayer = true; |
134 |
/** |
|
135 |
* Variable que controla si la vista ha de centrarse sobre el punto seleccionado |
|
136 |
* o no |
|
137 |
*/ |
|
138 |
private boolean centerPoint = true; |
|
134 | 139 |
//**********************End Vars****************************** |
135 | 140 |
|
136 | 141 |
//**********************Classes******************************* |
... | ... | |
1211 | 1216 |
public void setOffLayer(boolean offLayer) { |
1212 | 1217 |
this.offLayer = offLayer; |
1213 | 1218 |
} |
1219 |
|
|
1220 |
/** |
|
1221 |
* Consulta si la vista ha de centrarse sobre el punto seleccionado o no. |
|
1222 |
* @return true o false |
|
1223 |
*/ |
|
1224 |
public boolean isCenterPoint() { |
|
1225 |
return centerPoint; |
|
1226 |
} |
|
1227 |
|
|
1228 |
/** |
|
1229 |
* Asigna el flag que dice si vista ha centrarse sobre el punto seleccionado o no |
|
1230 |
* @param centerPoint true para centrar la vista y false no. |
|
1231 |
*/ |
|
1232 |
public void setCenterPoint(boolean centerPoint) { |
|
1233 |
this.centerPoint = centerPoint; |
|
1234 |
} |
|
1214 | 1235 |
//**********************End Setters & Getters***************** |
1215 | 1236 |
|
1216 | 1237 |
} // @jve:decl-index=0:visual-constraint="10,10" |
trunk/extensions/extGeoreferencing/src/org/gvsig/georeferencing/gui/panels/GeorefOptionsPanel.java | ||
---|---|---|
40 | 40 |
private JPanel jPanel12 = null; |
41 | 41 |
private JPanel jPanel13 = null; |
42 | 42 |
private JPanel jPanel14 = null; |
43 |
private JPanel jPanel15 = null; |
|
43 | 44 |
|
44 | 45 |
/** |
45 | 46 |
* This is the default constructor |
... | ... | |
179 | 180 |
GridBagConstraints gridBagConstraints4 = new GridBagConstraints(); |
180 | 181 |
gridBagConstraints4.gridx = 0; |
181 | 182 |
gridBagConstraints4.gridy = 3; |
183 |
GridBagConstraints gridBagConstraints5 = new GridBagConstraints(); |
|
184 |
gridBagConstraints5.gridx = 0; |
|
185 |
gridBagConstraints5.gridy = 4; |
|
182 | 186 |
jPanel = new JPanel(); |
183 | 187 |
jPanel.setLayout(new GridBagLayout()); |
184 |
jPanel.setPreferredSize(new java.awt.Dimension(370,90));
|
|
188 |
jPanel.setPreferredSize(new java.awt.Dimension(370,110));
|
|
185 | 189 |
jPanel.add(getJPanel11(), gridBagConstraints); |
186 | 190 |
jPanel.add(getJPanel12(), gridBagConstraints2); |
187 | 191 |
jPanel.add(getJPanel13(), gridBagConstraints3); |
188 | 192 |
jPanel.add(getJPanel14(), gridBagConstraints4); |
193 |
jPanel.add(getJPanel15(), gridBagConstraints5); |
|
189 | 194 |
} |
190 | 195 |
return jPanel; |
191 | 196 |
} |
... | ... | |
242 | 247 |
else |
243 | 248 |
grd.setOffLayer(false); |
244 | 249 |
} |
250 |
|
|
251 |
if(((JCheckBox)e.getSource()).getName().equals("centrar_punto")){ |
|
252 |
if(((JCheckBox)e.getSource()).isSelected()) |
|
253 |
grd.setCenterPoint(true); |
|
254 |
else |
|
255 |
grd.setCenterPoint(false); |
|
256 |
|
|
257 |
} |
|
245 | 258 |
} |
246 | 259 |
} |
247 | 260 |
|
... | ... | |
299 | 312 |
} |
300 | 313 |
return jPanel14; |
301 | 314 |
} |
315 |
|
|
316 |
/** |
|
317 |
* This method initializes jPanel15 |
|
318 |
* |
|
319 |
* @return javax.swing.JPanel |
|
320 |
*/ |
|
321 |
private JPanel getJPanel15() { |
|
322 |
if (jPanel15 == null) { |
|
323 |
jPanel15 = new OptionsPanel(this.grd, "centrar_punto"); |
|
324 |
((OptionsPanel)jPanel15).getCbCheckBox().setSelected(true); |
|
325 |
((OptionsPanel)jPanel15).getCbCheckBox().addActionListener(this); |
|
326 |
} |
|
327 |
return jPanel15; |
|
328 |
} |
|
302 | 329 |
} |
Also available in: Unified diff