root / trunk / applications / appgvSIG / src / com / iver / cit / gvsig / project / documents / layout / fframes / gui / dialogs / FFrameViewDialog.java @ 9392
History | View | Annotate | Download (17.9 KB)
1 |
/*
|
---|---|
2 |
* Created on 01-jun-2004
|
3 |
*
|
4 |
*/
|
5 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
6 |
*
|
7 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
8 |
*
|
9 |
* This program is free software; you can redistribute it and/or
|
10 |
* modify it under the terms of the GNU General Public License
|
11 |
* as published by the Free Software Foundation; either version 2
|
12 |
* of the License, or (at your option) any later version.
|
13 |
*
|
14 |
* This program is distributed in the hope that it will be useful,
|
15 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
16 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
17 |
* GNU General Public License for more details.
|
18 |
*
|
19 |
* You should have received a copy of the GNU General Public License
|
20 |
* along with this program; if not, write to the Free Software
|
21 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
22 |
*
|
23 |
* For more information, contact:
|
24 |
*
|
25 |
* Generalitat Valenciana
|
26 |
* Conselleria d'Infraestructures i Transport
|
27 |
* Av. Blasco Ib??ez, 50
|
28 |
* 46010 VALENCIA
|
29 |
* SPAIN
|
30 |
*
|
31 |
* +34 963862235
|
32 |
* gvsig@gva.es
|
33 |
* www.gvsig.gva.es
|
34 |
*
|
35 |
* or
|
36 |
*
|
37 |
* IVER T.I. S.A
|
38 |
* Salamanca 50
|
39 |
* 46005 Valencia
|
40 |
* Spain
|
41 |
*
|
42 |
* +34 963163400
|
43 |
* dac@iver.es
|
44 |
*/
|
45 |
package com.iver.cit.gvsig.project.documents.layout.fframes.gui.dialogs; |
46 |
|
47 |
import java.awt.geom.Rectangle2D; |
48 |
|
49 |
import javax.swing.JList; |
50 |
import javax.swing.JPanel; |
51 |
|
52 |
import com.iver.andami.PluginServices; |
53 |
import com.iver.andami.ui.mdiManager.WindowInfo; |
54 |
import com.iver.cit.gvsig.project.documents.layout.FLayoutUtilities; |
55 |
import com.iver.cit.gvsig.project.documents.layout.fframes.FFrameView; |
56 |
import com.iver.cit.gvsig.project.documents.layout.fframes.IFFrame; |
57 |
import com.iver.cit.gvsig.project.documents.layout.fframes.ListViewModel; |
58 |
import com.iver.cit.gvsig.project.documents.layout.fframes.gui.JPRotation; |
59 |
import com.iver.cit.gvsig.project.documents.layout.gui.Layout; |
60 |
import com.iver.cit.gvsig.project.documents.view.ProjectView; |
61 |
|
62 |
|
63 |
/**
|
64 |
* Di?logo para a?adir una vista al Layout.
|
65 |
*
|
66 |
* @author Vicente Caballero Navarro
|
67 |
*/
|
68 |
public class FFrameViewDialog extends JPanel implements IFFrameDialog { |
69 |
private javax.swing.JPanel jContentPane = null; |
70 |
private javax.swing.JLabel lVistas = null; |
71 |
private javax.swing.JScrollPane jScrollPane = null; |
72 |
private javax.swing.JList liVistas = null; // @jve:visual-info decl-index=0 visual-constraint="98,-3" |
73 |
private javax.swing.JCheckBox chbEnlaceVivo = null; |
74 |
private javax.swing.JLabel lEscala = null; |
75 |
private javax.swing.JComboBox cbEscala = null; |
76 |
private javax.swing.JLabel lEscalaNumerica = null; |
77 |
private javax.swing.JTextField tEscalaNumerica = null; |
78 |
private javax.swing.JLabel lExtension = null; |
79 |
private javax.swing.JComboBox cbExtension = null; |
80 |
private javax.swing.JLabel lVisualizacion = null; |
81 |
private javax.swing.JComboBox cbVisualizacion = null; |
82 |
private javax.swing.JButton bAceptar = null; |
83 |
private javax.swing.JButton bCancelar = null; |
84 |
private javax.swing.JLabel lCalidad = null; |
85 |
private javax.swing.JComboBox cbCalidad = null; |
86 |
private ProjectView m_projectView = null; |
87 |
private Rectangle2D rect = new Rectangle2D.Double(); |
88 |
private FFrameView fframeview = null; //new FFrameView(); |
89 |
private Layout m_layout = null; |
90 |
private boolean isAcepted = false; |
91 |
private JPRotation rotation = null; |
92 |
private FFrameView newFFrameView=null; |
93 |
/**
|
94 |
* This is the default constructor
|
95 |
*
|
96 |
* @param layout Referencia al Layout.
|
97 |
* @param fframe Referencia al fframe vista.
|
98 |
*/
|
99 |
public FFrameViewDialog(Layout layout, FFrameView fframe) {
|
100 |
super();
|
101 |
fframeview = fframe; |
102 |
m_layout = layout; |
103 |
initialize(); |
104 |
} |
105 |
|
106 |
/**
|
107 |
* This method initializes this
|
108 |
*/
|
109 |
private void initialize() { |
110 |
this.setLayout(null); |
111 |
this.add(getJContentPane(), null); |
112 |
this.setSize(463, 222); |
113 |
|
114 |
if (fframeview.getTypeScale() == 0 || fframeview.getTypeScale() == 1) { |
115 |
getTEscalaNumerica().setEnabled(false);
|
116 |
}else{
|
117 |
getTEscalaNumerica().setEnabled(true);
|
118 |
} |
119 |
getPRotation().setRotation(fframeview.getRotation()); |
120 |
} |
121 |
|
122 |
/**
|
123 |
* Inserta el rect?ngulo que ocupar? el fframe vista.
|
124 |
*
|
125 |
* @param r Rect?ngulo.
|
126 |
*/
|
127 |
public void setRectangle(Rectangle2D r) { |
128 |
rect.setRect(r); |
129 |
} |
130 |
|
131 |
/**
|
132 |
* This method initializes jContentPane
|
133 |
*
|
134 |
* @return javax.swing.JPanel
|
135 |
*/
|
136 |
private javax.swing.JPanel getJContentPane() {
|
137 |
if (jContentPane == null) { |
138 |
jContentPane = new javax.swing.JPanel();
|
139 |
jContentPane.setLayout(null);
|
140 |
jContentPane.add(getLVistas(), null);
|
141 |
jContentPane.add(getJScrollPane(), null);
|
142 |
jContentPane.add(getChbEnlaceVivo(), null);
|
143 |
jContentPane.add(getLEscala(), null);
|
144 |
jContentPane.add(getCbEscala(), null);
|
145 |
jContentPane.add(getLEscalaNumerica(), null);
|
146 |
jContentPane.add(getTEscalaNumerica(), null);
|
147 |
jContentPane.add(getLExtension(), null);
|
148 |
jContentPane.add(getCbExtension(), null);
|
149 |
jContentPane.add(getLVisualizacion(), null);
|
150 |
jContentPane.add(getCbVisualizacion(), null);
|
151 |
jContentPane.add(getLCalidad(), null);
|
152 |
jContentPane.add(getCbCalidad(), null);
|
153 |
jContentPane.add(getbAceptar(), null);
|
154 |
jContentPane.add(getBCancelar(), null);
|
155 |
jContentPane.setSize(462, 220); |
156 |
jContentPane.setPreferredSize(new java.awt.Dimension(60, 60)); |
157 |
jContentPane.setLocation(0, 0); |
158 |
jContentPane.add(getPRotation(), null);
|
159 |
} |
160 |
|
161 |
return jContentPane;
|
162 |
} |
163 |
|
164 |
/**
|
165 |
* This method initializes lVistas
|
166 |
*
|
167 |
* @return javax.swing.JLabel
|
168 |
*/
|
169 |
private javax.swing.JLabel getLVistas() {
|
170 |
if (lVistas == null) { |
171 |
lVistas = new javax.swing.JLabel();
|
172 |
lVistas.setSize(85, 19); |
173 |
lVistas.setText(PluginServices.getText(this, "Vista")); |
174 |
lVistas.setLocation(10, 10); |
175 |
} |
176 |
|
177 |
return lVistas;
|
178 |
} |
179 |
|
180 |
/**
|
181 |
* This method initializes jScrollPane
|
182 |
*
|
183 |
* @return javax.swing.JScrollPane
|
184 |
*/
|
185 |
private javax.swing.JScrollPane getJScrollPane() {
|
186 |
if (jScrollPane == null) { |
187 |
jScrollPane = new javax.swing.JScrollPane();
|
188 |
jScrollPane.setViewportView(getLiVistas()); |
189 |
jScrollPane.setBounds(99, 8, 224, 64); |
190 |
jScrollPane.setPreferredSize(new java.awt.Dimension(250, 60)); |
191 |
} |
192 |
|
193 |
return jScrollPane;
|
194 |
} |
195 |
|
196 |
/**
|
197 |
* This method initializes liVistas
|
198 |
*
|
199 |
* @return javax.swing.JList
|
200 |
*/
|
201 |
private javax.swing.JList getLiVistas() {
|
202 |
if (liVistas == null) { |
203 |
ListViewModel listmodel = new ListViewModel();
|
204 |
listmodel.addViews(); |
205 |
liVistas = new javax.swing.JList();
|
206 |
liVistas.setModel(listmodel); |
207 |
for (int i = 0; i < liVistas.getModel().getSize(); i++) { |
208 |
if (fframeview.getMapContext() != null) { |
209 |
|
210 |
ProjectView pvaux= (ProjectView) liVistas.getModel() |
211 |
.getElementAt(i); |
212 |
|
213 |
if (pvaux.getMapContext().equals(fframeview.getMapContext())) {
|
214 |
liVistas.setSelectedIndex(i); |
215 |
m_projectView= (ProjectView) liVistas.getModel() |
216 |
.getElementAt(i); |
217 |
} |
218 |
} |
219 |
} |
220 |
|
221 |
liVistas.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
|
222 |
private int selectIndex=-1; |
223 |
private Rectangle2D boundBox; |
224 |
public void valueChanged( |
225 |
javax.swing.event.ListSelectionEvent e) { |
226 |
int selectInt = ((JList)e.getSource()).getSelectedIndex(); |
227 |
if (selectInt!=selectIndex){
|
228 |
selectIndex=selectInt; |
229 |
if (selectIndex==-1) |
230 |
return;
|
231 |
m_projectView = (ProjectView) liVistas.getModel() |
232 |
.getElementAt(selectInt); |
233 |
|
234 |
boundBox=FLayoutUtilities.toSheetRect(rect, m_layout.getLayoutControl().getAT()); |
235 |
// fframeview.setBoundBox(FLayoutUtilities.toSheetRect(
|
236 |
// rect, m_layout.getAT()));
|
237 |
|
238 |
// fframeview.setView(m_projectView);
|
239 |
//
|
240 |
// fframeview.setMapUnits(m_projectView.getMapContext()
|
241 |
// .getViewPort()
|
242 |
// .getMapUnits());
|
243 |
getTEscalaNumerica().setText(String.valueOf(FLayoutUtilities.getScaleView(m_projectView.getMapContext().getViewPort(),
|
244 |
boundBox.getWidth(), FLayoutUtilities.fromSheetDistance(boundBox.getWidth(),m_layout.getLayoutControl().getAT())))); |
245 |
// getTEscalaNumerica().setText(String.valueOf(
|
246 |
// fframeview.getScale()));
|
247 |
} |
248 |
} |
249 |
}); |
250 |
} |
251 |
|
252 |
return liVistas;
|
253 |
} |
254 |
|
255 |
/**
|
256 |
* This method initializes chbEnlaceVivo
|
257 |
*
|
258 |
* @return javax.swing.JCheckBox
|
259 |
*/
|
260 |
private javax.swing.JCheckBox getChbEnlaceVivo() {
|
261 |
if (chbEnlaceVivo == null) { |
262 |
chbEnlaceVivo = new javax.swing.JCheckBox();
|
263 |
chbEnlaceVivo.setSize(88, 24); |
264 |
chbEnlaceVivo.setText(PluginServices.getText(this, "enlace_vivo")); |
265 |
chbEnlaceVivo.setSelected(fframeview.getLinked()); |
266 |
chbEnlaceVivo.setLocation(10, 75); |
267 |
chbEnlaceVivo.setEnabled(true);
|
268 |
chbEnlaceVivo.addActionListener(new java.awt.event.ActionListener() {
|
269 |
public void actionPerformed(java.awt.event.ActionEvent e) { |
270 |
System.out.println("actionPerformed()"); // TODO Auto-generated Event stub actionPerformed() |
271 |
} |
272 |
}); |
273 |
} |
274 |
|
275 |
return chbEnlaceVivo;
|
276 |
} |
277 |
|
278 |
/**
|
279 |
* This method initializes lEscala
|
280 |
*
|
281 |
* @return javax.swing.JLabel
|
282 |
*/
|
283 |
private javax.swing.JLabel getLEscala() {
|
284 |
if (lEscala == null) { |
285 |
lEscala = new javax.swing.JLabel();
|
286 |
lEscala.setSize(86, 16); |
287 |
lEscala.setText(PluginServices.getText(this, "escala")); |
288 |
lEscala.setLocation(10, 105); |
289 |
} |
290 |
|
291 |
return lEscala;
|
292 |
} |
293 |
|
294 |
/**
|
295 |
* This method initializes cbEscala
|
296 |
*
|
297 |
* @return javax.swing.JComboBox
|
298 |
*/
|
299 |
private javax.swing.JComboBox getCbEscala() {
|
300 |
if (cbEscala == null) { |
301 |
//String[] s={"Autom?tico","Conservar escala de visualizaci?n","Escala especificada por el usuario"};
|
302 |
cbEscala = new javax.swing.JComboBox();
|
303 |
cbEscala.setSize(220, 20); |
304 |
cbEscala.addItem(PluginServices.getText(this, "automatico")); |
305 |
cbEscala.addItem(PluginServices.getText(this,
|
306 |
"conservar_escala_visualizacion"));
|
307 |
cbEscala.addItem(PluginServices.getText(this, "escala_usuario")); |
308 |
cbEscala.setSelectedIndex(fframeview.getTypeScale()); |
309 |
|
310 |
if (fframeview.getTypeScale() == 0 || fframeview.getTypeScale() == 1) { |
311 |
getTEscalaNumerica().setEnabled(false);
|
312 |
}else{
|
313 |
getTEscalaNumerica().setEnabled(true);
|
314 |
} |
315 |
|
316 |
cbEscala.setPreferredSize(new java.awt.Dimension(200, 20)); |
317 |
cbEscala.setLocation(100, 105); |
318 |
cbEscala.addActionListener(new java.awt.event.ActionListener() {
|
319 |
public void actionPerformed(java.awt.event.ActionEvent e) { |
320 |
if (cbEscala.getSelectedIndex() == 2) { |
321 |
getTEscalaNumerica().setEnabled(true);
|
322 |
} else {
|
323 |
getTEscalaNumerica().setEnabled(false);
|
324 |
} |
325 |
} |
326 |
}); |
327 |
} |
328 |
|
329 |
return cbEscala;
|
330 |
} |
331 |
|
332 |
/**
|
333 |
* This method initializes lEscalaNumerica
|
334 |
*
|
335 |
* @return javax.swing.JLabel
|
336 |
*/
|
337 |
private javax.swing.JLabel getLEscalaNumerica() {
|
338 |
if (lEscalaNumerica == null) { |
339 |
lEscalaNumerica = new javax.swing.JLabel();
|
340 |
lEscalaNumerica.setSize(86, 16); |
341 |
lEscalaNumerica.setText("1:");
|
342 |
lEscalaNumerica.setLocation(10, 130); |
343 |
} |
344 |
|
345 |
return lEscalaNumerica;
|
346 |
} |
347 |
|
348 |
/**
|
349 |
* This method initializes tEscalaNumerica
|
350 |
*
|
351 |
* @return javax.swing.JTextField
|
352 |
*/
|
353 |
private javax.swing.JTextField getTEscalaNumerica() {
|
354 |
if (tEscalaNumerica == null) { |
355 |
tEscalaNumerica = new javax.swing.JTextField();
|
356 |
tEscalaNumerica.setSize(220, 20); |
357 |
tEscalaNumerica.setPreferredSize(new java.awt.Dimension(200, 20)); |
358 |
|
359 |
if (m_projectView != null) { |
360 |
tEscalaNumerica.setText(String.valueOf(fframeview.getScale()));
|
361 |
} |
362 |
tEscalaNumerica.setLocation(100, 130); |
363 |
tEscalaNumerica.setEnabled(false);
|
364 |
} |
365 |
|
366 |
return tEscalaNumerica;
|
367 |
} |
368 |
|
369 |
/**
|
370 |
* This method initializes lExtension
|
371 |
*
|
372 |
* @return javax.swing.JLabel
|
373 |
*/
|
374 |
private javax.swing.JLabel getLExtension() {
|
375 |
if (lExtension == null) { |
376 |
lExtension = new javax.swing.JLabel();
|
377 |
lExtension.setSize(86, 16); |
378 |
lExtension.setText(PluginServices.getText(this, "extension")); |
379 |
lExtension.setLocation(10, 155); |
380 |
lExtension.setVisible(false);
|
381 |
} |
382 |
|
383 |
return lExtension;
|
384 |
} |
385 |
|
386 |
/**
|
387 |
* This method initializes cbExtension
|
388 |
*
|
389 |
* @return javax.swing.JComboBox
|
390 |
*/
|
391 |
private javax.swing.JComboBox getCbExtension() {
|
392 |
if (cbExtension == null) { |
393 |
//String[] s={"Rellenar marco de la vista","Recorte a vista"};
|
394 |
cbExtension = new javax.swing.JComboBox();
|
395 |
cbExtension.setSize(220, 20); |
396 |
cbExtension.addItem(PluginServices.getText(this,
|
397 |
"rellenar_marco_vista"));
|
398 |
cbExtension.addItem(PluginServices.getText(this, "recorte_vista")); |
399 |
|
400 |
cbExtension.setPreferredSize(new java.awt.Dimension(200, 20)); |
401 |
cbExtension.setLocation(100, 155); |
402 |
cbExtension.setEnabled(false);
|
403 |
cbExtension.setVisible(false);
|
404 |
} |
405 |
|
406 |
return cbExtension;
|
407 |
} |
408 |
|
409 |
/**
|
410 |
* This method initializes jLabel4
|
411 |
*
|
412 |
* @return javax.swing.JLabel
|
413 |
*/
|
414 |
private javax.swing.JLabel getLVisualizacion() {
|
415 |
if (lVisualizacion == null) { |
416 |
lVisualizacion = new javax.swing.JLabel();
|
417 |
lVisualizacion.setSize(86, 16); |
418 |
lVisualizacion.setText(PluginServices.getText(this, "visualizacion")); |
419 |
lVisualizacion.setLocation(10, 180); |
420 |
lVisualizacion.setVisible(false);
|
421 |
} |
422 |
|
423 |
return lVisualizacion;
|
424 |
} |
425 |
|
426 |
/**
|
427 |
* This method initializes cbVisualizacion
|
428 |
*
|
429 |
* @return javax.swing.JComboBox
|
430 |
*/
|
431 |
private javax.swing.JComboBox getCbVisualizacion() {
|
432 |
if (cbVisualizacion == null) { |
433 |
//String[] s={"Cuando activo","Siempre"};
|
434 |
cbVisualizacion = new javax.swing.JComboBox();
|
435 |
cbVisualizacion.setSize(220, 20); |
436 |
cbVisualizacion.addItem(PluginServices.getText(this, "cuando_activo")); |
437 |
cbVisualizacion.addItem(PluginServices.getText(this, "siempre")); |
438 |
cbVisualizacion.setSelectedIndex(fframeview.getViewing()); |
439 |
cbVisualizacion.setPreferredSize(new java.awt.Dimension(200, 20)); |
440 |
cbVisualizacion.setLocation(100, 180); |
441 |
cbVisualizacion.setEnabled(false);
|
442 |
cbVisualizacion.setVisible(false);
|
443 |
} |
444 |
|
445 |
return cbVisualizacion;
|
446 |
} |
447 |
|
448 |
/**
|
449 |
* This method initializes jButton
|
450 |
*
|
451 |
* @return javax.swing.JButton
|
452 |
*/
|
453 |
private javax.swing.JButton getbAceptar() {
|
454 |
if (bAceptar == null) { |
455 |
bAceptar = new javax.swing.JButton();
|
456 |
bAceptar.setSize(85, 26); |
457 |
bAceptar.setText(PluginServices.getText(this, "Aceptar")); |
458 |
bAceptar.setLocation(55, 179); |
459 |
bAceptar.addActionListener(new java.awt.event.ActionListener() {
|
460 |
public void actionPerformed(java.awt.event.ActionEvent e) { |
461 |
newFFrameView=(FFrameView)fframeview.cloneFFrame(m_layout); |
462 |
newFFrameView.setBoundBox(FLayoutUtilities.toSheetRect( |
463 |
rect, m_layout.getLayoutControl().getAT())); |
464 |
newFFrameView.setRotation(getPRotation().getRotation()); |
465 |
if (m_projectView != null) { |
466 |
newFFrameView.setLinked(getChbEnlaceVivo().isSelected()); |
467 |
newFFrameView.setName(m_projectView.getName()); |
468 |
|
469 |
newFFrameView.setTypeScale(getCbEscala() |
470 |
.getSelectedIndex()); |
471 |
newFFrameView.setScale(Double.parseDouble(
|
472 |
getTEscalaNumerica().getText())); |
473 |
newFFrameView.setView(m_projectView); |
474 |
|
475 |
//fframeview.setFMap(m_projectView.getMapContext());
|
476 |
newFFrameView.setExtension(getCbExtension() |
477 |
.getSelectedIndex()); |
478 |
newFFrameView.setViewing(getCbVisualizacion() |
479 |
.getSelectedIndex()); |
480 |
newFFrameView.setQuality(getCbCalidad() |
481 |
.getSelectedIndex()); |
482 |
newFFrameView.setBoundBox(FLayoutUtilities.toSheetRect( |
483 |
rect, m_layout.getLayoutControl().getAT())); |
484 |
|
485 |
/* for (int i=0;i<m_layout.getFFrames().size();i++){
|
486 |
IFFrame fframe=(IFFrame)m_layout.getFFrames().get(i);
|
487 |
if (fframe instanceof FFrameScaleBar){
|
488 |
if (((FFrameScaleBar)fframe).getFFrameView()==fframeview){
|
489 |
if (getJComboBox().getSelectedIndex()!=0){
|
490 |
((FFrameScaleBar)fframe).setIsFixed(true);
|
491 |
((FFrameScaleBar)fframe).setScaleView(Long.parseLong(getJTextField().getText()));
|
492 |
}else{
|
493 |
((FFrameScaleBar)fframe).setIsFixed(false);
|
494 |
}
|
495 |
|
496 |
}
|
497 |
}
|
498 |
|
499 |
|
500 |
}
|
501 |
*/
|
502 |
} |
503 |
|
504 |
isAcepted = true;
|
505 |
|
506 |
//}else{
|
507 |
// isAcepted=false;
|
508 |
//}
|
509 |
PluginServices.getMDIManager().closeWindow(FFrameViewDialog.this); |
510 |
} |
511 |
}); |
512 |
} |
513 |
|
514 |
return bAceptar;
|
515 |
} |
516 |
|
517 |
/**
|
518 |
* This method initializes bCancelar
|
519 |
*
|
520 |
* @return javax.swing.JButton
|
521 |
*/
|
522 |
private javax.swing.JButton getBCancelar() {
|
523 |
if (bCancelar == null) { |
524 |
bCancelar = new javax.swing.JButton();
|
525 |
bCancelar.setSize(85, 26); |
526 |
bCancelar.setText(PluginServices.getText(this, "Cancelar")); |
527 |
bCancelar.setLocation(195, 179); |
528 |
bCancelar.addActionListener(new java.awt.event.ActionListener() {
|
529 |
public void actionPerformed(java.awt.event.ActionEvent e) { |
530 |
newFFrameView=null;
|
531 |
PluginServices.getMDIManager().closeWindow(FFrameViewDialog.this); |
532 |
} |
533 |
}); |
534 |
} |
535 |
|
536 |
return bCancelar;
|
537 |
} |
538 |
|
539 |
/**
|
540 |
* This method initializes lCalidad
|
541 |
*
|
542 |
* @return javax.swing.JLabel
|
543 |
*/
|
544 |
private javax.swing.JLabel getLCalidad() {
|
545 |
if (lCalidad == null) { |
546 |
lCalidad = new javax.swing.JLabel();
|
547 |
lCalidad.setSize(86, 16); |
548 |
lCalidad.setText(PluginServices.getText(this, "calidad")); |
549 |
lCalidad.setLocation(10, 155); |
550 |
} |
551 |
|
552 |
return lCalidad;
|
553 |
} |
554 |
|
555 |
/**
|
556 |
* This method initializes cbCalidad
|
557 |
*
|
558 |
* @return javax.swing.JComboBox
|
559 |
*/
|
560 |
private javax.swing.JComboBox getCbCalidad() {
|
561 |
if (cbCalidad == null) { |
562 |
//String[] s={"Presentaci?n","Borrador"};
|
563 |
cbCalidad = new javax.swing.JComboBox();
|
564 |
cbCalidad.setSize(220, 20); |
565 |
cbCalidad.addItem(PluginServices.getText(this, "presentacion")); |
566 |
cbCalidad.addItem(PluginServices.getText(this, "borrador")); |
567 |
cbCalidad.setSelectedIndex(fframeview.getQuality()); |
568 |
cbCalidad.setPreferredSize(new java.awt.Dimension(200, 20)); |
569 |
cbCalidad.setLocation(100, 155); |
570 |
} |
571 |
|
572 |
return cbCalidad;
|
573 |
} |
574 |
|
575 |
/* (non-Javadoc)
|
576 |
* @see com.iver.mdiApp.ui.MDIManager.View#getViewInfo()
|
577 |
*/
|
578 |
public WindowInfo getWindowInfo() {
|
579 |
WindowInfo m_viewinfo = new WindowInfo(WindowInfo.MODALDIALOG);
|
580 |
|
581 |
//vi.setResizable(false);
|
582 |
m_viewinfo.setTitle(PluginServices.getText(this,
|
583 |
"propiedades_marco_vista"));
|
584 |
|
585 |
return m_viewinfo;
|
586 |
} |
587 |
|
588 |
/**
|
589 |
* @see com.iver.cit.gvsig.project.documents.layout.fframes.gui.dialogs.IFFrameDialog#getIsAcepted()
|
590 |
*/
|
591 |
public boolean getIsAcepted() { |
592 |
return isAcepted;
|
593 |
} |
594 |
|
595 |
/**
|
596 |
* @see com.iver.mdiApp.ui.MDIManager.IWindow#windowActivated()
|
597 |
*/
|
598 |
public void viewActivated() { |
599 |
} |
600 |
|
601 |
/**
|
602 |
* This method initializes rotation
|
603 |
*
|
604 |
* @return javax.swing.JPanel
|
605 |
*/
|
606 |
private JPRotation getPRotation() {
|
607 |
if (rotation == null) { |
608 |
rotation = new JPRotation();
|
609 |
rotation.setBounds(330, 90, 120, 120); |
610 |
} |
611 |
return rotation;
|
612 |
} |
613 |
|
614 |
public IFFrame getFFrame() {
|
615 |
return newFFrameView;
|
616 |
} |
617 |
} // @jve:decl-index=0:visual-constraint="10,10"
|