Revision 140 branches/usability_v2/org.gvsig.app.document.layout.app/org.gvsig.app.document.layout.app.mainplugin/src/main/java/org/gvsig/app/project/documents/layout/gui/dialogs/EventsFAlign.java

View differences:

EventsFAlign.java
65 65
     */
66 66
    private void alignLeft() throws CloneNotSupportedException {
67 67
        double xmin = Double.MAX_VALUE;
68
        IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected();
68
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
69 69

  
70 70
        for (int i = 0; i < fframes.length; i++) {
71 71
            IFFrame fframe = fframes[i];
......
99 99
     */
100 100
    private void alignLeftL() throws CloneNotSupportedException {
101 101
        double xmin = 0;
102
        IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected();
102
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
103 103
        FrameCommandsRecord efs =
104 104
            m_layout.getLayoutContext().getFrameCommandsRecord();
105 105
        efs.startComplex(PluginServices.getText(this, "align_to_layout_left"));
......
126 126
    private void alignCenterV() throws CloneNotSupportedException {
127 127
        double xcenter = 0;
128 128
        double w = Double.NEGATIVE_INFINITY;
129
        IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected();
129
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
130 130

  
131 131
        for (int i = 0; i < fframes.length; i++) {
132 132
            IFFrame fframe = fframes[i];
......
164 164
        xcenter =
165 165
            m_layout.getLayoutContext().getAttributes().m_sizePaper.getAncho() / 2;
166 166

  
167
        IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected();
167
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
168 168
        FrameCommandsRecord efs =
169 169
            m_layout.getLayoutContext().getFrameCommandsRecord();
170 170
        efs.startComplex(PluginServices.getText(this, "align_to_layout_center"));
......
190 190
     */
191 191
    private void alignRight() throws CloneNotSupportedException {
192 192
        double xmax = Double.NEGATIVE_INFINITY;
193
        IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected();
193
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
194 194

  
195 195
        for (int i = 0; i < fframes.length; i++) {
196 196
            IFFrame fframe = fframes[i];
......
227 227
        xmax =
228 228
            m_layout.getLayoutContext().getAttributes().m_sizePaper.getAncho();
229 229

  
230
        IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected();
230
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
231 231
        FrameCommandsRecord efs =
232 232
            m_layout.getLayoutContext().getFrameCommandsRecord();
233 233
        efs.startComplex(PluginServices.getText(this, "align_to_layout_right"));
......
253 253
     */
254 254
    private void alignDown() throws CloneNotSupportedException {
255 255
        double ymax = Double.NEGATIVE_INFINITY;
256
        IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected();
256
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
257 257

  
258 258
        for (int i = 0; i < fframes.length; i++) {
259 259
            IFFrame fframe = fframes[i];
......
290 290
        ymax =
291 291
            m_layout.getLayoutContext().getAttributes().m_sizePaper.getAlto();
292 292

  
293
        IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected();
293
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
294 294
        FrameCommandsRecord efs =
295 295
            m_layout.getLayoutContext().getFrameCommandsRecord();
296 296
        efs.startComplex(PluginServices.getText(this, "align_to_layout_down"));
......
315 315
     */
316 316
    private void alignUp() throws CloneNotSupportedException {
317 317
        double ymin = Double.MAX_VALUE;
318
        IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected();
318
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
319 319

  
320 320
        for (int i = 0; i < fframes.length; i++) {
321 321
            IFFrame fframe = fframes[i];
......
348 348
     */
349 349
    private void alignUpL() throws CloneNotSupportedException {
350 350
        double ymin = 0;
351
        IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected();
351
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
352 352
        FrameCommandsRecord efs =
353 353
            m_layout.getLayoutContext().getFrameCommandsRecord();
354 354
        efs.startComplex(PluginServices.getText(this, "align_to_layout_up"));
......
374 374
    private void alignCenterH() throws CloneNotSupportedException {
375 375
        double ycenter = 0;
376 376
        double h = Double.NEGATIVE_INFINITY;
377
        IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected();
377
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
378 378

  
379 379
        for (int i = 0; i < fframes.length; i++) {
380 380
            IFFrame fframe = fframes[i];
......
411 411
        ycenter =
412 412
            m_layout.getLayoutContext().getAttributes().m_sizePaper.getAlto() / 2;
413 413

  
414
        IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected();
414
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
415 415
        FrameCommandsRecord efs =
416 416
            m_layout.getLayoutContext().getFrameCommandsRecord();
417 417
        efs.startComplex(PluginServices.getText(this,
......
439 439
        double xmin = Double.MAX_VALUE;
440 440
        double xmax = Double.NEGATIVE_INFINITY;
441 441
        int num = 0;
442
        IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected();
442
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
443 443
        num = fframes.length;
444 444

  
445 445
        for (int i = 0; i < num; i++) {
......
485 485
            m_layout.getLayoutContext().getAttributes().m_sizePaper.getAncho();
486 486

  
487 487
        int num = 0;
488
        IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected();
488
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
489 489
        num = fframes.length;
490 490

  
491 491
        double dif = xmax - xmin;
......
515 515
        double xmin = Double.MAX_VALUE;
516 516
        double xmax = Double.NEGATIVE_INFINITY;
517 517
        int num = 0;
518
        IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected();
518
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
519 519
        num = fframes.length;
520 520

  
521 521
        for (int i = 0; i < num; i++) {
......
561 561
            m_layout.getLayoutContext().getAttributes().m_sizePaper.getAncho();
562 562

  
563 563
        int num = 0;
564
        IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected();
564
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
565 565
        num = fframes.length;
566 566

  
567 567
        double dif = xmax - xmin;
......
591 591
        double ymin = Double.MAX_VALUE;
592 592
        double ymax = Double.NEGATIVE_INFINITY;
593 593
        int num = 0;
594
        IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected();
594
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
595 595
        num = fframes.length;
596 596

  
597 597
        for (int i = 0; i < num; i++) {
......
637 637
            m_layout.getLayoutContext().getAttributes().m_sizePaper.getAlto();
638 638

  
639 639
        int num = 0;
640
        IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected();
640
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
641 641

  
642 642
        num = fframes.length;
643 643

  
......
670 670
        double ymin = Double.MAX_VALUE;
671 671
        double ymax = Double.NEGATIVE_INFINITY;
672 672
        int num = 0;
673
        IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected();
673
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
674 674
        num = fframes.length;
675 675

  
676 676
        for (int i = 0; i < num; i++) {
......
716 716
            m_layout.getLayoutContext().getAttributes().m_sizePaper.getAlto();
717 717

  
718 718
        int num = 0;
719
        IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected();
719
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
720 720

  
721 721
        num = fframes.length;
722 722

  
......
748 748
        double xmin = Double.MAX_VALUE;
749 749
        double xmax = Double.NEGATIVE_INFINITY;
750 750
        int num = 0;
751
        IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected();
751
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
752 752
        num = fframes.length;
753 753

  
754 754
        for (int i = 0; i < num; i++) {
......
796 796
            m_layout.getLayoutContext().getAttributes().m_sizePaper.getAncho();
797 797

  
798 798
        int num = 0;
799
        IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected();
799
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
800 800
        num = fframes.length;
801 801

  
802 802
        double dif = xmax - xmin;
......
829 829
        double ymin = Double.MAX_VALUE;
830 830
        double ymax = Double.NEGATIVE_INFINITY;
831 831
        int num = 0;
832
        IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected();
832
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
833 833
        num = fframes.length;
834 834

  
835 835
        for (int i = 0; i < num; i++) {
......
877 877
            m_layout.getLayoutContext().getAttributes().m_sizePaper.getAlto();
878 878

  
879 879
        int num = 0;
880
        IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected();
880
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
881 881
        num = fframes.length;
882 882

  
883 883
        double dif = ymax - ymin;
......
909 909
     */
910 910
    private void sizeWidth() throws CloneNotSupportedException {
911 911
        double wmax = Double.NEGATIVE_INFINITY;
912
        IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected();
912
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
913 913

  
914 914
        for (int i = 0; i < fframes.length; i++) {
915 915
            IFFrame fframe = fframes[i];
......
943 943
     */
944 944
    private void sizeHeight() throws CloneNotSupportedException {
945 945
        double hmax = Double.NEGATIVE_INFINITY;
946
        IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected();
946
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
947 947

  
948 948
        for (int i = 0; i < fframes.length; i++) {
949 949
            IFFrame fframe = fframes[i];
......
982 982
        double xmax = Double.NEGATIVE_INFINITY;
983 983

  
984 984
        TreeMap<Double, IFFrame> treemap = new TreeMap<Double, IFFrame>();
985
        IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected();
985
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
986 986
        num = fframes.length;
987 987

  
988 988
        for (int i = 0; i < num; i++) {
......
1063 1063
        double ymax = Double.NEGATIVE_INFINITY;
1064 1064

  
1065 1065
        TreeMap<Double, IFFrame> treemap = new TreeMap<Double, IFFrame>();
1066
        IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected();
1066
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
1067 1067
        num = fframes.length;
1068 1068

  
1069 1069
        for (int i = 0; i < num; i++) {

Also available in: Unified diff