Revision 228 trunk/org.gvsig.app.document.layout2.app/org.gvsig.app.document.layout2.app.mainplugin/src/main/java/org/gvsig/app/project/documents/layout/gui/dialogs/EventsFAlign.java

View differences:

EventsFAlign.java
162 162
    private void alignCenterVL() throws CloneNotSupportedException {
163 163
        double xcenter = 0;
164 164
        xcenter =
165
            m_layout.getLayoutContext().getAttributes().m_sizePaper.getAncho() / 2;
165
            m_layout.getLayoutContext().getAttributes().m_sizePaper.getWidth() / 2;
166 166

  
167 167
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
168 168
        FrameCommandsRecord efs =
......
225 225
    private void alignRightL() throws CloneNotSupportedException {
226 226
        double xmax = 0;
227 227
        xmax =
228
            m_layout.getLayoutContext().getAttributes().m_sizePaper.getAncho();
228
            m_layout.getLayoutContext().getAttributes().m_sizePaper.getWidth();
229 229

  
230 230
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
231 231
        FrameCommandsRecord efs =
......
288 288
    private void alignDownL() throws CloneNotSupportedException {
289 289
        double ymax = 0;
290 290
        ymax =
291
            m_layout.getLayoutContext().getAttributes().m_sizePaper.getAlto();
291
            m_layout.getLayoutContext().getAttributes().m_sizePaper.getHeight();
292 292

  
293 293
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
294 294
        FrameCommandsRecord efs =
......
409 409
    private void alignCenterHL() throws CloneNotSupportedException {
410 410
        double ycenter = 0;
411 411
        ycenter =
412
            m_layout.getLayoutContext().getAttributes().m_sizePaper.getAlto() / 2;
412
            m_layout.getLayoutContext().getAttributes().m_sizePaper.getHeight() / 2;
413 413

  
414 414
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
415 415
        FrameCommandsRecord efs =
......
482 482
        double xmin = 0;
483 483
        double xmax = 0;
484 484
        xmax =
485
            m_layout.getLayoutContext().getAttributes().m_sizePaper.getAncho();
485
            m_layout.getLayoutContext().getAttributes().m_sizePaper.getWidth();
486 486

  
487 487
        int num = 0;
488 488
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
......
558 558
        double xmin = 0;
559 559
        double xmax = 0;
560 560
        xmax =
561
            m_layout.getLayoutContext().getAttributes().m_sizePaper.getAncho();
561
            m_layout.getLayoutContext().getAttributes().m_sizePaper.getWidth();
562 562

  
563 563
        int num = 0;
564 564
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
......
634 634
        double ymin = 0;
635 635
        double ymax = 0;
636 636
        ymax =
637
            m_layout.getLayoutContext().getAttributes().m_sizePaper.getAlto();
637
            m_layout.getLayoutContext().getAttributes().m_sizePaper.getHeight();
638 638

  
639 639
        int num = 0;
640 640
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
......
713 713
        double ymin = 0;
714 714
        double ymax = 0;
715 715
        ymax =
716
            m_layout.getLayoutContext().getAttributes().m_sizePaper.getAlto();
716
            m_layout.getLayoutContext().getAttributes().m_sizePaper.getHeight();
717 717

  
718 718
        int num = 0;
719 719
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
......
793 793
        double xmin = 0;
794 794
        double xmax = 0;
795 795
        xmax =
796
            m_layout.getLayoutContext().getAttributes().m_sizePaper.getAncho();
796
            m_layout.getLayoutContext().getAttributes().m_sizePaper.getWidth();
797 797

  
798 798
        int num = 0;
799 799
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
......
874 874
        double ymin = 0;
875 875
        double ymax = 0;
876 876
        ymax =
877
            m_layout.getLayoutContext().getAttributes().m_sizePaper.getAlto();
877
            m_layout.getLayoutContext().getAttributes().m_sizePaper.getHeight();
878 878

  
879 879
        int num = 0;
880 880
        IFFrame[] fframes = m_layout.getLayoutContext().getSelectedFFrames();
......
1013 1013
        if (inLayout) {
1014 1014
            total +=
1015 1015
                (xmin + (m_layout.getLayoutContext().getAttributes().m_sizePaper
1016
                    .getAncho() - xmax));
1016
                    .getWidth() - xmax));
1017 1017
            num += 2;
1018 1018
        }
1019 1019

  
......
1095 1095
        if (inLayout) {
1096 1096
            total +=
1097 1097
                (ymin + (m_layout.getLayoutContext().getAttributes().m_sizePaper
1098
                    .getAlto() - ymax));
1098
                    .getHeight() - ymax));
1099 1099
            num += 2;
1100 1100
        }
1101 1101

  

Also available in: Unified diff