Go to object model Go to parent topic Go to previous topic Go to next topic

The MGPageSetup object organizes the Page Setup properties, which control how Autodesk MapGuide prints maps.

To get an instance of the MGPageSetup class, use the getPageSetup method from MGMap.

Java Development for Autodesk MapGuide Viewer Plug-In: For Autodesk MapGuide Viewer Plug-In, the Java class MGPageSetup extends java.lang.Object and can be found in the mapguide package, located in the npmapv32.zip file in the Netscape Plugins folder.

Java Development for Autodesk MapGuide Viewer, Java Edition: For Autodesk MapGuide Viewer, Java Edition, MGPageSetup is a Java interface that resides in the com.autodesk.mgjava package, which is located in the mgjava.cab file (for Windows systems only) and the mgjava.jar file (for all platforms).

Methods

getInclude

Determines whether the specified element will be included on the printout.

getIncludeLegend

Returns a value indicating whether the legend will be printed next to the map.

getPageMargins

Gets the page margins used by the current page layout.

getPlotScale

Gets the scale if the map is to be printed at a specific map scale.

getTitle

Gets the title to be printed above the map at the top of the page.

getTitleTextAttr

Gets an object that groups the title text attributes.

getUsePlotScale

Returns a value indicating whether the map will be printed at a specific map scale.

setInclude

Changes the visibility state of the page element on the print out.

setIncludeLegend

Sets a value indicating whether the legend will be printed next to the map.

setPageMargins

Sets the page margins used by the current page layout.

setPlotScale

Sets the scale if the map is to be printed at a specific map scale.

setTitle

Sets the title to print at the top of the page when you print a map.

setUsePlotScale

Sets a value indicating whether the map will be printed at a specific scale.

Properties

Note that direct access to properties is only available in Autodesk MapGuide Viewer ActiveX Control. In Autodesk MapGuide Viewer Plug-In and Autodesk MapGuide Viewer, Java Edition APIs, get/set methods provide access to an object's properties. For compatibility, the ActiveX Control API supports the same get/set methods as the Autodesk MapGuide Viewer Plug-In and the Autodesk MapGuide Viewer, Java Edition APIs.

IncludeLegend

Gets or sets whether to print the legend next to the map.

PlotScale

Gets or sets the map scale at which the map will print.

Title

Gets or sets the title that will print at the top of the page when you print a map.

UsePlotScale

Gets or sets whether to print the map at a specific map scale.