Statistics
| Revision:

root / branches / v2_0_0_prep / libraries / libCorePlugin / src / org / gvsig / coreplugin / mdiManager / ComplexDesktopPane.java @ 29630

History | View | Annotate | Download (2.78 KB)

1
/*
2
 * Created on 10-mar-2005
3
 *
4
 * gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
5
 *
6
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
7
 *
8
 * This program is free software; you can redistribute it and/or
9
 * modify it under the terms of the GNU General Public License
10
 * as published by the Free Software Foundation; either version 2
11
 * of the License, or (at your option) any later version.
12
 *
13
 * This program is distributed in the hope that it will be useful,
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 * GNU General Public License for more details.
17
 *
18
 * You should have received a copy of the GNU General Public License
19
 * along with this program; if not, write to the Free Software
20
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, 
21
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 org.gvsig.coreplugin.mdiManager;
46

    
47
import javax.swing.JPanel;
48

    
49

    
50
import javax.swing.JSplitPane;
51
import java.awt.BorderLayout;
52
import javax.swing.JDesktopPane;
53

    
54
import org.gvsig.utils.console.JConsole;
55
public class ComplexDesktopPane extends JPanel {
56

    
57
        private JSplitPane jSplitPane = null;
58
        private JDesktopPane jDesktopPane = null;
59
        private JConsole jConsole = null;
60
        /**
61
         * This is the default constructor
62
         */
63
        public ComplexDesktopPane() {
64
                super();
65
                initialize();
66
        }
67
        /**
68
         * This method initializes this
69
         * 
70
         * @return void
71
         */
72
        private  void initialize() {
73
                this.setLayout(new BorderLayout());
74
                this.setSize(300,200);
75
                this.add(getJSplitPane(), java.awt.BorderLayout.CENTER);
76
        }
77
        /**
78
         * This method initializes jSplitPane        
79
         *         
80
         * @return javax.swing.JSplitPane        
81
         */    
82
        private JSplitPane getJSplitPane() {
83
                if (jSplitPane == null) {
84
                        jSplitPane = new JSplitPane();
85
                        jSplitPane.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
86
                        jSplitPane.setResizeWeight(0.8);
87
                        jSplitPane.setTopComponent(getDesktopPane());
88
                        jSplitPane.setBottomComponent(getJConsole());
89
                }
90
                return jSplitPane;
91
        }
92
        /**
93
         * This method initializes jDesktopPane        
94
         *         
95
         * @return javax.swing.JDesktopPane        
96
         */    
97
        public JDesktopPane getDesktopPane() {
98
                if (jDesktopPane == null) {
99
                        jDesktopPane = new JDesktopPane();
100
                }
101
                return jDesktopPane;
102
        }
103
        /**
104
         * This method initializes jConsole        
105
         *         
106
         * @return com.iver.utiles.console.JConsole        
107
         */    
108
        private JConsole getJConsole() {
109
                if (jConsole == null) {
110
                        jConsole = new JConsole();
111
                }
112
                return jConsole;
113
        }
114
   }