Revision 11613 branches/v10/extensions/extAnnotations/src/com/iver/cit/gvsig/project/documents/view/legend/gui/Annotation_Properties.java
Annotation_Properties.java | ||
---|---|---|
1 | 1 |
package com.iver.cit.gvsig.project.documents.view.legend.gui; |
2 | 2 |
|
3 |
import java.awt.BorderLayout; |
|
4 |
|
|
3 | 5 |
import javax.swing.JPanel; |
4 | 6 |
|
5 | 7 |
import com.iver.andami.PluginServices; |
6 | 8 |
import com.iver.andami.ui.mdiManager.WindowInfo; |
7 | 9 |
import com.iver.cit.gvsig.fmap.layers.Annotation_Layer; |
8 |
import com.iver.cit.gvsig.fmap.layers.FLayer; |
|
9 | 10 |
import com.iver.cit.gvsig.project.documents.gui.Annotation_ConfigureLabel; |
10 |
import com.iver.cit.gvsig.project.documents.view.gui.View; |
|
11 | 11 |
|
12 |
import java.awt.BorderLayout; |
|
13 |
|
|
14 | 12 |
public class Annotation_Properties extends JPanel { |
15 | 13 |
|
16 | 14 |
private JPanel pNorth = null; |
15 |
|
|
17 | 16 |
private JPanel pCenter = null; |
17 |
|
|
18 | 18 |
private JPanel pSouth = null; |
19 |
|
|
19 | 20 |
private Annotation_Layer al; |
21 |
|
|
20 | 22 |
/** |
21 | 23 |
* This is the default constructor |
22 | 24 |
*/ |
23 | 25 |
public Annotation_Properties(Annotation_Layer al) { |
24 | 26 |
super(); |
25 |
this.al=al;
|
|
27 |
this.al = al;
|
|
26 | 28 |
initialize(); |
27 | 29 |
} |
28 | 30 |
|
29 | 31 |
/** |
30 | 32 |
* This method initializes this |
31 |
* |
|
33 |
*
|
|
32 | 34 |
* @return void |
33 | 35 |
*/ |
34 | 36 |
private void initialize() { |
... | ... | |
38 | 40 |
this.add(getPCenter(), java.awt.BorderLayout.CENTER); |
39 | 41 |
this.add(getPSouth(), java.awt.BorderLayout.SOUTH); |
40 | 42 |
} |
43 |
|
|
41 | 44 |
public WindowInfo getWindowInfo() { |
42 | 45 |
WindowInfo viewInfo = new WindowInfo(WindowInfo.MODELESSDIALOG); |
43 | 46 |
viewInfo.setWidth(500); |
44 | 47 |
viewInfo.setHeight(400); |
45 |
viewInfo.setTitle(PluginServices.getText(this,"propiedades_de_la_capa")); |
|
48 |
viewInfo.setTitle(PluginServices |
|
49 |
.getText(this, "propiedades_de_la_capa")); |
|
46 | 50 |
return viewInfo; |
47 | 51 |
} |
48 | 52 |
|
49 | 53 |
/** |
50 | 54 |
* This method initializes pNorth |
51 |
* |
|
55 |
*
|
|
52 | 56 |
* @return javax.swing.JPanel |
53 | 57 |
*/ |
54 | 58 |
private JPanel getPNorth() { |
... | ... | |
60 | 64 |
|
61 | 65 |
/** |
62 | 66 |
* This method initializes pCenter |
63 |
* |
|
67 |
*
|
|
64 | 68 |
* @return javax.swing.JPanel |
65 | 69 |
*/ |
66 | 70 |
private JPanel getPCenter() { |
67 | 71 |
if (pCenter == null) { |
68 | 72 |
pCenter = new JPanel(); |
69 |
pCenter.add(new Annotation_ConfigureLabel(null,al)); |
|
73 |
pCenter.add(new Annotation_ConfigureLabel(null, al));
|
|
70 | 74 |
} |
71 | 75 |
return pCenter; |
72 | 76 |
} |
73 | 77 |
|
74 | 78 |
/** |
75 | 79 |
* This method initializes pSouth |
76 |
* |
|
80 |
*
|
|
77 | 81 |
* @return javax.swing.JPanel |
78 | 82 |
*/ |
79 | 83 |
private JPanel getPSouth() { |
Also available in: Unified diff