Revision 5139 org.gvsig.legend.urbanhorizontalsignage/trunk/org.gvsig.legend.urbanhorizontalsignage/org.gvsig.legend.urbanhorizontalsignage.swing/org.gvsig.legend.urbanhorizontalsignage.swing.impl/src/main/java/org/gvsig/legend/urbanhorizontalsignage/swing/impl/DefaultUrbanHorizontalSignageLegendEditorView.java

View differences:

DefaultUrbanHorizontalSignageLegendEditorView.java
9 9
import java.awt.Dimension;
10 10
import javax.swing.Box;
11 11
import javax.swing.ImageIcon;
12
import javax.swing.JComboBox;
13 12
import javax.swing.JFrame;
14
import javax.swing.JLabel;
15 13
import javax.swing.JPanel;
16
import javax.swing.JSpinner;
17 14

  
18 15

  
19 16
public class DefaultUrbanHorizontalSignageLegendEditorView extends JPanel
20 17
{
21
   JLabel lblWidthField = new JLabel();
22
   JLabel lblContinuityField = new JLabel();
23
   JLabel lblSegmentsColorField = new JLabel();
24
   JLabel lblSegmentsLengthField = new JLabel();
25
   JLabel lblPaintHolesField = new JLabel();
26
   JLabel lblHolesColorField = new JLabel();
27
   JLabel lblHolesLengthField = new JLabel();
28
   JLabel lblGapWidth = new JLabel();
29
   JSpinner spnGapWith = new JSpinner();
30
   JComboBox cboWidthFields = new JComboBox();
31
   JComboBox cboHolesLengthFields = new JComboBox();
32
   JComboBox cboHolesColorFields = new JComboBox();
33
   JComboBox cboPaintHolesFields = new JComboBox();
34
   JComboBox cboSegmentsLengthFields = new JComboBox();
35
   JComboBox cboSegmentsColorFields = new JComboBox();
36
   JComboBox cboContinuityFields = new JComboBox();
37
   JComboBox cboRoundVertexFields = new JComboBox();
38
   JLabel lblRoundVertexField = new JLabel();
39
   JLabel lblCm = new JLabel();
18
   JPanel grdConfig = new JPanel();
40 19

  
41 20
   /**
42 21
    * Default constructor
......
128 107
   public JPanel createPanel()
129 108
   {
130 109
      JPanel jpanel1 = new JPanel();
131
      FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE","CENTER:4DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:4DLU:NONE");
110
      FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:4DLU:NONE,CENTER:DEFAULT:NONE,CENTER:4DLU:NONE");
132 111
      CellConstraints cc = new CellConstraints();
133 112
      jpanel1.setLayout(formlayout1);
134 113

  
135
      lblWidthField.setName("lblWidthField");
136
      lblWidthField.setText("_Width_field");
137
      jpanel1.add(lblWidthField,cc.xy(2,2));
114
      jpanel1.add(creategrdConfig(),cc.xy(2,2));
115
      addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,2,3 });
116
      return jpanel1;
117
   }
138 118

  
139
      lblContinuityField.setName("lblContinuityField");
140
      lblContinuityField.setText("_Continuity_field");
141
      jpanel1.add(lblContinuityField,cc.xy(2,4));
119
   public JPanel creategrdConfig()
120
   {
121
      grdConfig.setName("grdConfig");
122
      FormLayout formlayout1 = new FormLayout("FILL:8DLU:GROW(1.0)","FILL:4DLU:GROW(1.0)");
123
      CellConstraints cc = new CellConstraints();
124
      grdConfig.setLayout(formlayout1);
142 125

  
143
      lblSegmentsColorField.setName("lblSegmentsColorField");
144
      lblSegmentsColorField.setText("_Segments_color_field");
145
      jpanel1.add(lblSegmentsColorField,cc.xy(2,8));
146

  
147
      lblSegmentsLengthField.setName("lblSegmentsLengthField");
148
      lblSegmentsLengthField.setText("_Segments_length_field");
149
      jpanel1.add(lblSegmentsLengthField,cc.xy(2,10));
150

  
151
      lblPaintHolesField.setName("lblPaintHolesField");
152
      lblPaintHolesField.setText("_Paint_holes_field");
153
      jpanel1.add(lblPaintHolesField,cc.xy(2,12));
154

  
155
      lblHolesColorField.setName("lblHolesColorField");
156
      lblHolesColorField.setText("_Holes_color_field");
157
      jpanel1.add(lblHolesColorField,cc.xy(2,14));
158

  
159
      lblHolesLengthField.setName("lblHolesLengthField");
160
      lblHolesLengthField.setText("_Holes_length_field");
161
      jpanel1.add(lblHolesLengthField,cc.xy(2,16));
162

  
163
      lblGapWidth.setName("lblGapWidth");
164
      lblGapWidth.setText("_Gap_width_between_lines");
165
      jpanel1.add(lblGapWidth,cc.xy(2,6));
166

  
167
      spnGapWith.setName("spnGapWith");
168
      jpanel1.add(spnGapWith,cc.xy(4,6));
169

  
170
      cboWidthFields.setName("cboWidthFields");
171
      jpanel1.add(cboWidthFields,cc.xywh(4,2,3,1));
172

  
173
      cboHolesLengthFields.setName("cboHolesLengthFields");
174
      jpanel1.add(cboHolesLengthFields,cc.xywh(4,16,3,1));
175

  
176
      cboHolesColorFields.setName("cboHolesColorFields");
177
      jpanel1.add(cboHolesColorFields,cc.xywh(4,14,3,1));
178

  
179
      cboPaintHolesFields.setName("cboPaintHolesFields");
180
      jpanel1.add(cboPaintHolesFields,cc.xywh(4,12,3,1));
181

  
182
      cboSegmentsLengthFields.setName("cboSegmentsLengthFields");
183
      jpanel1.add(cboSegmentsLengthFields,cc.xywh(4,10,3,1));
184

  
185
      cboSegmentsColorFields.setName("cboSegmentsColorFields");
186
      jpanel1.add(cboSegmentsColorFields,cc.xywh(4,8,3,1));
187

  
188
      cboContinuityFields.setName("cboContinuityFields");
189
      jpanel1.add(cboContinuityFields,cc.xywh(4,4,3,1));
190

  
191
      cboRoundVertexFields.setName("cboRoundVertexFields");
192
      jpanel1.add(cboRoundVertexFields,cc.xywh(4,18,3,1));
193

  
194
      lblRoundVertexField.setName("lblRoundVertexField");
195
      lblRoundVertexField.setText("_Round_vertex_field");
196
      jpanel1.add(lblRoundVertexField,cc.xy(2,18));
197

  
198
      lblCm.setName("lblCm");
199
      lblCm.setText("cm");
200
      jpanel1.add(lblCm,cc.xy(6,6));
201

  
202
      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19 });
203
      return jpanel1;
126
      addFillComponents(grdConfig,new int[]{ 1 },new int[]{ 1 });
127
      return grdConfig;
204 128
   }
205 129

  
206 130
   /**

Also available in: Unified diff