root / trunk / applications / appgvSIG / src / com / iver / cit / gvsig / project / documents / layout / gui / dialogs / FAlignDialog.java @ 7738
History | View | Annotate | Download (18.3 KB)
1 |
/*
|
---|---|
2 |
* Created on 19-jul-2004
|
3 |
*
|
4 |
*/
|
5 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
6 |
*
|
7 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
8 |
*
|
9 |
* This program is free software; you can redistribute it and/or
|
10 |
* modify it under the terms of the GNU General Public License
|
11 |
* as published by the Free Software Foundation; either version 2
|
12 |
* of the License, or (at your option) any later version.
|
13 |
*
|
14 |
* This program is distributed in the hope that it will be useful,
|
15 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
16 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
17 |
* GNU General Public License for more details.
|
18 |
*
|
19 |
* You should have received a copy of the GNU General Public License
|
20 |
* along with this program; if not, write to the Free Software
|
21 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
22 |
*
|
23 |
* For more information, contact:
|
24 |
*
|
25 |
* Generalitat Valenciana
|
26 |
* Conselleria d'Infraestructures i Transport
|
27 |
* Av. Blasco Ib??ez, 50
|
28 |
* 46010 VALENCIA
|
29 |
* SPAIN
|
30 |
*
|
31 |
* +34 963862235
|
32 |
* gvsig@gva.es
|
33 |
* www.gvsig.gva.es
|
34 |
*
|
35 |
* or
|
36 |
*
|
37 |
* IVER T.I. S.A
|
38 |
* Salamanca 50
|
39 |
* 46005 Valencia
|
40 |
* Spain
|
41 |
*
|
42 |
* +34 963163400
|
43 |
* dac@iver.es
|
44 |
*/
|
45 |
package com.iver.cit.gvsig.project.documents.layout.gui.dialogs; |
46 |
|
47 |
import javax.swing.ImageIcon; |
48 |
import javax.swing.JPanel; |
49 |
import javax.swing.JToggleButton; |
50 |
|
51 |
import com.iver.andami.PluginServices; |
52 |
import com.iver.andami.ui.mdiManager.SingletonWindow; |
53 |
import com.iver.andami.ui.mdiManager.WindowInfo; |
54 |
import com.iver.cit.gvsig.AddLayer; |
55 |
import com.iver.cit.gvsig.gui.layout.Layout; |
56 |
|
57 |
|
58 |
/**
|
59 |
* Contenedor de los botones necesarios para alinear, desplazar y cambiar el
|
60 |
* tama?o de los fframes.
|
61 |
*
|
62 |
* @author Vicente Caballero Navarro
|
63 |
*/
|
64 |
public class FAlignDialog extends JPanel implements SingletonWindow { |
65 |
private static final ImageIcon ileft = new ImageIcon(AddLayer.class.getClassLoader() |
66 |
.getResource("images/left.PNG"));
|
67 |
private static final ImageIcon icenterV = new ImageIcon(AddLayer.class.getClassLoader() |
68 |
.getResource("images/centerV.PNG"));
|
69 |
private static final ImageIcon iright = new ImageIcon(AddLayer.class.getClassLoader() |
70 |
.getResource("images/right.PNG"));
|
71 |
private static final ImageIcon iup = new ImageIcon(AddLayer.class.getClassLoader() |
72 |
.getResource("images/up.PNG"));
|
73 |
private static final ImageIcon icenterH = new ImageIcon(AddLayer.class.getClassLoader() |
74 |
.getResource("images/centerH.PNG"));
|
75 |
private static final ImageIcon idown = new ImageIcon(AddLayer.class.getClassLoader() |
76 |
.getResource("images/down.PNG"));
|
77 |
private static final ImageIcon idistUp = new ImageIcon(AddLayer.class.getClassLoader() |
78 |
.getResource("images/distUp.PNG"));
|
79 |
private static final ImageIcon idistCenterH = new ImageIcon(AddLayer.class.getClassLoader() |
80 |
.getResource("images/distCenterH.PNG"));
|
81 |
private static final ImageIcon idistDown = new ImageIcon(AddLayer.class.getClassLoader() |
82 |
.getResource("images/distDown.PNG"));
|
83 |
private static final ImageIcon idistLeft = new ImageIcon(AddLayer.class.getClassLoader() |
84 |
.getResource("images/distLeft.PNG"));
|
85 |
private static final ImageIcon idistCenterV = new ImageIcon(AddLayer.class.getClassLoader() |
86 |
.getResource("images/distCenterV.PNG"));
|
87 |
private static final ImageIcon idistRight = new ImageIcon(AddLayer.class.getClassLoader() |
88 |
.getResource("images/distRight.PNG"));
|
89 |
private static final ImageIcon isizeWidth = new ImageIcon(AddLayer.class.getClassLoader() |
90 |
.getResource("images/sizeWidth.PNG"));
|
91 |
private static final ImageIcon isizeHeight = new ImageIcon(AddLayer.class.getClassLoader() |
92 |
.getResource("images/sizeHeight.PNG"));
|
93 |
private static final ImageIcon isizeOther = new ImageIcon(AddLayer.class.getClassLoader() |
94 |
.getResource("images/sizeOther.PNG"));
|
95 |
private static final ImageIcon ispaceRight = new ImageIcon(AddLayer.class.getClassLoader() |
96 |
.getResource("images/spaceRight.PNG"));
|
97 |
private static final ImageIcon ispaceDown = new ImageIcon(AddLayer.class.getClassLoader() |
98 |
.getResource("images/spaceDown.PNG"));
|
99 |
private static final ImageIcon iinLayout = new ImageIcon(AddLayer.class.getClassLoader() |
100 |
.getResource("images/inLayout.PNG"));
|
101 |
private javax.swing.JButton bleft = null; |
102 |
private javax.swing.JButton bcenterV = null; |
103 |
private javax.swing.JButton bright = null; |
104 |
private javax.swing.JButton bup = null; |
105 |
private javax.swing.JButton bcenterH = null; |
106 |
private javax.swing.JButton bdown = null; |
107 |
private javax.swing.JButton bdistUp = null; |
108 |
private Layout m_layout = null; |
109 |
private javax.swing.JLabel lAlineamiento = null; |
110 |
private javax.swing.JLabel lDistribuir = null; |
111 |
private javax.swing.JButton bdistcenterV = null; |
112 |
private javax.swing.JButton bdistDown = null; |
113 |
private javax.swing.JButton bdistLeft = null; |
114 |
private javax.swing.JButton bdistcenterH = null; |
115 |
private javax.swing.JButton bdistRight = null; |
116 |
private javax.swing.JLabel lTamano = null; |
117 |
private javax.swing.JButton bsizecenterV = null; |
118 |
private javax.swing.JButton bsizecenterH = null; |
119 |
private javax.swing.JButton bsizeother = null; |
120 |
private javax.swing.JButton bspaceRight = null; |
121 |
private javax.swing.JButton bspaceDown = null; |
122 |
private javax.swing.JLabel lEspacio = null; |
123 |
private javax.swing.JLabel lEnElMapa = null; |
124 |
private JToggleButton binLayout = null; |
125 |
|
126 |
/**
|
127 |
* This is the default constructor
|
128 |
*
|
129 |
* @param layout Referencia al Layout.
|
130 |
*/
|
131 |
public FAlignDialog(Layout layout) {
|
132 |
super();
|
133 |
m_layout = layout; |
134 |
initialize(); |
135 |
} |
136 |
|
137 |
/**
|
138 |
* This method initializes this
|
139 |
*/
|
140 |
private void initialize() { |
141 |
this.setLayout(null); |
142 |
|
143 |
EventsFAlign listener = new EventsFAlign(m_layout);
|
144 |
this.add(getBleft(), null); |
145 |
this.add(getBcenterV(), null); |
146 |
this.add(getBright(), null); |
147 |
this.add(getBup(), null); |
148 |
this.add(getBcenterH(), null); |
149 |
this.add(getBdown(), null); |
150 |
this.add(getBdistUp(), null); |
151 |
this.add(getLAlineamiento(), null); |
152 |
this.add(getLDistribuir(), null); |
153 |
this.add(getBdistcenterV(), null); |
154 |
this.add(getBdistDown(), null); |
155 |
this.add(getBdistLeft(), null); |
156 |
this.add(getBdistcenterH(), null); |
157 |
this.add(getBdistRight(), null); |
158 |
this.add(getLTamano(), null); |
159 |
this.add(getBsizecenterV(), null); |
160 |
this.add(getBsizecenterH(), null); |
161 |
this.add(getBsizeother(), null); |
162 |
this.add(getBspaceRight(), null); |
163 |
this.add(getBspaceDown(), null); |
164 |
this.add(getLEspacio(), null); |
165 |
this.add(getLEnElMapa(), null); |
166 |
this.add(getBinLayout(), null); |
167 |
this.setSize(310, 190); |
168 |
getBleft().addActionListener(listener); |
169 |
getBleft().setActionCommand("LEFT");
|
170 |
getBcenterV().addActionListener(listener); |
171 |
getBcenterV().setActionCommand("CENTERV");
|
172 |
getBright().addActionListener(listener); |
173 |
getBright().setActionCommand("RIGHT");
|
174 |
getBup().addActionListener(listener); |
175 |
getBup().setActionCommand("UP");
|
176 |
getBcenterH().addActionListener(listener); |
177 |
getBcenterH().setActionCommand("CENTERH");
|
178 |
getBdown().addActionListener(listener); |
179 |
getBdown().setActionCommand("DOWN");
|
180 |
getBdistUp().addActionListener(listener); |
181 |
getBdistUp().setActionCommand("DISTUP");
|
182 |
getBdistcenterV().addActionListener(listener); |
183 |
getBdistcenterV().setActionCommand("DISTCENTERV");
|
184 |
getBdistDown().addActionListener(listener); |
185 |
getBdistDown().setActionCommand("DISTDOWN");
|
186 |
getBdistLeft().addActionListener(listener); |
187 |
getBdistLeft().setActionCommand("DISTLEFT");
|
188 |
getBdistcenterH().addActionListener(listener); |
189 |
getBdistcenterH().setActionCommand("DISTCENTERH");
|
190 |
getBdistRight().addActionListener(listener); |
191 |
getBdistRight().setActionCommand("DISTRIGHT");
|
192 |
getBsizecenterV().addActionListener(listener); |
193 |
getBsizecenterV().setActionCommand("SIZECENTERV");
|
194 |
getBsizecenterH().addActionListener(listener); |
195 |
getBsizecenterH().setActionCommand("SIZECENTERH");
|
196 |
getBsizeother().addActionListener(listener); |
197 |
getBsizeother().setActionCommand("SIZEOTHER");
|
198 |
getBspaceRight().addActionListener(listener); |
199 |
getBspaceRight().setActionCommand("SPACERIGHT");
|
200 |
getBspaceDown().addActionListener(listener); |
201 |
getBspaceDown().setActionCommand("SPACEDOWN");
|
202 |
getBinLayout().addActionListener(listener); |
203 |
getBinLayout().setActionCommand("INLAYOUT");
|
204 |
} |
205 |
|
206 |
/**
|
207 |
* This method initializes bleft
|
208 |
*
|
209 |
* @return javax.swing.JButton
|
210 |
*/
|
211 |
private javax.swing.JButton getBleft() {
|
212 |
if (bleft == null) { |
213 |
bleft = new javax.swing.JButton();
|
214 |
bleft.setSize(24, 24); |
215 |
bleft.setIcon(ileft); |
216 |
bleft.setToolTipText(PluginServices.getText(this,"desplaza_los_elementos_seleccionados_a_la_izquierda")); |
217 |
bleft.setLocation(10, 30); |
218 |
bleft.setPreferredSize(new java.awt.Dimension(30, 30)); |
219 |
} |
220 |
|
221 |
return bleft;
|
222 |
} |
223 |
|
224 |
/**
|
225 |
* This method initializes bcenterV
|
226 |
*
|
227 |
* @return javax.swing.JButton
|
228 |
*/
|
229 |
private javax.swing.JButton getBcenterV() {
|
230 |
if (bcenterV == null) { |
231 |
bcenterV = new javax.swing.JButton();
|
232 |
bcenterV.setSize(24, 24); |
233 |
bcenterV.setIcon(icenterV); |
234 |
bcenterV.setToolTipText(PluginServices.getText(this,"desplaza_los_elementos_seleccionados_al_centro_por_el_eje_x")); |
235 |
bcenterV.setLocation(35, 30); |
236 |
bcenterV.setPreferredSize(new java.awt.Dimension(39, 20)); |
237 |
} |
238 |
|
239 |
return bcenterV;
|
240 |
} |
241 |
|
242 |
/**
|
243 |
* This method initializes bright
|
244 |
*
|
245 |
* @return javax.swing.JButton
|
246 |
*/
|
247 |
private javax.swing.JButton getBright() {
|
248 |
if (bright == null) { |
249 |
bright = new javax.swing.JButton();
|
250 |
bright.setSize(24, 24); |
251 |
bright.setIcon(iright); |
252 |
bright.setToolTipText(PluginServices.getText(this,"desplaza_los_elementos_seleccionados_a_la_derecha")); |
253 |
bright.setLocation(60, 30); |
254 |
} |
255 |
|
256 |
return bright;
|
257 |
} |
258 |
|
259 |
/**
|
260 |
* This method initializes bup
|
261 |
*
|
262 |
* @return javax.swing.JButton
|
263 |
*/
|
264 |
private javax.swing.JButton getBup() {
|
265 |
if (bup == null) { |
266 |
bup = new javax.swing.JButton();
|
267 |
bup.setSize(24, 24); |
268 |
bup.setIcon(iup); |
269 |
bup.setToolTipText(PluginServices.getText(this,"desplaza_los_elementos_seleccionados_hacia_arriba")); |
270 |
bup.setLocation(100, 30); |
271 |
} |
272 |
|
273 |
return bup;
|
274 |
} |
275 |
|
276 |
/**
|
277 |
* This method initializes bcenterH
|
278 |
*
|
279 |
* @return javax.swing.JButton
|
280 |
*/
|
281 |
private javax.swing.JButton getBcenterH() {
|
282 |
if (bcenterH == null) { |
283 |
bcenterH = new javax.swing.JButton();
|
284 |
bcenterH.setSize(24, 24); |
285 |
bcenterH.setIcon(icenterH); |
286 |
bcenterH.setToolTipText(PluginServices.getText(this,"desplaza_los_elementos_seleccionados_al_centro_por_el_eje_y")); |
287 |
bcenterH.setLocation(125, 30); |
288 |
} |
289 |
|
290 |
return bcenterH;
|
291 |
} |
292 |
|
293 |
/**
|
294 |
* This method initializes bdown
|
295 |
*
|
296 |
* @return javax.swing.JButton
|
297 |
*/
|
298 |
private javax.swing.JButton getBdown() {
|
299 |
if (bdown == null) { |
300 |
bdown = new javax.swing.JButton();
|
301 |
bdown.setSize(24, 24); |
302 |
bdown.setIcon(idown); |
303 |
bdown.setToolTipText(PluginServices.getText(this,"desplaza_los_elementos_seleccionados_hacia_abajo")); |
304 |
bdown.setLocation(150, 30); |
305 |
} |
306 |
|
307 |
return bdown;
|
308 |
} |
309 |
|
310 |
/**
|
311 |
* This method initializes bdistUp
|
312 |
*
|
313 |
* @return javax.swing.JButton
|
314 |
*/
|
315 |
private javax.swing.JButton getBdistUp() {
|
316 |
if (bdistUp == null) { |
317 |
bdistUp = new javax.swing.JButton();
|
318 |
bdistUp.setSize(24, 24); |
319 |
bdistUp.setIcon(idistUp); |
320 |
bdistUp.setToolTipText(PluginServices.getText(this,"distribuye_los_elementos_seleccionados_de_forma_equidistante_de_arriba_hacia_abajo")); |
321 |
bdistUp.setLocation(100, 73); |
322 |
} |
323 |
|
324 |
return bdistUp;
|
325 |
} |
326 |
|
327 |
/**
|
328 |
* This method initializes lAlineamiento
|
329 |
*
|
330 |
* @return javax.swing.JLabel
|
331 |
*/
|
332 |
private javax.swing.JLabel getLAlineamiento() {
|
333 |
if (lAlineamiento == null) { |
334 |
lAlineamiento = new javax.swing.JLabel();
|
335 |
lAlineamiento.setSize(107, 13); |
336 |
lAlineamiento.setText(PluginServices.getText(this, "alineamiento")); |
337 |
lAlineamiento.setLocation(10, 10); |
338 |
} |
339 |
|
340 |
return lAlineamiento;
|
341 |
} |
342 |
|
343 |
/**
|
344 |
* This method initializes lDistribuir
|
345 |
*
|
346 |
* @return javax.swing.JLabel
|
347 |
*/
|
348 |
private javax.swing.JLabel getLDistribuir() {
|
349 |
if (lDistribuir == null) { |
350 |
lDistribuir = new javax.swing.JLabel();
|
351 |
lDistribuir.setBounds(10, 57, 107, 13); |
352 |
lDistribuir.setText(PluginServices.getText(this, "distribuir")); |
353 |
} |
354 |
|
355 |
return lDistribuir;
|
356 |
} |
357 |
|
358 |
/**
|
359 |
* This method initializes bdistcenterV
|
360 |
*
|
361 |
* @return javax.swing.JButton
|
362 |
*/
|
363 |
private javax.swing.JButton getBdistcenterV() {
|
364 |
if (bdistcenterV == null) { |
365 |
bdistcenterV = new javax.swing.JButton();
|
366 |
bdistcenterV.setSize(24, 24); |
367 |
bdistcenterV.setIcon(idistCenterH); |
368 |
bdistcenterV.setToolTipText(PluginServices.getText(this,"distribuye_los_elementos_seleccionados_de_forma_equidistante_y_vertical")); |
369 |
bdistcenterV.setLocation(125, 73); |
370 |
} |
371 |
|
372 |
return bdistcenterV;
|
373 |
} |
374 |
|
375 |
/**
|
376 |
* This method initializes bdistDown
|
377 |
*
|
378 |
* @return javax.swing.JButton
|
379 |
*/
|
380 |
private javax.swing.JButton getBdistDown() {
|
381 |
if (bdistDown == null) { |
382 |
bdistDown = new javax.swing.JButton();
|
383 |
bdistDown.setSize(24, 24); |
384 |
bdistDown.setIcon(idistDown); |
385 |
bdistDown.setToolTipText(PluginServices.getText(this,"distribuye_los_elementos_seleccionados_de_forma_equidistante_de_abajo_hacia_arriba")); |
386 |
bdistDown.setLocation(150, 73); |
387 |
} |
388 |
|
389 |
return bdistDown;
|
390 |
} |
391 |
|
392 |
/**
|
393 |
* This method initializes bdistLeft
|
394 |
*
|
395 |
* @return javax.swing.JButton
|
396 |
*/
|
397 |
private javax.swing.JButton getBdistLeft() {
|
398 |
if (bdistLeft == null) { |
399 |
bdistLeft = new javax.swing.JButton();
|
400 |
bdistLeft.setSize(24, 24); |
401 |
bdistLeft.setIcon(idistLeft); |
402 |
bdistLeft.setToolTipText(PluginServices.getText(this,"distribuye_los_elementos_seleccionados_de_forma_equidistante_de_izquierda_a_derecha")); |
403 |
bdistLeft.setLocation(10, 73); |
404 |
} |
405 |
|
406 |
return bdistLeft;
|
407 |
} |
408 |
|
409 |
/**
|
410 |
* This method initializes bdistcenterH
|
411 |
*
|
412 |
* @return javax.swing.JButton
|
413 |
*/
|
414 |
private javax.swing.JButton getBdistcenterH() {
|
415 |
if (bdistcenterH == null) { |
416 |
bdistcenterH = new javax.swing.JButton();
|
417 |
bdistcenterH.setSize(24, 24); |
418 |
bdistcenterH.setIcon(idistCenterV); |
419 |
bdistcenterH.setToolTipText(PluginServices.getText(this,"distribuye_los_elementos_seleccionados_de_forma_equidistante_y_horizontal")); |
420 |
bdistcenterH.setLocation(35, 73); |
421 |
} |
422 |
|
423 |
return bdistcenterH;
|
424 |
} |
425 |
|
426 |
/**
|
427 |
* This method initializes bdistRight
|
428 |
*
|
429 |
* @return javax.swing.JButton
|
430 |
*/
|
431 |
private javax.swing.JButton getBdistRight() {
|
432 |
if (bdistRight == null) { |
433 |
bdistRight = new javax.swing.JButton();
|
434 |
bdistRight.setIcon(idistRight); |
435 |
bdistRight.setToolTipText(PluginServices.getText(this,"distribuye_los_elementos_seleccionados_de_forma_equidistante_de_derecha_a_izquierda")); |
436 |
bdistRight.setBounds(60, 73, 24, 24); |
437 |
} |
438 |
|
439 |
return bdistRight;
|
440 |
} |
441 |
|
442 |
/**
|
443 |
* This method initializes lTamano
|
444 |
*
|
445 |
* @return javax.swing.JLabel
|
446 |
*/
|
447 |
private javax.swing.JLabel getLTamano() {
|
448 |
if (lTamano == null) { |
449 |
lTamano = new javax.swing.JLabel();
|
450 |
lTamano.setBounds(10, 101, 107, 13); |
451 |
lTamano.setText(PluginServices.getText(this, "coincidir_tamanyo")); |
452 |
} |
453 |
|
454 |
return lTamano;
|
455 |
} |
456 |
|
457 |
/**
|
458 |
* This method initializes bsizecenterV
|
459 |
*
|
460 |
* @return javax.swing.JButton
|
461 |
*/
|
462 |
private javax.swing.JButton getBsizecenterV() {
|
463 |
if (bsizecenterV == null) { |
464 |
bsizecenterV = new javax.swing.JButton();
|
465 |
bsizecenterV.setIcon(isizeWidth); |
466 |
bsizecenterV.setToolTipText(PluginServices.getText(this,"cambiar_el_ancho_de_los_elementos_seleccionados_hasta_coincidir_con_el_mas_ancho")); |
467 |
bsizecenterV.setBounds(10, 115, 24, 24); |
468 |
} |
469 |
|
470 |
return bsizecenterV;
|
471 |
} |
472 |
|
473 |
/**
|
474 |
* This method initializes bsizecenterH
|
475 |
*
|
476 |
* @return javax.swing.JButton
|
477 |
*/
|
478 |
private javax.swing.JButton getBsizecenterH() {
|
479 |
if (bsizecenterH == null) { |
480 |
bsizecenterH = new javax.swing.JButton();
|
481 |
bsizecenterH.setIcon(isizeHeight); |
482 |
bsizecenterH.setToolTipText(PluginServices.getText(this,"cambiar_el_alto_de_los_elementos_seleccionados_hasta_coincidir_con_el_mas_alto")); |
483 |
bsizecenterH.setBounds(35, 115, 24, 24); |
484 |
} |
485 |
|
486 |
return bsizecenterH;
|
487 |
} |
488 |
|
489 |
/**
|
490 |
* This method initializes bsizeother
|
491 |
*
|
492 |
* @return javax.swing.JButton
|
493 |
*/
|
494 |
private javax.swing.JButton getBsizeother() {
|
495 |
if (bsizeother == null) { |
496 |
bsizeother = new javax.swing.JButton();
|
497 |
bsizeother.setIcon(isizeOther); |
498 |
bsizeother.setToolTipText(PluginServices.getText(this,"cambiar_el_tamano_de_los_elementos_seleccionados_hasta_coincidir_con_el_mas_grande")); |
499 |
bsizeother.setBounds(60, 115, 24, 24); |
500 |
} |
501 |
|
502 |
return bsizeother;
|
503 |
} |
504 |
|
505 |
/**
|
506 |
* This method initializes bspaceRight
|
507 |
*
|
508 |
* @return javax.swing.JButton
|
509 |
*/
|
510 |
private javax.swing.JButton getBspaceRight() {
|
511 |
if (bspaceRight == null) { |
512 |
bspaceRight = new javax.swing.JButton();
|
513 |
bspaceRight.setIcon(ispaceRight); |
514 |
bspaceRight.setToolTipText(PluginServices.getText(this,"distribuye_el_espacio_entre_los_elementos_en_horizontal")); |
515 |
bspaceRight.setBounds(125, 115, 24, 24); |
516 |
} |
517 |
|
518 |
return bspaceRight;
|
519 |
} |
520 |
|
521 |
/**
|
522 |
* This method initializes bspaceDown
|
523 |
*
|
524 |
* @return javax.swing.JButton
|
525 |
*/
|
526 |
private javax.swing.JButton getBspaceDown() {
|
527 |
if (bspaceDown == null) { |
528 |
bspaceDown = new javax.swing.JButton();
|
529 |
bspaceDown.setIcon(ispaceDown); |
530 |
bspaceDown.setToolTipText(PluginServices.getText(this,"distribuye_el_espacio_entre_los_elementos_en_vertical")); |
531 |
bspaceDown.setBounds(150, 115, 24, 24); |
532 |
} |
533 |
|
534 |
return bspaceDown;
|
535 |
} |
536 |
|
537 |
/**
|
538 |
* This method initializes lEspacio
|
539 |
*
|
540 |
* @return javax.swing.JLabel
|
541 |
*/
|
542 |
private javax.swing.JLabel getLEspacio() {
|
543 |
if (lEspacio == null) { |
544 |
lEspacio = new javax.swing.JLabel();
|
545 |
lEspacio.setBounds(125, 100, 57, 15); |
546 |
lEspacio.setText(PluginServices.getText(this, "espacio")); |
547 |
} |
548 |
|
549 |
return lEspacio;
|
550 |
} |
551 |
|
552 |
/**
|
553 |
* This method initializes lEnElMapa
|
554 |
*
|
555 |
* @return javax.swing.JLabel
|
556 |
*/
|
557 |
private javax.swing.JLabel getLEnElMapa() {
|
558 |
if (lEnElMapa == null) { |
559 |
lEnElMapa = new javax.swing.JLabel();
|
560 |
lEnElMapa.setBounds(187, 33, 77, 17); |
561 |
lEnElMapa.setText(PluginServices.getText(this, "en_el_mapa")); |
562 |
} |
563 |
|
564 |
return lEnElMapa;
|
565 |
} |
566 |
|
567 |
/**
|
568 |
* This method initializes binLayout
|
569 |
*
|
570 |
* @return javax.swing.JButton
|
571 |
*/
|
572 |
private JToggleButton getBinLayout() { |
573 |
if (binLayout == null) { |
574 |
binLayout = new JToggleButton(); |
575 |
binLayout.setIcon(iinLayout); |
576 |
binLayout.setToolTipText(PluginServices.getText(this,"distribuir_elementos_sobre_todo_el_layout")); |
577 |
binLayout.setBounds(199, 58, 51, 41); |
578 |
} |
579 |
|
580 |
return binLayout;
|
581 |
} |
582 |
|
583 |
/**
|
584 |
* @see com.iver.mdiApp.ui.MDIManager.SingletonWindow#getWindowModel()
|
585 |
*/
|
586 |
public Object getWindowModel() { |
587 |
return "AlignDialog"; |
588 |
} |
589 |
|
590 |
/**
|
591 |
* @see com.iver.mdiApp.ui.MDIManager.IWindow#getWindowInfo()
|
592 |
*/
|
593 |
public WindowInfo getWindowInfo() {
|
594 |
WindowInfo m_viewinfo = new WindowInfo(WindowInfo.MODELESSDIALOG|WindowInfo.PALETTE);
|
595 |
m_viewinfo.setTitle(PluginServices.getText(this, "alinear")); |
596 |
|
597 |
return m_viewinfo;
|
598 |
} |
599 |
|
600 |
/**
|
601 |
* @see com.iver.mdiApp.ui.MDIManager.IWindow#windowActivated()
|
602 |
*/
|
603 |
public void viewActivated() { |
604 |
} |
605 |
} // @jve:decl-index=0:visual-constraint="10,10"
|