Statistics
| Revision:

gvsig-3d / 2.1 / trunk / org.gvsig.gvsig3d / org.gvsig.gvsig3d.app / org.gvsig.gvsig3d.app.commons / src / main / java / org / gvsig / gvsig3d / app / layout / fframe / gui / dialog / FFrameView3DDialog.java @ 385

History | View | Annotate | Download (20.5 KB)

1
/* gvSIG 3D extension for gvSIG
2
 *
3
 * Copyright (C) 2012 Prodevelop.
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., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
18
 *
19
 * For more information, contact:
20
 *
21
 *   Prodevelop, S.L.
22
 *   Pza. Don Juan de Villarrasa, 14 - 5
23
 *   46001 Valencia
24
 *   Spain
25
 *
26
 *   +34 963 510 612
27
 *   +34 963 510 968
28
 *   prode@prodevelop.es
29
 *   http://www.prodevelop.es
30
 */
31
/*
32
 * AUTHORS:
33
 * 2012 AI2 - Instituto Universitario de Automatica e Informatica Industrial.
34
 * Universitat Politecnica de Valencia (UPV)
35
 * http://www.ai2.upv.es
36
 */
37

    
38

    
39
package org.gvsig.gvsig3d.app.layout.fframe.gui.dialog;
40

    
41
import java.awt.Dimension;
42
import java.awt.geom.Rectangle2D;
43

    
44
import javax.swing.JCheckBox;
45
import javax.swing.JList;
46
import javax.swing.JPanel;
47

    
48
import org.gvsig.andami.PluginServices;
49
import org.gvsig.andami.ui.mdiManager.WindowInfo;
50
import org.gvsig.app.project.documents.layout.FLayoutUtilities;
51
import org.gvsig.app.project.documents.layout.fframes.FFrameGrid;
52
import org.gvsig.app.project.documents.layout.fframes.FFrameView;
53
import org.gvsig.app.project.documents.layout.fframes.IFFrame;
54
import org.gvsig.app.project.documents.layout.fframes.gui.JPRotation;
55
import org.gvsig.app.project.documents.layout.fframes.gui.dialogs.AbstractFFrameDialog;
56
import org.gvsig.app.project.documents.layout.fframes.gui.dialogs.FFrameViewDialog;
57
import org.gvsig.app.project.documents.layout.fframes.gui.dialogs.IFFrameDialog;
58
import org.gvsig.app.project.documents.layout.gui.LayoutPanel;
59
import org.gvsig.app.project.documents.view.BaseViewDocument;
60
import org.gvsig.gvsig3d.app.layout.fframe.FFrameView3D;
61
import org.gvsig.gvsig3d.app.layout.fframe.ListView3DModel;
62
import org.gvsig.gvsig3d.map3d.MapContext3D;
63
import org.gvsig.gvsig3d.map3d.ViewPort3D;
64

    
65
/**
66
 * @author Jesus Zarzoso- jzarzoso@ai2.upv.es
67
 * @version $Id$
68
 * 
69
 */
70
public class FFrameView3DDialog extends AbstractFFrameDialog implements IFFrameDialog {
71
        private javax.swing.JPanel jContentPane = null;
72
        private javax.swing.JLabel lVistas = null;
73
        private javax.swing.JScrollPane jScrollPane = null;
74
        private javax.swing.JList liVistas = null; //  @jve:visual-info  decl-index=0 visual-constraint="98,-3"
75
        private javax.swing.JCheckBox chbEnlaceVivo = null;
76
        private javax.swing.JLabel lEscala = null;
77
        private javax.swing.JComboBox cbEscala = null;
78
        private javax.swing.JLabel lEscalaNumerica = null;
79
        private javax.swing.JTextField tEscalaNumerica = null;
80
        private javax.swing.JLabel lExtension = null;
81
        private javax.swing.JComboBox cbExtension = null;
82
        private javax.swing.JLabel lVisualizacion = null;
83
        private javax.swing.JComboBox cbVisualizacion = null;
84
        private javax.swing.JButton bAceptar = null;
85
        private javax.swing.JButton bCancelar = null;
86
        private javax.swing.JLabel lCalidad = null;
87
        private javax.swing.JComboBox cbCalidad = null;
88
        private BaseViewDocument m_projectView = null;
89
        private Rectangle2D rect = new Rectangle2D.Double();
90
        private FFrameView3D fframeview = null; //new FFrameView();
91
        private boolean isAcepted = false;
92
        private JPRotation rotation = null;
93
        private FFrameView3D newFFrameView=null;
94
        private javax.swing.JCheckBox chbShowGrid = null;
95
        /**
96
         * This is the default constructor
97
         *
98
         * @param layout Referencia al Layout.
99
         * @param fframe Referencia al fframe vista.
100
         */
101
        public FFrameView3DDialog(LayoutPanel layoutPanel, FFrameView3D frame) {
102
                super(layoutPanel, frame);
103
                fframeview = frame;
104
                initialize();
105
        }
106

    
107
        /**
108
         * This method initializes this
109
         */
110
        private void initialize() {
111
                this.setLayout(null);
112
                this.add(getJContentPane(), null);
113
                this.setSize(463, 222);
114

    
115
                if (fframeview.getTypeScale() == 0 || fframeview.getTypeScale() == 1) {
116
                                getTEscalaNumerica().setEnabled(false);
117
                        }else{
118
                                getTEscalaNumerica().setEnabled(true);
119
                        }
120
                getPRotation().setRotation(fframeview.getRotation());
121
        }
122

    
123
        /**
124
         * Inserta el rect�ngulo que ocupar� el fframe vista.
125
         *
126
         * @param r Rect�ngulo.
127
         */
128
        public void setRectangle(Rectangle2D r) {
129
                rect.setRect(r);
130
        }
131

    
132
        /**
133
         * This method initializes jContentPane
134
         *
135
         * @return javax.swing.JPanel
136
         */
137
        private javax.swing.JPanel getJContentPane() {
138
                if (jContentPane == null) {
139
                        jContentPane = new javax.swing.JPanel();
140
                        jContentPane.setLayout(null);
141
                        jContentPane.add(getLVistas(), null);
142
                        jContentPane.add(getJScrollPane(), null);
143
//                        jContentPane.add(getChbEnlaceVivo(), null);
144
//                        jContentPane.add(getLEscala(), null);
145
//                        jContentPane.add(getCbEscala(), null);
146
//                        jContentPane.add(getLEscalaNumerica(), null);
147
//                        jContentPane.add(getTEscalaNumerica(), null);
148
//                        jContentPane.add(getLExtension(), null);
149
//                        jContentPane.add(getCbExtension(), null);
150
                        jContentPane.add(getLVisualizacion(), null);
151
                        jContentPane.add(getCbVisualizacion(), null);
152
//                        jContentPane.add(getLCalidad(), null);
153
//                        jContentPane.add(getCbCalidad(), null);
154
                        jContentPane.add(getbAceptar(), null);
155
                        jContentPane.add(getBCancelar(), null);
156
                        jContentPane.setSize(462, 220);
157
                        jContentPane.setPreferredSize(new java.awt.Dimension(60, 60));
158
                        jContentPane.setLocation(0, 0);
159
                        jContentPane.add(getPRotation(), null);
160
                }
161

    
162
                return jContentPane;
163
        }
164

    
165
        /**
166
         * This method initializes lVistas
167
         *
168
         * @return javax.swing.JLabel
169
         */
170
        private javax.swing.JLabel getLVistas() {
171
                if (lVistas == null) {
172
                        lVistas = new javax.swing.JLabel();
173
                        lVistas.setSize(85, 19);
174
                        lVistas.setText(PluginServices.getText(this, "Vista"));
175
                        lVistas.setLocation(10, 10);
176
                }
177

    
178
                return lVistas;
179
        }
180

    
181
        /**
182
         * This method initializes jScrollPane
183
         *
184
         * @return javax.swing.JScrollPane
185
         */
186
        private javax.swing.JScrollPane getJScrollPane() {
187
                if (jScrollPane == null) {
188
                        jScrollPane = new javax.swing.JScrollPane();
189
                        jScrollPane.setViewportView(getLiVistas());
190
                        jScrollPane.setBounds(99, 8, 224, 64);
191
                        jScrollPane.setPreferredSize(new java.awt.Dimension(250, 60));
192
                }
193

    
194
                return jScrollPane;
195
        }
196

    
197
        /**
198
         * This method initializes liVistas
199
         *
200
         * @return javax.swing.JList
201
         */
202
        private javax.swing.JList getLiVistas() {
203
                if (liVistas == null) {
204
                        ListView3DModel listmodel = new ListView3DModel();
205
                        listmodel.addViews();
206
                        liVistas = new javax.swing.JList();
207
                        liVistas.setModel(listmodel);
208
                        for (int i = 0; i < liVistas.getModel().getSize(); i++) {
209
                                if ((fframeview.getMapContext() != null) && (fframeview.getMapContext() instanceof MapContext3D)){
210

    
211
                                        BaseViewDocument pvaux= (BaseViewDocument) liVistas.getModel()
212
                                                                                                                  .getElementAt(i);
213

    
214
                                        if (pvaux.getMapContext().equals(fframeview.getMapContext())) {
215
                                                liVistas.setSelectedIndex(i);
216
                                                m_projectView= (BaseViewDocument) liVistas.getModel()
217
                                                  .getElementAt(i);
218
                                        }
219
                                }
220
                        }
221

    
222
                        liVistas.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
223
                                        private int selectIndex=-1;
224
                                        private Rectangle2D boundBox;
225
                                        public void valueChanged(
226
                                                javax.swing.event.ListSelectionEvent e) {
227
                                                int selectInt = ((JList)e.getSource()).getSelectedIndex();
228
                                                if (selectInt!=selectIndex){
229
                                                        selectIndex=selectInt;
230
                                                        if (selectIndex==-1)
231
                                                                return;
232
                                                m_projectView = (BaseViewDocument) liVistas.getModel()
233
                                                                                                                          .getElementAt(selectInt);
234

    
235
                                                getCbEscala().setSelectedItem(PluginServices.getText(this, "automatico"));
236
                                                boundBox=FLayoutUtilities.toSheetRect(rect, layoutPanel.getLayoutControl().getAT());
237
//                                                fframeview.setBoundBox(FLayoutUtilities.toSheetRect(
238
//                                                                rect, m_layout.getAT()));
239

    
240
//                                                fframeview.setView(m_projectView);
241
//
242
//                                                fframeview.setMapUnits(m_projectView.getMapContext()
243
//                                                                                                                        .getViewPort()
244
//                                                                                                                        .getMapUnits());
245
                                                ViewPort3D vp=(ViewPort3D) m_projectView.getMapContext().getViewPort();//.cloneViewPort();
246
                                                vp.setImageSize(new Dimension((int)rect.getWidth(),(int)rect.getHeight()));
247
//                                                getTEscalaNumerica().setText(String.valueOf(FLayoutUtilities.getScaleView(vp,
248
//                                                boundBox.getWidth(), FLayoutUtilities.fromSheetDistance(boundBox.getWidth(),layoutPanel.getLayoutControl().getAT()))));
249
//                                                getTEscalaNumerica().setText(String.valueOf(
250
//                                                                fframeview.getScale()));
251
                                        }
252
                                        }
253
                                });
254
                }
255

    
256
                return liVistas;
257
        }
258

    
259
        /**
260
         * This method initializes chbEnlaceVivo
261
         *
262
         * @return javax.swing.JCheckBox
263
         */
264
        private javax.swing.JCheckBox getChbEnlaceVivo() {
265
                if (chbEnlaceVivo == null) {
266
                        chbEnlaceVivo = new javax.swing.JCheckBox();
267
                        chbEnlaceVivo.setSize(88, 24);
268
                        chbEnlaceVivo.setText(PluginServices.getText(this, "enlace_vivo"));
269
                        chbEnlaceVivo.setSelected(fframeview.getLinked());
270
                        chbEnlaceVivo.setLocation(10, 75);
271
                        chbEnlaceVivo.setEnabled(true);
272
                        chbEnlaceVivo.addActionListener(new java.awt.event.ActionListener() {
273
                                        public void actionPerformed(java.awt.event.ActionEvent e) {
274
                                                
275
                                        }
276
                                });
277
                }
278

    
279
                return chbEnlaceVivo;
280
        }
281

    
282
        /**
283
         * This method initializes lEscala
284
         *
285
         * @return javax.swing.JLabel
286
         */
287
        private javax.swing.JLabel getLEscala() {
288
                if (lEscala == null) {
289
                        lEscala = new javax.swing.JLabel();
290
                        lEscala.setSize(86, 16);
291
                        lEscala.setText(PluginServices.getText(this, "escala"));
292
                        lEscala.setLocation(10, 105);
293
                }
294

    
295
                return lEscala;
296
        }
297

    
298
        /**
299
         * This method initializes cbEscala
300
         *
301
         * @return javax.swing.JComboBox
302
         */
303
        private javax.swing.JComboBox getCbEscala() {
304
                if (cbEscala == null) {
305
                        //String[] s={"Autom�tico","Conservar escala de visualizaci�n","Escala especificada por el usuario"};
306
                        cbEscala = new javax.swing.JComboBox();
307
                        cbEscala.setSize(220, 20);
308
                        cbEscala.addItem(PluginServices.getText(this, "automatico"));
309
                        cbEscala.addItem(PluginServices.getText(this,
310
                                        "conservar_escala_visualizacion"));
311
                        cbEscala.addItem(PluginServices.getText(this, "escala_usuario"));
312
                        cbEscala.setSelectedIndex(fframeview.getTypeScale());
313

    
314
                        if (fframeview.getTypeScale() == 0 || fframeview.getTypeScale() == 1) {
315
                                getTEscalaNumerica().setEnabled(false);
316
                        }else{
317
                                getTEscalaNumerica().setEnabled(true);
318
                        }
319

    
320
                        cbEscala.setPreferredSize(new java.awt.Dimension(200, 20));
321
                        cbEscala.setLocation(100, 105);
322
                        cbEscala.addActionListener(new java.awt.event.ActionListener() {
323
                                        public void actionPerformed(java.awt.event.ActionEvent e) {
324
                                                if (cbEscala.getSelectedIndex() == 2) {
325
                                                        getTEscalaNumerica().setEnabled(true);
326
                                                } else {
327
                                                        getTEscalaNumerica().setEnabled(false);
328
                                                }
329
                                        }
330
                                });
331
                }
332

    
333
                return cbEscala;
334
        }
335

    
336
        /**
337
         * This method initializes lEscalaNumerica
338
         *
339
         * @return javax.swing.JLabel
340
         */
341
        private javax.swing.JLabel getLEscalaNumerica() {
342
                if (lEscalaNumerica == null) {
343
                        lEscalaNumerica = new javax.swing.JLabel();
344
                        lEscalaNumerica.setSize(86, 16);
345
                        lEscalaNumerica.setText("1:");
346
                        lEscalaNumerica.setLocation(10, 130);
347
                }
348

    
349
                return lEscalaNumerica;
350
        }
351

    
352
        /**
353
         * This method initializes tEscalaNumerica
354
         *
355
         * @return javax.swing.JTextField
356
         */
357
        private javax.swing.JTextField getTEscalaNumerica() {
358
                if (tEscalaNumerica == null) {
359
                        tEscalaNumerica = new javax.swing.JTextField();
360
                        tEscalaNumerica.setSize(220, 20);
361
                        tEscalaNumerica.setPreferredSize(new java.awt.Dimension(200, 20));
362

    
363
                        if (m_projectView != null) {
364
                                tEscalaNumerica.setText(String.valueOf(fframeview.getScale()));
365
                        }
366
                        tEscalaNumerica.setLocation(100, 130);
367
                        tEscalaNumerica.setEnabled(false);
368
                }
369

    
370
                return tEscalaNumerica;
371
        }
372

    
373
        /**
374
         * This method initializes lExtension
375
         *
376
         * @return javax.swing.JLabel
377
         */
378
        private javax.swing.JLabel getLExtension() {
379
                if (lExtension == null) {
380
                        lExtension = new javax.swing.JLabel();
381
                        lExtension.setSize(86, 16);
382
                        lExtension.setText(PluginServices.getText(this, "extension"));
383
                        lExtension.setLocation(10, 155);
384
                        lExtension.setVisible(false);
385
                }
386

    
387
                return lExtension;
388
        }
389

    
390
        /**
391
         * This method initializes cbExtension
392
         *
393
         * @return javax.swing.JComboBox
394
         */
395
        private javax.swing.JComboBox getCbExtension() {
396
                if (cbExtension == null) {
397
                        //String[] s={"Rellenar marco de la vista","Recorte a vista"};
398
                        cbExtension = new javax.swing.JComboBox();
399
                        cbExtension.setSize(220, 20);
400
                        cbExtension.addItem(PluginServices.getText(this,
401
                                        "rellenar_marco_vista"));
402
                        cbExtension.addItem(PluginServices.getText(this, "recorte_vista"));
403

    
404
                        cbExtension.setPreferredSize(new java.awt.Dimension(200, 20));
405
                        cbExtension.setLocation(100, 155);
406
                        cbExtension.setEnabled(false);
407
                        cbExtension.setVisible(false);
408
                }
409

    
410
                return cbExtension;
411
        }
412

    
413
        /**
414
         * This method initializes jLabel4
415
         *
416
         * @return javax.swing.JLabel
417
         */
418
        private javax.swing.JLabel getLVisualizacion() {
419
                if (lVisualizacion == null) {
420
                        lVisualizacion = new javax.swing.JLabel();
421
                        lVisualizacion.setSize(86, 16);
422
                        lVisualizacion.setText(PluginServices.getText(this, "visualizacion"));
423
                        lVisualizacion.setLocation(10, 155);
424
                        lVisualizacion.setVisible(false);
425
                }
426

    
427
                return lVisualizacion;
428
        }
429

    
430
        /**
431
         * This method initializes cbVisualizacion
432
         *
433
         * @return javax.swing.JComboBox
434
         */
435
        private javax.swing.JComboBox getCbVisualizacion() {
436
                if (cbVisualizacion == null) {
437
                        //String[] s={"Cuando activo","Siempre"};
438
                        cbVisualizacion = new javax.swing.JComboBox();
439
                        cbVisualizacion.setSize(220, 20);
440
                        cbVisualizacion.addItem(PluginServices.getText(this, "cuando_activo"));
441
                        cbVisualizacion.addItem(PluginServices.getText(this, "siempre"));
442
                        cbVisualizacion.setSelectedIndex(fframeview.getViewing());
443
                        cbVisualizacion.setPreferredSize(new java.awt.Dimension(200, 20));
444
                        cbVisualizacion.setLocation(100, 180);
445
                        cbVisualizacion.setEnabled(false);
446
                        cbVisualizacion.setVisible(false);
447
                }
448

    
449
                return cbVisualizacion;
450
        }
451

    
452
        /**
453
         * This method initializes jButton
454
         *
455
         * @return javax.swing.JButton
456
         */
457
        private javax.swing.JButton getbAceptar() {
458
                 if (bAceptar == null) {
459
                    bAceptar = new javax.swing.JButton();
460
                    bAceptar.setSize(85, 26);
461
                    bAceptar.setText(PluginServices.getText(this, "Aceptar"));
462
                    bAceptar.setBounds(new java.awt.Rectangle(109,223,85,26));
463
                    bAceptar.addActionListener(new java.awt.event.ActionListener() {
464
                        public void actionPerformed(java.awt.event.ActionEvent e) {
465
                            try {
466
                                newFFrameView=(FFrameView3D)fframeview.clone();
467
                                newFFrameView.setBoundBox(FLayoutUtilities.toSheetRect(
468
                                    rect, layoutPanel.getLayoutControl().getAT()));
469
                                newFFrameView.setRotation(getPRotation().getRotation());
470
                                if (m_projectView != null) {
471
                                    newFFrameView.setLinked(getChbEnlaceVivo().isSelected());
472
//                                    newFFrameView.setName(m_projectView.getName());
473

    
474
                                    newFFrameView.setTypeScale(getCbEscala()
475
                                        .getSelectedIndex());
476
                                    newFFrameView.setScale(Double.parseDouble(
477
                                        getTEscalaNumerica().getText()));
478
                                    newFFrameView.setView(m_projectView);
479

    
480
                                    //fframeview.setFMap(m_projectView.getMapContext());
481
                                    newFFrameView.setExtension(getCbExtension()
482
                                        .getSelectedIndex());
483
                                    newFFrameView.setViewing(getCbVisualizacion()
484
                                        .getSelectedIndex());
485
                                    newFFrameView.setQuality(getCbCalidad()
486
                                        .getSelectedIndex());
487
//                                    if (fframeview.getGrid()!=null){
488
//                                        ((FFrameGrid)fframeview.getGrid()).setLayout(layoutPanel);
489
//                                        ((FFrameGrid)fframeview.getGrid()).setFFrameDependence(newFFrameView);
490
//                                        //                                                                ((FFrameGrid)grid).setBoundBox();
491
//                                        newFFrameView.setGrid(fframeview.getGrid());
492
//                                    }
493
//                                    newFFrameView.showGrid(getChbShowGrid().isSelected());
494
                                    newFFrameView.setBoundBox(FLayoutUtilities.toSheetRect(
495
                                        rect, layoutPanel.getLayoutControl().getAT()));
496

    
497
                                    /*        for (int i=0;i<m_layout.getFFrames().size();i++){
498
                                                                   IFFrame fframe=(IFFrame)m_layout.getFFrames().get(i);
499
                                                                   if (fframe instanceof FFrameScaleBar){
500
                                                                           if (((FFrameScaleBar)fframe).getFFrameView()==fframeview){
501
                                                                           if (getJComboBox().getSelectedIndex()!=0){
502
                                                                           ((FFrameScaleBar)fframe).setIsFixed(true);
503
                                                                           ((FFrameScaleBar)fframe).setScaleView(Long.parseLong(getJTextField().getText()));
504
                                                                           }else{
505
                                                                                   ((FFrameScaleBar)fframe).setIsFixed(false);
506
                                                                           }
507

508
                                                                           }
509
                                                                   }
510

511

512
                                                                   }
513
                                     */
514
                                }
515
                            } catch (CloneNotSupportedException e1) {
516
                                LOG.error("It is not possible clonate the object", e);
517
                            }
518
                            isAcepted = true;
519

    
520
                            //}else{
521
                            //        isAcepted=false;
522
                            //}
523
                            PluginServices.getMDIManager().closeWindow(FFrameView3DDialog.this);
524
                        }
525
                    });
526
                }
527

    
528
                return bAceptar;
529
        }
530
        
531
    /**
532
     * This method initializes chbShowGrid
533
     *
534
     * @return javax.swing.JCheckBox
535
     */
536
    private JCheckBox getChbShowGrid() {
537
        if (chbShowGrid == null) {
538
            chbShowGrid = new JCheckBox();
539
            chbShowGrid.setBounds(new java.awt.Rectangle(13,191,181,21));
540
            //chbShowGrid.setSelected(fframeview.isShowGrid());
541
            chbShowGrid.setText(PluginServices.getText(this,"Show_grid"));
542
        }
543
        return chbShowGrid;
544
    }
545

    
546
        /**
547
         * This method initializes bCancelar
548
         *
549
         * @return javax.swing.JButton
550
         */
551
        private javax.swing.JButton getBCancelar() {
552
                if (bCancelar == null) {
553
                        bCancelar = new javax.swing.JButton();
554
                        bCancelar.setSize(85, 26);
555
                        bCancelar.setText(PluginServices.getText(this, "Cancelar"));
556
                        bCancelar.setLocation(195, 179);
557
                        bCancelar.addActionListener(new java.awt.event.ActionListener() {
558
                                        public void actionPerformed(java.awt.event.ActionEvent e) {
559
                                                newFFrameView=null;
560
                                                PluginServices.getMDIManager().closeWindow(FFrameView3DDialog.this);
561
                                        }
562
                                });
563
                }
564

    
565
                return bCancelar;
566
        }
567

    
568
        /**
569
         * This method initializes lCalidad
570
         *
571
         * @return javax.swing.JLabel
572
         */
573
        private javax.swing.JLabel getLCalidad() {
574
                if (lCalidad == null) {
575
                        lCalidad = new javax.swing.JLabel();
576
                        lCalidad.setSize(86, 16);
577
                        lCalidad.setText(PluginServices.getText(this, "calidad"));
578
                        lCalidad.setLocation(10, 155);
579
                }
580

    
581
                return lCalidad;
582
        }
583

    
584
        /**
585
         * This method initializes cbCalidad
586
         *
587
         * @return javax.swing.JComboBox
588
         */
589
        private javax.swing.JComboBox getCbCalidad() {
590
                if (cbCalidad == null) {
591
                        //String[] s={"Presentaci�n","Borrador"};
592
                        cbCalidad = new javax.swing.JComboBox();
593
                        cbCalidad.setSize(220, 20);
594
                        cbCalidad.addItem(PluginServices.getText(this, "presentacion"));
595
                        cbCalidad.addItem(PluginServices.getText(this, "borrador"));
596
                        cbCalidad.setSelectedIndex(fframeview.getQuality());
597
                        cbCalidad.setPreferredSize(new java.awt.Dimension(200, 20));
598
                        cbCalidad.setLocation(100, 155);
599
                }
600

    
601
                return cbCalidad;
602
        }
603

    
604
        /* (non-Javadoc)
605
         * @see com.iver.mdiApp.ui.MDIManager.View#getViewInfo()
606
         */
607
        public WindowInfo getWindowInfo() {
608
                WindowInfo m_viewinfo = new WindowInfo(WindowInfo.MODALDIALOG);
609

    
610
                //vi.setResizable(false);
611
                m_viewinfo.setTitle(PluginServices.getText(this,
612
                                "propiedades_marco_vista"));
613

    
614
                return m_viewinfo;
615
        }
616

    
617
        /**
618
         * @see com.iver.cit.gvsig.project.documents.layout.fframes.gui.dialogs.IFFrameDialog#getIsAcepted()
619
         */
620
        public boolean getIsAcepted() {
621
                return isAcepted;
622
        }
623

    
624
        /**
625
         * @see com.iver.mdiApp.ui.MDIManager.IWindow#windowActivated()
626
         */
627
        public void viewActivated() {
628
        }
629

    
630
        /**
631
         * This method initializes rotation
632
         *
633
         * @return javax.swing.JPanel
634
         */
635
        private JPRotation getPRotation() {
636
                if (rotation == null) {
637
                        rotation = new JPRotation();
638
                        rotation.setBounds(330, 90, 120, 120);
639
                }
640
                return rotation;
641
        }
642

    
643
        public IFFrame getFFrame() {
644
                return newFFrameView;
645
        }
646
        public Object getWindowProfile() {
647
                return WindowInfo.DIALOG_PROFILE;
648
        }
649
}  //  @jve:decl-index=0:visual-constraint="10,10"