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