Statistics
| Revision:

svn-gvsig-desktop / tags / Anotaciones_Build_1 / extensions / extAnnotations / src / com / iver / cit / gvsig / project / documents / view / legend / gui / Annotation_Properties.java @ 11599

History | View | Annotate | Download (1.92 KB)

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

    
3
import javax.swing.JPanel;
4

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

    
12
import java.awt.BorderLayout;
13

    
14
public class Annotation_Properties extends JPanel {
15

    
16
        private JPanel pNorth = null;
17
        private JPanel pCenter = null;
18
        private JPanel pSouth = null;
19
        private Annotation_Layer al;
20
        /**
21
         * This is the default constructor
22
         */
23
        public Annotation_Properties(Annotation_Layer al) {
24
                super();
25
                this.al=al;
26
                initialize();
27
        }
28

    
29
        /**
30
         * This method initializes this
31
         *
32
         * @return void
33
         */
34
        private void initialize() {
35
                this.setLayout(new BorderLayout());
36
                this.setSize(300, 200);
37
                this.add(getPNorth(), java.awt.BorderLayout.NORTH);
38
                this.add(getPCenter(), java.awt.BorderLayout.CENTER);
39
                this.add(getPSouth(), java.awt.BorderLayout.SOUTH);
40
        }
41
        public WindowInfo getWindowInfo() {
42
                WindowInfo viewInfo = new WindowInfo(WindowInfo.MODELESSDIALOG);
43
                viewInfo.setWidth(500);
44
                viewInfo.setHeight(400);
45
                viewInfo.setTitle(PluginServices.getText(this,"propiedades_de_la_capa"));
46
                return viewInfo;
47
        }
48

    
49
        /**
50
         * This method initializes pNorth
51
         *
52
         * @return javax.swing.JPanel
53
         */
54
        private JPanel getPNorth() {
55
                if (pNorth == null) {
56
                        pNorth = new JPanel();
57
                }
58
                return pNorth;
59
        }
60

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

    
74
        /**
75
         * This method initializes pSouth
76
         *
77
         * @return javax.swing.JPanel
78
         */
79
        private JPanel getPSouth() {
80
                if (pSouth == null) {
81
                        pSouth = new JPanel();
82
                }
83
                return pSouth;
84
        }
85

    
86
}