Statistics
| Revision:

root / branches / v10 / extensions / extAnnotations / src / com / iver / cit / gvsig / project / documents / view / legend / gui / Annotation_Properties.java @ 11613

History | View | Annotate | Download (1.83 KB)

1
package com.iver.cit.gvsig.project.documents.view.legend.gui;
2

    
3
import java.awt.BorderLayout;
4

    
5
import javax.swing.JPanel;
6

    
7
import com.iver.andami.PluginServices;
8
import com.iver.andami.ui.mdiManager.WindowInfo;
9
import com.iver.cit.gvsig.fmap.layers.Annotation_Layer;
10
import com.iver.cit.gvsig.project.documents.gui.Annotation_ConfigureLabel;
11

    
12
public class Annotation_Properties extends JPanel {
13

    
14
        private JPanel pNorth = null;
15

    
16
        private JPanel pCenter = null;
17

    
18
        private JPanel pSouth = null;
19

    
20
        private Annotation_Layer al;
21

    
22
        /**
23
         * This is the default constructor
24
         */
25
        public Annotation_Properties(Annotation_Layer al) {
26
                super();
27
                this.al = al;
28
                initialize();
29
        }
30

    
31
        /**
32
         * This method initializes this
33
         * 
34
         * @return void
35
         */
36
        private void initialize() {
37
                this.setLayout(new BorderLayout());
38
                this.setSize(300, 200);
39
                this.add(getPNorth(), java.awt.BorderLayout.NORTH);
40
                this.add(getPCenter(), java.awt.BorderLayout.CENTER);
41
                this.add(getPSouth(), java.awt.BorderLayout.SOUTH);
42
        }
43

    
44
        public WindowInfo getWindowInfo() {
45
                WindowInfo viewInfo = new WindowInfo(WindowInfo.MODELESSDIALOG);
46
                viewInfo.setWidth(500);
47
                viewInfo.setHeight(400);
48
                viewInfo.setTitle(PluginServices
49
                                .getText(this, "propiedades_de_la_capa"));
50
                return viewInfo;
51
        }
52

    
53
        /**
54
         * This method initializes pNorth
55
         * 
56
         * @return javax.swing.JPanel
57
         */
58
        private JPanel getPNorth() {
59
                if (pNorth == null) {
60
                        pNorth = new JPanel();
61
                }
62
                return pNorth;
63
        }
64

    
65
        /**
66
         * This method initializes pCenter
67
         * 
68
         * @return javax.swing.JPanel
69
         */
70
        private JPanel getPCenter() {
71
                if (pCenter == null) {
72
                        pCenter = new JPanel();
73
                        pCenter.add(new Annotation_ConfigureLabel(null, al));
74
                }
75
                return pCenter;
76
        }
77

    
78
        /**
79
         * This method initializes pSouth
80
         * 
81
         * @return javax.swing.JPanel
82
         */
83
        private JPanel getPSouth() {
84
                if (pSouth == null) {
85
                        pSouth = new JPanel();
86
                }
87
                return pSouth;
88
        }
89

    
90
}