Statistics
| Revision:

root / branches / v10 / applications / appgvSIG / src / com / iver / cit / gvsig / project / documents / layout / fframes / gui / dialogs / FFrameViewDialog.java @ 11225

History | View | Annotate | Download (18.1 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.Dimension;
48
import java.awt.geom.Rectangle2D;
49

    
50
import javax.swing.JList;
51
import javax.swing.JPanel;
52

    
53
import com.iver.andami.PluginServices;
54
import com.iver.andami.ui.mdiManager.WindowInfo;
55
import com.iver.cit.gvsig.fmap.ViewPort;
56
import com.iver.cit.gvsig.gui.layout.Layout;
57
import com.iver.cit.gvsig.gui.layout.fframes.FFrameView;
58
import com.iver.cit.gvsig.project.documents.layout.FLayoutUtilities;
59
import com.iver.cit.gvsig.project.documents.layout.fframes.IFFrame;
60
import com.iver.cit.gvsig.project.documents.layout.fframes.ListViewModel;
61
import com.iver.cit.gvsig.project.documents.layout.fframes.gui.JPRotation;
62
import com.iver.cit.gvsig.project.documents.view.ProjectView;
63

    
64

    
65
/**
66
 * Di?logo para a?adir una vista al Layout.
67
 *
68
 * @author Vicente Caballero Navarro
69
 */
70
public class FFrameViewDialog extends JPanel 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 ProjectView m_projectView = null;
89
        private Rectangle2D rect = new Rectangle2D.Double();
90
        private FFrameView fframeview = null; //new FFrameView();
91
        private Layout m_layout = null;
92
        private boolean isAcepted = false;
93
        private JPRotation rotation = null;
94
        private FFrameView newFFrameView=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 FFrameViewDialog(Layout layout, FFrameView fframe) {
102
                super();
103
                fframeview = fframe;
104
                m_layout = layout;
105
                initialize();
106
        }
107

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

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

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

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

    
163
                return jContentPane;
164
        }
165

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

    
179
                return lVistas;
180
        }
181

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

    
195
                return jScrollPane;
196
        }
197

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

    
212
                                        ProjectView pvaux= (ProjectView) liVistas.getModel()
213
                                                                                                                  .getElementAt(i);
214

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

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

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

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

    
257
                return liVistas;
258
        }
259

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

    
280
                return chbEnlaceVivo;
281
        }
282

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

    
296
                return lEscala;
297
        }
298

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

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

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

    
334
                return cbEscala;
335
        }
336

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

    
350
                return lEscalaNumerica;
351
        }
352

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

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

    
371
                return tEscalaNumerica;
372
        }
373

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

    
388
                return lExtension;
389
        }
390

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

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

    
411
                return cbExtension;
412
        }
413

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

    
428
                return lVisualizacion;
429
        }
430

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

    
450
                return cbVisualizacion;
451
        }
452

    
453
        /**
454
         * This method initializes jButton
455
         *
456
         * @return javax.swing.JButton
457
         */
458
        private javax.swing.JButton getbAceptar() {
459
                if (bAceptar == null) {
460
                        bAceptar = new javax.swing.JButton();
461
                        bAceptar.setSize(85, 26);
462
                        bAceptar.setText(PluginServices.getText(this, "Aceptar"));
463
                        bAceptar.setLocation(55, 179);
464
                        bAceptar.addActionListener(new java.awt.event.ActionListener() {
465
                                        public void actionPerformed(java.awt.event.ActionEvent e) {
466
                                                newFFrameView=(FFrameView)fframeview.cloneFFrame(m_layout);
467
                                                newFFrameView.setBoundBox(FLayoutUtilities.toSheetRect(
468
                                                                rect, m_layout.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
                                                        newFFrameView.setBoundBox(FLayoutUtilities.toSheetRect(
488
                                                                        rect, m_layout.getAT()));
489

    
490
                                                        /*        for (int i=0;i<m_layout.getFFrames().size();i++){
491
                                                           IFFrame fframe=(IFFrame)m_layout.getFFrames().get(i);
492
                                                           if (fframe instanceof FFrameScaleBar){
493
                                                                   if (((FFrameScaleBar)fframe).getFFrameView()==fframeview){
494
                                                                   if (getJComboBox().getSelectedIndex()!=0){
495
                                                                   ((FFrameScaleBar)fframe).setIsFixed(true);
496
                                                                   ((FFrameScaleBar)fframe).setScaleView(Long.parseLong(getJTextField().getText()));
497
                                                                   }else{
498
                                                                           ((FFrameScaleBar)fframe).setIsFixed(false);
499
                                                                   }
500

501
                                                                   }
502
                                                           }
503

504

505
                                                           }
506
                                                         */
507
                                                }
508

    
509
                                                isAcepted = true;
510

    
511
                                                //}else{
512
                                                //        isAcepted=false;
513
                                                //}
514
                                                PluginServices.getMDIManager().closeWindow(FFrameViewDialog.this);
515
                                        }
516
                                });
517
                }
518

    
519
                return bAceptar;
520
        }
521

    
522
        /**
523
         * This method initializes bCancelar
524
         *
525
         * @return javax.swing.JButton
526
         */
527
        private javax.swing.JButton getBCancelar() {
528
                if (bCancelar == null) {
529
                        bCancelar = new javax.swing.JButton();
530
                        bCancelar.setSize(85, 26);
531
                        bCancelar.setText(PluginServices.getText(this, "Cancelar"));
532
                        bCancelar.setLocation(195, 179);
533
                        bCancelar.addActionListener(new java.awt.event.ActionListener() {
534
                                        public void actionPerformed(java.awt.event.ActionEvent e) {
535
                                                newFFrameView=null;
536
                                                PluginServices.getMDIManager().closeWindow(FFrameViewDialog.this);
537
                                        }
538
                                });
539
                }
540

    
541
                return bCancelar;
542
        }
543

    
544
        /**
545
         * This method initializes lCalidad
546
         *
547
         * @return javax.swing.JLabel
548
         */
549
        private javax.swing.JLabel getLCalidad() {
550
                if (lCalidad == null) {
551
                        lCalidad = new javax.swing.JLabel();
552
                        lCalidad.setSize(86, 16);
553
                        lCalidad.setText(PluginServices.getText(this, "calidad"));
554
                        lCalidad.setLocation(10, 155);
555
                }
556

    
557
                return lCalidad;
558
        }
559

    
560
        /**
561
         * This method initializes cbCalidad
562
         *
563
         * @return javax.swing.JComboBox
564
         */
565
        private javax.swing.JComboBox getCbCalidad() {
566
                if (cbCalidad == null) {
567
                        //String[] s={"Presentaci?n","Borrador"};
568
                        cbCalidad = new javax.swing.JComboBox();
569
                        cbCalidad.setSize(220, 20);
570
                        cbCalidad.addItem(PluginServices.getText(this, "presentacion"));
571
                        cbCalidad.addItem(PluginServices.getText(this, "borrador"));
572
                        cbCalidad.setSelectedIndex(fframeview.getQuality());
573
                        cbCalidad.setPreferredSize(new java.awt.Dimension(200, 20));
574
                        cbCalidad.setLocation(100, 155);
575
                }
576

    
577
                return cbCalidad;
578
        }
579

    
580
        /* (non-Javadoc)
581
         * @see com.iver.mdiApp.ui.MDIManager.View#getViewInfo()
582
         */
583
        public WindowInfo getWindowInfo() {
584
                WindowInfo m_viewinfo = new WindowInfo(WindowInfo.MODALDIALOG);
585

    
586
                //vi.setResizable(false);
587
                m_viewinfo.setTitle(PluginServices.getText(this,
588
                                "propiedades_marco_vista"));
589

    
590
                return m_viewinfo;
591
        }
592

    
593
        /**
594
         * @see com.iver.cit.gvsig.project.documents.layout.fframes.gui.dialogs.IFFrameDialog#getIsAcepted()
595
         */
596
        public boolean getIsAcepted() {
597
                return isAcepted;
598
        }
599

    
600
        /**
601
         * @see com.iver.mdiApp.ui.MDIManager.IWindow#windowActivated()
602
         */
603
        public void viewActivated() {
604
        }
605

    
606
        /**
607
         * This method initializes rotation
608
         *
609
         * @return javax.swing.JPanel
610
         */
611
        private JPRotation getPRotation() {
612
                if (rotation == null) {
613
                        rotation = new JPRotation();
614
                        rotation.setBounds(330, 90, 120, 120);
615
                }
616
                return rotation;
617
        }
618

    
619
        public IFFrame getFFrame() {
620
                return newFFrameView;
621
        }
622
}  //  @jve:decl-index=0:visual-constraint="10,10"