Working with Printing
|
65
Setting the Print Priority
As shown above, you can write an
onEndLayout
event handler that uses
MGPrintLayout
,
MGPageElement
, and
MGExtentEx
to control the place-
ment of printed page elements. It is possible, and sometimes desirable, to
place page elements on top of each other. For example, you might want to
place the North arrow on top of an empty spot of ocean in your map. Of
course, this doesn’t do your user much good if the ocean prints on top of the
North arrow and hides it.
To solve this problem, each page element is assigned a default print priority.
A print priority is a positive floating-point number between 0.0 and 100.0
that describes the relative printing order of a page element. The element with
the lowest number is printed first. The element with the highest number is
printed last. You can read and change an element’s priority with the
getPrintPriority
and
setPrintPriority
methods, but the default
values are as follows:
Element
Default Print Priority
map
10.0
legend
20.0
title
30.0
URL
40.0
date/time
50.0
scale bar
60.0
North arrow
70.0
custom elements
80.0
Содержание 15606-011408-9300 - MAP R6.3 UPG
Страница 1: ...15306 010000 5060 October 2001 Autodesk MapGuide Release 6 Developer s Guide ...
Страница 6: ...vi ...
Страница 16: ...16 ...
Страница 30: ...30 ...
Страница 84: ...84 ...
Страница 134: ...134 ...
Страница 202: ...202 ...