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 | 11536 | caballero | package com.iver.cit.gvsig.project.documents.view.legend.gui; |
---|---|---|---|
2 | |||
3 | 11613 | caballero | import java.awt.BorderLayout; |
4 | |||
5 | 11536 | caballero | 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 | 11613 | caballero | |
16 | 11536 | caballero | private JPanel pCenter = null; |
17 | 11613 | caballero | |
18 | 11536 | caballero | private JPanel pSouth = null; |
19 | 11613 | caballero | |
20 | 11536 | caballero | private Annotation_Layer al;
|
21 | 11613 | caballero | |
22 | 11536 | caballero | /**
|
23 | * This is the default constructor
|
||
24 | */
|
||
25 | public Annotation_Properties(Annotation_Layer al) {
|
||
26 | super();
|
||
27 | 11613 | caballero | this.al = al;
|
28 | 11536 | caballero | initialize(); |
29 | } |
||
30 | |||
31 | /**
|
||
32 | * This method initializes this
|
||
33 | 11613 | caballero | *
|
34 | 11536 | caballero | * @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 | 11613 | caballero | |
44 | 11536 | caballero | public WindowInfo getWindowInfo() {
|
45 | WindowInfo viewInfo = new WindowInfo(WindowInfo.MODELESSDIALOG);
|
||
46 | viewInfo.setWidth(500);
|
||
47 | viewInfo.setHeight(400);
|
||
48 | 11613 | caballero | viewInfo.setTitle(PluginServices |
49 | .getText(this, "propiedades_de_la_capa")); |
||
50 | 11536 | caballero | return viewInfo;
|
51 | } |
||
52 | |||
53 | /**
|
||
54 | * This method initializes pNorth
|
||
55 | 11613 | caballero | *
|
56 | 11536 | caballero | * @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 | 11613 | caballero | *
|
68 | 11536 | caballero | * @return javax.swing.JPanel
|
69 | */
|
||
70 | private JPanel getPCenter() { |
||
71 | if (pCenter == null) { |
||
72 | pCenter = new JPanel(); |
||
73 | 11613 | caballero | pCenter.add(new Annotation_ConfigureLabel(null, al)); |
74 | 11536 | caballero | } |
75 | return pCenter;
|
||
76 | } |
||
77 | |||
78 | /**
|
||
79 | * This method initializes pSouth
|
||
80 | 11613 | caballero | *
|
81 | 11536 | caballero | * @return javax.swing.JPanel
|
82 | */
|
||
83 | private JPanel getPSouth() { |
||
84 | if (pSouth == null) { |
||
85 | pSouth = new JPanel(); |
||
86 | } |
||
87 | return pSouth;
|
||
88 | } |
||
89 | |||
90 | } |