| MGPrintingObserver.onEndLayout |
|
public void onEndLayout(MGPrintLayout layout, MGPrintInfo info)
The end layout observer event method. This event is fired after the Autodesk MapGuide Viewer has finished the internal layout of the page elements but before the map is sent to the printer.
This topic describes this event for Plug-In and Java Edition only. For ActiveX Control, see onEndLayout.
Plug-In and Java Edition only
layout - An MGPrintLayout object that represents the current page layout.
info - An MGPrintInfo object that contains information about the current printing operation.
none
To handle this event from the Plug-In or Java Edition, a Java object that implements the MGPrintingObserver interface must be established with a call to the setPrintingObserver method. The observer Java object should include the following:
<class_definition> implements MGPrintingObserver
{
// ...
public void onEndLayout (MGPrintLayout layout, MGPrintInfo info)
{
// event handling code here...
}
// ...
}
The simplest way to include the observer object in a Web page is to implement it as an applet. See Advanced Examples for a fully functional observer object that supports all of the observer interfaces by forwarding the events back to JavaScript functions that have identical semantics to the ActiveX Control event handlers.
onBeginLayout, enablePrintingEvents, disablePrintingEvents, getPrintingObserver, setPrintingObserver