Revision 24962 branches/v2_0_0_prep/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/gui/dialogs/EventsFAlign.java

View differences:

EventsFAlign.java
91 91
        }
92 92

  
93 93
        FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
94
        efs.startComplex();
94
        efs.startComplex(PluginServices.getText(this, "align_left"));
95 95

  
96 96
        for (int i = fframes.length - 1; i >= 0; i--) {
97 97
            IFFrame fframe = fframes[i].cloneFFrame(m_layout);
......
103 103
            efs.update(fframes[i], fframe);
104 104
        }
105 105

  
106
        efs.endComplex(PluginServices.getText(this, "align_left"));
106
        efs.endComplex();
107 107
    }
108 108

  
109 109
    /**
......
113 113
        double xmin = 0;
114 114
        IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected();
115 115
        FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
116
        efs.startComplex();
116
        efs.startComplex(PluginServices.getText(this,"align_to_layout_left"));
117 117

  
118 118
        for (int i = 0; i < fframes.length; i++) {
119 119
            IFFrame fframe = fframes[i].cloneFFrame(m_layout);
......
125 125
            efs.update(fframes[i], fframe);
126 126
        }
127 127

  
128
        efs.endComplex(PluginServices.getText(this,"align_to_layout_left"));
128
        efs.endComplex();
129 129
    }
130 130

  
131 131
    /**
......
147 147
        }
148 148

  
149 149
        FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
150
        efs.startComplex();
150
        efs.startComplex(PluginServices.getText(this, "align_center"));
151 151

  
152 152
        for (int i = 0; i < fframes.length; i++) {
153 153
            IFFrame fframe = fframes[i].cloneFFrame(m_layout);
......
159 159
            efs.update(fframes[i], fframe);
160 160
        }
161 161

  
162
        efs.endComplex(PluginServices.getText(this, "align_center"));
162
        efs.endComplex();
163 163
    }
164 164

  
165 165
    /**
......
171 171

  
172 172
        IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected();
173 173
        FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
174
        efs.startComplex();
174
        efs.startComplex(PluginServices.getText(this,"align_to_layout_center"));
175 175

  
176 176
        for (int i = 0; i < fframes.length; i++) {
177 177
            IFFrame fframe = fframes[i].cloneFFrame(m_layout);
......
183 183
            efs.update(fframes[i], fframe);
184 184
        }
185 185

  
186
        efs.endComplex(PluginServices.getText(this,"align_to_layout_center"));
186
        efs.endComplex();
187 187
    }
188 188

  
189 189
    /**
......
203 203
        }
204 204

  
205 205
        FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
206
        efs.startComplex();
206
        efs.startComplex(PluginServices.getText(this, "align_right"));
207 207

  
208 208
        for (int i = 0; i < fframes.length; i++) {
209 209
            IFFrame fframe = fframes[i].cloneFFrame(m_layout);
......
215 215
            efs.update(fframes[i], fframe);
216 216
        }
217 217

  
218
        efs.endComplex(PluginServices.getText(this, "align_right"));
218
        efs.endComplex();
219 219
    }
220 220

  
221 221
    /**
......
227 227

  
228 228
        IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected();
229 229
        FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
230
        efs.startComplex();
230
        efs.startComplex(PluginServices.getText(this, "align_to_layout_right"));
231 231

  
232 232
        for (int i = 0; i < fframes.length; i++) {
233 233
            IFFrame fframe = fframes[i].cloneFFrame(m_layout);
......
239 239
            efs.update(fframes[i], fframe);
240 240
        }
241 241

  
242
        efs.endComplex(PluginServices.getText(this,
243
                "align_to_layout_right"));
242
        efs.endComplex();
244 243
    }
245 244

  
246 245
    /**
......
260 259
        }
261 260

  
262 261
        FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
263
        efs.startComplex();
262
        efs.startComplex(PluginServices.getText(this, "align_down"));
264 263

  
265 264
        for (int i = 0; i < fframes.length; i++) {
266 265
            IFFrame fframe = fframes[i].cloneFFrame(m_layout);
......
272 271
            efs.update(fframes[i], fframe);
273 272
        }
274 273

  
275
        efs.endComplex(PluginServices.getText(this, "align_down"));
274
        efs.endComplex();
276 275
    }
277 276

  
278 277
    /**
......
284 283

  
285 284
        IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected();
286 285
        FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
287
        efs.startComplex();
286
        efs.startComplex(PluginServices.getText(this, "align_to_layout_down"));
288 287

  
289 288
        for (int i = 0; i < fframes.length; i++) {
290 289
            IFFrame fframe = fframes[i].cloneFFrame(m_layout);
......
295 294
            efs.update(fframes[i], fframe);
296 295
        }
297 296

  
298
        efs.endComplex(PluginServices.getText(this,
299
                "align_to_layout_down"));
297
        efs.endComplex();
300 298
    }
301 299

  
302 300
    /**
......
316 314
        }
317 315

  
318 316
        FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
319
        efs.startComplex();
317
        efs.startComplex(PluginServices.getText(this, "align_up"));
320 318

  
321 319
        for (int i = 0; i < fframes.length; i++) {
322 320
            IFFrame fframe = fframes[i].cloneFFrame(m_layout);
......
327 325
            efs.update(fframes[i], fframe);
328 326
        }
329 327

  
330
        efs.endComplex(PluginServices.getText(this, "align_up"));
328
        efs.endComplex();
331 329
    }
332 330

  
333 331
    /**
......
337 335
        double ymin = 0;
338 336
        IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected();
339 337
        FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
340
        efs.startComplex();
338
        efs.startComplex(PluginServices.getText(this, "align_to_layout_up"));
341 339

  
342 340
        for (int i = 0; i < fframes.length; i++) {
343 341
            IFFrame fframe = fframes[i].cloneFFrame(m_layout);
......
348 346
            efs.update(fframes[i], fframe);
349 347
        }
350 348

  
351
        efs.endComplex(PluginServices.getText(this, "align_to_layout_up"));
349
        efs.endComplex();
352 350
    }
353 351

  
354 352
    /**
......
370 368
        }
371 369

  
372 370
        FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
373
        efs.startComplex();
371
        efs.startComplex(PluginServices.getText(this, "align_vertical_center"));
374 372

  
375 373
        for (int i = 0; i < fframes.length; i++) {
376 374
            IFFrame fframe = fframes[i].cloneFFrame(m_layout);
......
381 379
            efs.update(fframes[i], fframe);
382 380
        }
383 381

  
384
        efs.endComplex(PluginServices.getText(this,
385
                "align_vertical_center"));
382
        efs.endComplex();
386 383
    }
387 384

  
388 385
    /**
......
394 391

  
395 392
        IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected();
396 393
        FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
397
        efs.startComplex();
394
        efs.startComplex(PluginServices.getText(this, "align_to_layout_vertical_center"));
398 395

  
399 396
        for (int i = 0; i < fframes.length; i++) {
400 397
            IFFrame fframe = fframes[i].cloneFFrame(m_layout);
......
405 402
            efs.update(fframes[i], fframe);
406 403
        }
407 404

  
408
        efs.endComplex(PluginServices.getText(this,
409
                "align_to_layout_vertical_center"));
405
        efs.endComplex();
410 406
    }
411 407

  
412 408
    /**
......
435 431
        double dif = xmax - xmin;
436 432
        double dist = dif / num;
437 433
        FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
438
        efs.startComplex();
434
        efs.startComplex(PluginServices.getText(this, "distributes_left"));
439 435

  
440 436
        for (int i = 0; i < fframes.length; i++) {
441 437
            IFFrame fframe = fframes[i].cloneFFrame(m_layout);
......
446 442
            efs.update(fframes[i], fframe);
447 443
        }
448 444

  
449
        efs.endComplex(PluginServices.getText(this, "distributes_left"));
445
        efs.endComplex();
450 446
    }
451 447

  
452 448
    /**
......
465 461
        double dif = xmax - xmin;
466 462
        double dist = dif / num;
467 463
        FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
468
        efs.startComplex();
464
        efs.startComplex(PluginServices.getText(this, "distributes_to_layout_left"));
469 465

  
470 466
        for (int i = 0; i < fframes.length; i++) {
471 467
            IFFrame fframe = fframes[i].cloneFFrame(m_layout);
......
476 472
            efs.update(fframes[i], fframe);
477 473
        }
478 474

  
479
        efs.endComplex(PluginServices.getText(this,
480
                "distributes_to_layout_left"));
475
        efs.endComplex();
481 476
    }
482 477

  
483 478
    /**
......
506 501
        double dif = xmax - xmin;
507 502
        double dist = dif / num;
508 503
        FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
509
        efs.startComplex();
504
        efs.startComplex(PluginServices.getText(this, "distributes_right"));
510 505

  
511 506
        for (int i = 0; i < fframes.length; i++) {
512 507
            IFFrame fframe = fframes[i];
......
517 512
            efs.update(fframes[i], fframe);
518 513
        }
519 514

  
520
        efs.endComplex(PluginServices.getText(this, "distributes_right"));
515
        efs.endComplex();
521 516
    }
522 517

  
523 518
    /**
......
536 531
        double dif = xmax - xmin;
537 532
        double dist = dif / num;
538 533
        FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
539
        efs.startComplex();
534
        efs.startComplex(PluginServices.getText(this, "distributes_to_layout_right"));
540 535

  
541 536
        for (int i = 0; i < fframes.length; i++) {
542 537
            IFFrame fframe = fframes[i].cloneFFrame(m_layout);
......
547 542
            efs.update(fframes[i], fframe);
548 543
        }
549 544

  
550
        efs.endComplex(PluginServices.getText(this,
551
                "distributes_to_layout_right"));
545
        efs.endComplex();
552 546
    }
553 547

  
554 548
    /**
......
577 571
        double dif = ymax - ymin;
578 572
        double dist = dif / num;
579 573
        FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
580
        efs.startComplex();
574
        efs.startComplex(PluginServices.getText(this, "distributes_up"));
581 575

  
582 576
        for (int i = 0; i < fframes.length; i++) {
583 577
            IFFrame fframe = fframes[i];
......
588 582
            efs.update(fframes[i], fframe);
589 583
        }
590 584

  
591
        efs.endComplex(PluginServices.getText(this, "distributes_up"));
585
        efs.endComplex();
592 586
    }
593 587

  
594 588
    /**
......
608 602
        double dif = ymax - ymin;
609 603
        double dist = dif / num;
610 604
        FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
611
        efs.startComplex();
605
        efs.startComplex(PluginServices.getText(this, "distributes_to_layout_up"));
612 606

  
613 607
        for (int i = 0; i < fframes.length; i++) {
614 608
            IFFrame fframe = fframes[i].cloneFFrame(m_layout);
......
619 613
            efs.update(fframes[i], fframe);
620 614
        }
621 615

  
622
        efs.endComplex(PluginServices.getText(this,
623
                "distributes_to_layout_up"));
616
        efs.endComplex();
624 617
    }
625 618

  
626 619
    /**
......
649 642
        double dif = ymax - ymin;
650 643
        double dist = dif / num;
651 644
        FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
652
        efs.startComplex();
645
        efs.startComplex(PluginServices.getText(this, "distributes_down"));
653 646

  
654 647
        for (int i = 0; i < fframes.length; i++) {
655 648
            IFFrame fframe = fframes[i].cloneFFrame(m_layout);
......
660 653
            efs.update(fframes[i], fframe);
661 654
        }
662 655

  
663
        efs.endComplex(PluginServices.getText(this, "distributes_down"));
656
        efs.endComplex();
664 657
    }
665 658

  
666 659
    /**
......
680 673
        double dif = ymax - ymin;
681 674
        double dist = dif / num;
682 675
        FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
683
        efs.startComplex();
676
        efs.startComplex(PluginServices.getText(this, "distributes_to_layout_down"));
684 677

  
685 678
        for (int i = fframes.length - 1; i >= 0; i--) {
686 679
            IFFrame fframe = fframes[i].cloneFFrame(m_layout);
......
691 684
            efs.update(fframes[i], fframe);
692 685
        }
693 686

  
694
        efs.endComplex(PluginServices.getText(this,
695
                "distributes_to_layout_down"));
687
        efs.endComplex();
696 688
    }
697 689

  
698 690
    /**
......
720 712
        double dif = xmax - xmin;
721 713
        double dist = dif / num;
722 714
        FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
723
        efs.startComplex();
715
        efs.startComplex(PluginServices.getText(this, "distributes_vertical"));
724 716

  
725 717
        for (int i = 0; i < fframes.length; i++) {
726 718
            IFFrame fframe = fframes[i].cloneFFrame(m_layout);
......
732 724
            efs.update(fframes[i], fframe);
733 725
        }
734 726

  
735
        efs.endComplex(PluginServices.getText(this,
736
                "distributes_vertical"));
727
        efs.endComplex();
737 728
    }
738 729

  
739 730
    /**
......
752 743
        double dif = xmax - xmin;
753 744
        double dist = dif / num;
754 745
        FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
755
        efs.startComplex();
746
        efs.startComplex(PluginServices.getText(this, "distributes_to_layout_vertical"));
756 747

  
757 748
        for (int i = 0; i < fframes.length; i++) {
758 749
            IFFrame fframe = fframes[i].cloneFFrame(m_layout);
......
764 755
            efs.update(fframes[i], fframe);
765 756
        }
766 757

  
767
        efs.endComplex(PluginServices.getText(this,
768
                "distributes_to_layout_vertical"));
758
        efs.endComplex();
769 759
    }
770 760

  
771 761
    /**
......
793 783
        double dif = ymax - ymin;
794 784
        double dist = dif / num;
795 785
        FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
796
        efs.startComplex();
786
        efs.startComplex(PluginServices.getText(this, "distributes_horizontal"));
797 787

  
798 788
        for (int i = 0; i < fframes.length; i++) {
799 789
            IFFrame fframe = fframes[i].cloneFFrame(m_layout);
......
805 795
            efs.update(fframes[i], fframe);
806 796
        }
807 797

  
808
        efs.endComplex(PluginServices.getText(this,
809
                "distributes_horizontal"));
798
        efs.endComplex();
810 799
    }
811 800

  
812 801
    /**
......
825 814
        double dif = ymax - ymin;
826 815
        double dist = dif / num;
827 816
        FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
828
        efs.startComplex();
817
        efs.startComplex(PluginServices.getText(this, "distributes_to_layout_horizontal"));
829 818

  
830 819
        for (int i = 0; i < fframes.length; i++) {
831 820
            IFFrame fframe = fframes[i].cloneFFrame(m_layout);
......
837 826
            efs.update(fframes[i], fframe);
838 827
        }
839 828

  
840
        efs.endComplex(PluginServices.getText(this,
841
                "distributes_to_layout_horizontal"));
829
        efs.endComplex();
842 830
    }
843 831

  
844 832
    /**
......
858 846
        }
859 847

  
860 848
        FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
861
        efs.startComplex();
849
        efs.startComplex(PluginServices.getText(this, "change_width"));
862 850

  
863 851
        for (int i = 0; i < fframes.length; i++) {
864 852
            IFFrame fframe = fframes[i].cloneFFrame(m_layout);
......
869 857
            efs.update(fframes[i], fframe);
870 858
        }
871 859

  
872
        efs.endComplex(PluginServices.getText(this, "change_width"));
860
        efs.endComplex();
873 861
    }
874 862

  
875 863
    /**
......
889 877
        }
890 878

  
891 879
        FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
892
        efs.startComplex();
880
        efs.startComplex(PluginServices.getText(this, "change_height"));
893 881

  
894 882
        for (int i = 0; i < fframes.length; i++) {
895 883
            IFFrame fframe = fframes[i].cloneFFrame(m_layout);
......
900 888
            efs.update(fframes[i], fframe);
901 889
        }
902 890

  
903
        efs.endComplex(PluginServices.getText(this, "change_height"));
891
        efs.endComplex();
904 892
    }
905 893

  
906 894
    /**
......
950 938
        double dist = total / (num - 1);
951 939
        Iterator k = treemap.keySet().iterator();
952 940
        FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
953
        efs.startComplex();
941
        efs.startComplex(PluginServices.getText(this, "horizontal_space"));
954 942

  
955 943
        if (k.hasNext()) {
956 944
            IFFrame fframe = (IFFrame) treemap.get(k.next());
......
976 964
            }
977 965
        }
978 966

  
979
        efs.endComplex(PluginServices.getText(this, "horizontal_space"));
967
        efs.endComplex();
980 968
    }
981 969

  
982 970
    /**
......
1027 1015
        double dist = total / (num - 1);
1028 1016
        Iterator k = treemap.keySet().iterator();
1029 1017
        FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
1030
        efs.startComplex();
1018
        efs.startComplex(PluginServices.getText(this, "vertical_space"));
1031 1019

  
1032 1020
        if (k.hasNext()) {
1033 1021
            IFFrame fframe = (IFFrame) treemap.get(k.next());
......
1053 1041
            }
1054 1042
        }
1055 1043

  
1056
        efs.endComplex(PluginServices.getText(this, "vertical_space"));
1044
        efs.endComplex();
1057 1045
    }
1058 1046

  
1059 1047
    /**

Also available in: Unified diff