Statistics
| Revision:

root / trunk / extensions / extGeoreferencing / src / com / iver / cit / gvsig / gui / Panels / DataPointsTabPanel.java @ 3039

History | View | Annotate | Download (1.73 KB)

1
package com.iver.cit.gvsig.gui.Panels;
2

    
3
import java.awt.Dimension;
4

    
5
import javax.swing.JPanel;
6
import javax.swing.JTabbedPane;
7

    
8
import com.iver.cit.gvsig.gui.Dialogs.GeoreferencingDialog;
9

    
10
public class DataPointsTabPanel extends JPanel{
11
        
12
        private GeoreferencingDialog parent = null;
13
        private SelectPointsPanel selectPointsPanel = null;
14
        private TablePointsPanel tablePointsPanel = null;
15
        private JTabbedPane tbPoints = null;
16
        
17
        /**
18
         * This is the default constructor
19
         */
20
        public DataPointsTabPanel(GeoreferencingDialog p) {
21
                super();
22
                this.parent = p;
23
                initialize();
24
        }
25

    
26
        /**
27
         * This method initializes this
28
         * 
29
         * @return void
30
         */
31
        private void initialize() {
32
        this.setPreferredSize(new java.awt.Dimension(380,185));
33
        this.setSize(new java.awt.Dimension(380,185));
34
        this.setLocation(new java.awt.Point(0,0));
35
        this.add(getTbPoints(), null);
36
        }
37

    
38
        /**
39
         * @return Returns the selectPointsPanel.
40
         */
41
        public TablePointsPanel getTablePointsPanel() {
42
                if(tablePointsPanel == null){
43
                        tablePointsPanel = new TablePointsPanel(parent);
44
                }
45
                return tablePointsPanel;
46
        }
47
        
48
        /**
49
         * @return Returns the selectPointsPanel.
50
         */
51
        public SelectPointsPanel getSelectPointsPanel() {
52
                if(selectPointsPanel == null){
53
                        selectPointsPanel = new SelectPointsPanel(parent);
54
                }
55
                return selectPointsPanel;
56
        }
57

    
58
        /**
59
         * This method initializes jTabbedPane        
60
         *         
61
         * @return javax.swing.JTabbedPane        
62
         */
63
        private JTabbedPane getTbPoints() {
64
                if (tbPoints == null) {
65
                        tbPoints = new JTabbedPane();
66
                        tbPoints.setSize(400, 260);
67
                        tbPoints.setPreferredSize(new java.awt.Dimension(380,185));
68
                        tbPoints.addTab("georef", this.getSelectPointsPanel());
69
                        tbPoints.addTab("table", this.getTablePointsPanel());
70
                }
71
                return tbPoints;
72
        }
73

    
74
        
75
   }