Revision 21358 branches/v2_0_0_prep/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/gui/dialogs/EventsFAlign.java
EventsFAlign.java | ||
---|---|---|
51 | 51 |
import java.util.TreeMap; |
52 | 52 |
|
53 | 53 |
import com.iver.andami.PluginServices; |
54 |
import com.iver.cit.gvsig.project.documents.layout.commands.EditableFeatureSource; |
|
55 | 54 |
import com.iver.cit.gvsig.project.documents.layout.commands.FrameCommandsRecord; |
56 | 55 |
import com.iver.cit.gvsig.project.documents.layout.fframes.IFFrame; |
57 | 56 |
import com.iver.cit.gvsig.project.documents.layout.gui.Layout; |
... | ... | |
91 | 90 |
} |
92 | 91 |
} |
93 | 92 |
|
94 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getEFS();
|
|
93 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
|
|
95 | 94 |
efs.startComplex(); |
96 | 95 |
|
97 | 96 |
for (int i = fframes.length - 1; i >= 0; i--) { |
... | ... | |
113 | 112 |
private void alignLeftL() { |
114 | 113 |
double xmin = 0; |
115 | 114 |
IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected(); |
116 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getEFS();
|
|
115 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
|
|
117 | 116 |
efs.startComplex(); |
118 | 117 |
|
119 | 118 |
for (int i = 0; i < fframes.length; i++) { |
... | ... | |
147 | 146 |
} |
148 | 147 |
} |
149 | 148 |
|
150 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getEFS();
|
|
149 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
|
|
151 | 150 |
efs.startComplex(); |
152 | 151 |
|
153 | 152 |
for (int i = 0; i < fframes.length; i++) { |
... | ... | |
171 | 170 |
xcenter = m_layout.getLayoutContext().getAtributes().m_sizePaper.getAncho() / 2; |
172 | 171 |
|
173 | 172 |
IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected(); |
174 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getEFS();
|
|
173 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
|
|
175 | 174 |
efs.startComplex(); |
176 | 175 |
|
177 | 176 |
for (int i = 0; i < fframes.length; i++) { |
... | ... | |
203 | 202 |
} |
204 | 203 |
} |
205 | 204 |
|
206 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getEFS();
|
|
205 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
|
|
207 | 206 |
efs.startComplex(); |
208 | 207 |
|
209 | 208 |
for (int i = 0; i < fframes.length; i++) { |
... | ... | |
227 | 226 |
xmax = m_layout.getLayoutContext().getAtributes().m_sizePaper.getAncho(); |
228 | 227 |
|
229 | 228 |
IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected(); |
230 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getEFS();
|
|
229 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
|
|
231 | 230 |
efs.startComplex(); |
232 | 231 |
|
233 | 232 |
for (int i = 0; i < fframes.length; i++) { |
... | ... | |
260 | 259 |
} |
261 | 260 |
} |
262 | 261 |
|
263 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getEFS();
|
|
262 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
|
|
264 | 263 |
efs.startComplex(); |
265 | 264 |
|
266 | 265 |
for (int i = 0; i < fframes.length; i++) { |
... | ... | |
284 | 283 |
ymax = m_layout.getLayoutContext().getAtributes().m_sizePaper.getAlto(); |
285 | 284 |
|
286 | 285 |
IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected(); |
287 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getEFS();
|
|
286 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
|
|
288 | 287 |
efs.startComplex(); |
289 | 288 |
|
290 | 289 |
for (int i = 0; i < fframes.length; i++) { |
... | ... | |
316 | 315 |
} |
317 | 316 |
} |
318 | 317 |
|
319 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getEFS();
|
|
318 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
|
|
320 | 319 |
efs.startComplex(); |
321 | 320 |
|
322 | 321 |
for (int i = 0; i < fframes.length; i++) { |
... | ... | |
337 | 336 |
private void alignUpL() { |
338 | 337 |
double ymin = 0; |
339 | 338 |
IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected(); |
340 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getEFS();
|
|
339 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
|
|
341 | 340 |
efs.startComplex(); |
342 | 341 |
|
343 | 342 |
for (int i = 0; i < fframes.length; i++) { |
... | ... | |
370 | 369 |
} |
371 | 370 |
} |
372 | 371 |
|
373 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getEFS();
|
|
372 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
|
|
374 | 373 |
efs.startComplex(); |
375 | 374 |
|
376 | 375 |
for (int i = 0; i < fframes.length; i++) { |
... | ... | |
394 | 393 |
ycenter = m_layout.getLayoutContext().getAtributes().m_sizePaper.getAlto() / 2; |
395 | 394 |
|
396 | 395 |
IFFrame[] fframes = m_layout.getLayoutContext().getFFrameSelected(); |
397 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getEFS();
|
|
396 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
|
|
398 | 397 |
efs.startComplex(); |
399 | 398 |
|
400 | 399 |
for (int i = 0; i < fframes.length; i++) { |
... | ... | |
435 | 434 |
|
436 | 435 |
double dif = xmax - xmin; |
437 | 436 |
double dist = dif / num; |
438 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getEFS();
|
|
437 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
|
|
439 | 438 |
efs.startComplex(); |
440 | 439 |
|
441 | 440 |
for (int i = 0; i < fframes.length; i++) { |
... | ... | |
465 | 464 |
|
466 | 465 |
double dif = xmax - xmin; |
467 | 466 |
double dist = dif / num; |
468 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getEFS();
|
|
467 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
|
|
469 | 468 |
efs.startComplex(); |
470 | 469 |
|
471 | 470 |
for (int i = 0; i < fframes.length; i++) { |
... | ... | |
506 | 505 |
|
507 | 506 |
double dif = xmax - xmin; |
508 | 507 |
double dist = dif / num; |
509 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getEFS();
|
|
508 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
|
|
510 | 509 |
efs.startComplex(); |
511 | 510 |
|
512 | 511 |
for (int i = 0; i < fframes.length; i++) { |
... | ... | |
536 | 535 |
|
537 | 536 |
double dif = xmax - xmin; |
538 | 537 |
double dist = dif / num; |
539 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getEFS();
|
|
538 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
|
|
540 | 539 |
efs.startComplex(); |
541 | 540 |
|
542 | 541 |
for (int i = 0; i < fframes.length; i++) { |
... | ... | |
577 | 576 |
|
578 | 577 |
double dif = ymax - ymin; |
579 | 578 |
double dist = dif / num; |
580 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getEFS();
|
|
579 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
|
|
581 | 580 |
efs.startComplex(); |
582 | 581 |
|
583 | 582 |
for (int i = 0; i < fframes.length; i++) { |
... | ... | |
608 | 607 |
|
609 | 608 |
double dif = ymax - ymin; |
610 | 609 |
double dist = dif / num; |
611 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getEFS();
|
|
610 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
|
|
612 | 611 |
efs.startComplex(); |
613 | 612 |
|
614 | 613 |
for (int i = 0; i < fframes.length; i++) { |
... | ... | |
649 | 648 |
|
650 | 649 |
double dif = ymax - ymin; |
651 | 650 |
double dist = dif / num; |
652 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getEFS();
|
|
651 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
|
|
653 | 652 |
efs.startComplex(); |
654 | 653 |
|
655 | 654 |
for (int i = 0; i < fframes.length; i++) { |
... | ... | |
680 | 679 |
|
681 | 680 |
double dif = ymax - ymin; |
682 | 681 |
double dist = dif / num; |
683 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getEFS();
|
|
682 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
|
|
684 | 683 |
efs.startComplex(); |
685 | 684 |
|
686 | 685 |
for (int i = fframes.length - 1; i >= 0; i--) { |
... | ... | |
720 | 719 |
|
721 | 720 |
double dif = xmax - xmin; |
722 | 721 |
double dist = dif / num; |
723 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getEFS();
|
|
722 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
|
|
724 | 723 |
efs.startComplex(); |
725 | 724 |
|
726 | 725 |
for (int i = 0; i < fframes.length; i++) { |
... | ... | |
752 | 751 |
|
753 | 752 |
double dif = xmax - xmin; |
754 | 753 |
double dist = dif / num; |
755 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getEFS();
|
|
754 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
|
|
756 | 755 |
efs.startComplex(); |
757 | 756 |
|
758 | 757 |
for (int i = 0; i < fframes.length; i++) { |
... | ... | |
793 | 792 |
|
794 | 793 |
double dif = ymax - ymin; |
795 | 794 |
double dist = dif / num; |
796 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getEFS();
|
|
795 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
|
|
797 | 796 |
efs.startComplex(); |
798 | 797 |
|
799 | 798 |
for (int i = 0; i < fframes.length; i++) { |
... | ... | |
825 | 824 |
|
826 | 825 |
double dif = ymax - ymin; |
827 | 826 |
double dist = dif / num; |
828 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getEFS();
|
|
827 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
|
|
829 | 828 |
efs.startComplex(); |
830 | 829 |
|
831 | 830 |
for (int i = 0; i < fframes.length; i++) { |
... | ... | |
858 | 857 |
} |
859 | 858 |
} |
860 | 859 |
|
861 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getEFS();
|
|
860 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
|
|
862 | 861 |
efs.startComplex(); |
863 | 862 |
|
864 | 863 |
for (int i = 0; i < fframes.length; i++) { |
... | ... | |
889 | 888 |
} |
890 | 889 |
} |
891 | 890 |
|
892 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getEFS();
|
|
891 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
|
|
893 | 892 |
efs.startComplex(); |
894 | 893 |
|
895 | 894 |
for (int i = 0; i < fframes.length; i++) { |
... | ... | |
950 | 949 |
|
951 | 950 |
double dist = total / (num - 1); |
952 | 951 |
Iterator k = treemap.keySet().iterator(); |
953 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getEFS();
|
|
952 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
|
|
954 | 953 |
efs.startComplex(); |
955 | 954 |
|
956 | 955 |
if (k.hasNext()) { |
... | ... | |
1027 | 1026 |
|
1028 | 1027 |
double dist = total / (num - 1); |
1029 | 1028 |
Iterator k = treemap.keySet().iterator(); |
1030 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getEFS();
|
|
1029 |
FrameCommandsRecord efs = m_layout.getLayoutContext().getFrameCommandsRecord();
|
|
1031 | 1030 |
efs.startComplex(); |
1032 | 1031 |
|
1033 | 1032 |
if (k.hasNext()) { |
Also available in: Unified diff