MGPrintingObserver.onEndLayout   Go to object model Go to parent topic Go to previous topic

Syntax

public void onEndLayout(MGPrintLayout layout, MGPrintInfo info)

Description

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.

Applies To

Plug-In and Java Edition only

Parameters

layout - An MGPrintLayout object that represents the current page layout.

info - An MGPrintInfo object that contains information about the current printing operation.

Error Codes

none

Examples

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.

See Also

onBeginLayout, enablePrintingEvents, disablePrintingEvents, getPrintingObserver, setPrintingObserver