Revision 727 org.gvsig.topology/trunk/org.gvsig.topology/org.gvsig.topology.swing/org.gvsig.topology.swing.impl/src/main/java/org/gvsig/topology/swing/impl/DefaultJTopologyReportView.java
DefaultJTopologyReportView.java | ||
---|---|---|
29 | 29 |
JLabel lblShow = new JLabel(); |
30 | 30 |
JComboBox cboRules = new JComboBox(); |
31 | 31 |
JToggleButton btnVisibleExtentOnly = new JToggleButton(); |
32 |
JButton btnZoom = new JButton(); |
|
33 |
JButton btnCenter = new JButton(); |
|
32 |
JButton btnZoomGeometry = new JButton(); |
|
34 | 33 |
JButton btnActions = new JButton(); |
35 | 34 |
JButton btnRefresh = new JButton(); |
36 | 35 |
JToggleButton btnShowErrors = new JToggleButton(); |
37 | 36 |
JToggleButton btnShowExceptions = new JToggleButton(); |
37 |
JToggleButton btnShowForm = new JToggleButton(); |
|
38 |
JButton btnCenterError = new JButton(); |
|
39 |
JButton btnCenterGeometry = new JButton(); |
|
40 |
JButton btnZoomError = new JButton(); |
|
41 |
JButton btnEraseErrorMarks = new JButton(); |
|
38 | 42 |
JPanel pnlParameters = new JPanel(); |
43 |
JLabel lblActionDescription = new JLabel(); |
|
44 |
JLabel lblActionTitle = new JLabel(); |
|
39 | 45 |
JButton btnParametersCancel = new JButton(); |
40 | 46 |
JButton btnParametersAccept = new JButton(); |
41 |
JLabel lblActionDescription = new JLabel(); |
|
42 |
JLabel lblActionTitle = new JLabel(); |
|
43 | 47 |
JLabel lblTaskStatusMessage = new JLabel(); |
44 | 48 |
JProgressBar pbTaskStatusProgress = new JProgressBar(); |
45 | 49 |
JButton btnTaskStatusCancel = new JButton(); |
... | ... | |
171 | 175 |
public JPanel createPanel2() |
172 | 176 |
{ |
173 | 177 |
JPanel jpanel1 = new JPanel(); |
174 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE");
|
|
178 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:8DLU:NONE,FILL:DEFAULT:NONE,FILL:8DLU:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE");
|
|
175 | 179 |
CellConstraints cc = new CellConstraints(); |
176 | 180 |
jpanel1.setLayout(formlayout1); |
177 | 181 |
|
... | ... | |
182 | 186 |
cboRules.setName("cboRules"); |
183 | 187 |
jpanel1.add(cboRules,cc.xy(3,1)); |
184 | 188 |
|
185 |
btnVisibleExtentOnly.setIcon(loadImage("org/gvsig/topology/swing/impl/images/visible_extent.png"));
|
|
189 |
btnVisibleExtentOnly.setIcon(loadImage("org/gvsig/topology/swing/impl/images/topology-report-filter-visible-extent.png"));
|
|
186 | 190 |
btnVisibleExtentOnly.setName("btnVisibleExtentOnly"); |
187 | 191 |
btnVisibleExtentOnly.setToolTipText("_Show_only_in_visible_extent"); |
188 | 192 |
EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2); |
189 | 193 |
btnVisibleExtentOnly.setBorder(emptyborder1); |
190 | 194 |
jpanel1.add(btnVisibleExtentOnly,cc.xy(9,1)); |
191 | 195 |
|
192 |
btnZoom.setIcon(loadImage("org/gvsig/topology/swing/impl/images/zoom.png"));
|
|
193 |
btnZoom.setName("btnZoom");
|
|
194 |
btnZoom.setToolTipText("_Zoom"); |
|
196 |
btnZoomGeometry.setIcon(loadImage("org/gvsig/topology/swing/impl/images/topology-report-zoom-geometry.png"));
|
|
197 |
btnZoomGeometry.setName("btnZoomGeometry");
|
|
198 |
btnZoomGeometry.setToolTipText("_Zoom");
|
|
195 | 199 |
EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2); |
196 |
btnZoom.setBorder(emptyborder2); |
|
197 |
jpanel1.add(btnZoom,cc.xy(11,1));
|
|
200 |
btnZoomGeometry.setBorder(emptyborder2);
|
|
201 |
jpanel1.add(btnZoomGeometry,cc.xy(13,1));
|
|
198 | 202 |
|
199 |
btnCenter.setIcon(loadImage("org/gvsig/topology/swing/impl/images/center_view.png")); |
|
200 |
btnCenter.setName("btnCenter"); |
|
201 |
btnCenter.setToolTipText("_Center"); |
|
202 |
EmptyBorder emptyborder3 = new EmptyBorder(2,2,2,2); |
|
203 |
btnCenter.setBorder(emptyborder3); |
|
204 |
jpanel1.add(btnCenter,cc.xy(13,1)); |
|
205 |
|
|
206 |
btnActions.setIcon(loadImage("org/gvsig/topology/swing/impl/images/show_actions.png")); |
|
203 |
btnActions.setIcon(loadImage("org/gvsig/topology/swing/impl/images/topology-report-actions.png")); |
|
207 | 204 |
btnActions.setName("btnActions"); |
208 | 205 |
btnActions.setToolTipText("_Actions"); |
209 |
EmptyBorder emptyborder4 = new EmptyBorder(2,2,2,2);
|
|
210 |
btnActions.setBorder(emptyborder4);
|
|
211 |
jpanel1.add(btnActions,cc.xy(15,1));
|
|
206 |
EmptyBorder emptyborder3 = new EmptyBorder(2,2,2,2);
|
|
207 |
btnActions.setBorder(emptyborder3);
|
|
208 |
jpanel1.add(btnActions,cc.xy(23,1));
|
|
212 | 209 |
|
213 |
btnRefresh.setIcon(loadImage("org/gvsig/topology/swing/impl/images/refresh.png")); |
|
210 |
btnRefresh.setIcon(loadImage("org/gvsig/topology/swing/impl/images/topology-report-refresh.png"));
|
|
214 | 211 |
btnRefresh.setName("btnRefresh"); |
215 | 212 |
btnRefresh.setToolTipText("_Update"); |
216 |
EmptyBorder emptyborder5 = new EmptyBorder(2,2,2,2);
|
|
217 |
btnRefresh.setBorder(emptyborder5);
|
|
218 |
jpanel1.add(btnRefresh,cc.xy(17,1));
|
|
213 |
EmptyBorder emptyborder4 = new EmptyBorder(2,2,2,2);
|
|
214 |
btnRefresh.setBorder(emptyborder4);
|
|
215 |
jpanel1.add(btnRefresh,cc.xy(25,1));
|
|
219 | 216 |
|
220 |
btnShowErrors.setIcon(loadImage("org/gvsig/topology/swing/impl/images/show_errors.png"));
|
|
217 |
btnShowErrors.setIcon(loadImage("org/gvsig/topology/swing/impl/images/topology-report-filter-errors.png"));
|
|
221 | 218 |
btnShowErrors.setName("btnShowErrors"); |
222 |
btnShowErrors.setToolTipText("_Show_only_in_visible_extent");
|
|
223 |
EmptyBorder emptyborder6 = new EmptyBorder(2,2,2,2);
|
|
224 |
btnShowErrors.setBorder(emptyborder6);
|
|
219 |
btnShowErrors.setToolTipText("_Show_errors");
|
|
220 |
EmptyBorder emptyborder5 = new EmptyBorder(2,2,2,2);
|
|
221 |
btnShowErrors.setBorder(emptyborder5);
|
|
225 | 222 |
jpanel1.add(btnShowErrors,cc.xy(5,1)); |
226 | 223 |
|
227 |
btnShowExceptions.setIcon(loadImage("org/gvsig/topology/swing/impl/images/show_exceptions.png"));
|
|
224 |
btnShowExceptions.setIcon(loadImage("org/gvsig/topology/swing/impl/images/topology-report-filter-exceptions.png"));
|
|
228 | 225 |
btnShowExceptions.setName("btnShowExceptions"); |
229 |
btnShowExceptions.setToolTipText("_Show_only_in_visible_extent");
|
|
230 |
EmptyBorder emptyborder7 = new EmptyBorder(2,2,2,2);
|
|
231 |
btnShowExceptions.setBorder(emptyborder7);
|
|
226 |
btnShowExceptions.setToolTipText("_Show_exceptions");
|
|
227 |
EmptyBorder emptyborder6 = new EmptyBorder(2,2,2,2);
|
|
228 |
btnShowExceptions.setBorder(emptyborder6);
|
|
232 | 229 |
jpanel1.add(btnShowExceptions,cc.xy(7,1)); |
233 | 230 |
|
234 |
addFillComponents(jpanel1,new int[]{ 2,4,6,8,10,12,14,16 },new int[0]); |
|
231 |
btnShowForm.setIcon(loadImage("org/gvsig/topology/swing/impl/images/topology-report-show-form.png")); |
|
232 |
btnShowForm.setName("btnShowForm"); |
|
233 |
btnShowForm.setToolTipText("_Show_form_when_modify_geometry"); |
|
234 |
EmptyBorder emptyborder7 = new EmptyBorder(2,2,2,2); |
|
235 |
btnShowForm.setBorder(emptyborder7); |
|
236 |
jpanel1.add(btnShowForm,cc.xy(11,1)); |
|
237 |
|
|
238 |
btnCenterError.setIcon(loadImage("org/gvsig/topology/swing/impl/images/topology-report-center-error.png")); |
|
239 |
btnCenterError.setName("btnCenterError"); |
|
240 |
btnCenterError.setToolTipText("_Center_error"); |
|
241 |
EmptyBorder emptyborder8 = new EmptyBorder(2,2,2,2); |
|
242 |
btnCenterError.setBorder(emptyborder8); |
|
243 |
jpanel1.add(btnCenterError,cc.xy(19,1)); |
|
244 |
|
|
245 |
btnCenterGeometry.setIcon(loadImage("org/gvsig/topology/swing/impl/images/topology-report-center-geometry.png")); |
|
246 |
btnCenterGeometry.setName("btnCenterGeometry"); |
|
247 |
btnCenterGeometry.setToolTipText("_Center_geometry"); |
|
248 |
EmptyBorder emptyborder9 = new EmptyBorder(2,2,2,2); |
|
249 |
btnCenterGeometry.setBorder(emptyborder9); |
|
250 |
jpanel1.add(btnCenterGeometry,cc.xy(15,1)); |
|
251 |
|
|
252 |
btnZoomError.setIcon(loadImage("org/gvsig/topology/swing/impl/images/topology-report-zoom-error.png")); |
|
253 |
btnZoomError.setName("btnZoomError"); |
|
254 |
btnZoomError.setToolTipText("_Zoom"); |
|
255 |
EmptyBorder emptyborder10 = new EmptyBorder(2,2,2,2); |
|
256 |
btnZoomError.setBorder(emptyborder10); |
|
257 |
jpanel1.add(btnZoomError,cc.xy(17,1)); |
|
258 |
|
|
259 |
btnEraseErrorMarks.setIcon(loadImage("org/gvsig/topology/swing/impl/images/topology-report-erase-errors.png")); |
|
260 |
btnEraseErrorMarks.setName("btnEraseErrorMarks"); |
|
261 |
btnEraseErrorMarks.setToolTipText("_Erase_error_marks"); |
|
262 |
EmptyBorder emptyborder11 = new EmptyBorder(2,2,2,2); |
|
263 |
btnEraseErrorMarks.setBorder(emptyborder11); |
|
264 |
jpanel1.add(btnEraseErrorMarks,cc.xy(21,1)); |
|
265 |
|
|
266 |
addFillComponents(jpanel1,new int[]{ 2,4,6,8,10,12,14,16,18,20,22,24 },new int[0]); |
|
235 | 267 |
return jpanel1; |
236 | 268 |
} |
237 | 269 |
|
... | ... | |
245 | 277 |
pnlParameters.setName("pnlParameters"); |
246 | 278 |
jpanel1.add(pnlParameters,cc.xy(2,6)); |
247 | 279 |
|
248 |
jpanel1.add(createPanel4(),cc.xy(2,8)); |
|
249 | 280 |
lblActionDescription.setName("lblActionDescription"); |
250 | 281 |
jpanel1.add(lblActionDescription,cc.xy(2,4)); |
251 | 282 |
|
252 | 283 |
lblActionTitle.setName("lblActionTitle"); |
253 | 284 |
jpanel1.add(lblActionTitle,cc.xy(2,2)); |
254 | 285 |
|
286 |
jpanel1.add(createPanel4(),cc.xy(2,8)); |
|
255 | 287 |
addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,2,3,4,5,6,7,8,9 }); |
256 | 288 |
return jpanel1; |
257 | 289 |
} |
Also available in: Unified diff