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

The MGBufferSetup object organizes the buffer setup properties, which control how Autodesk MapGuide Viewer creates buffers with the viewBuffer and viewBufferDlg methods and the popup menu View Buffer command.

To get an instance of the MGBufferSetup object, use the MGMap.getBufferSetup method.

Java Development for Autodesk MapGuide Viewer Plug-In: For Autodesk MapGuide Viewer Plug-In, the Java class MGBufferSetup 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, MGBufferSetup 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

getDistance

Gets the buffer offset distance.

getEdgeAttr

Gets an object that groups the polygon edge attributes used to draw the buffer polygon(s).

getFillAttr

Gets an object that groups the polygon fill attributes used to draw the buffer polygon(s).

getLayerName

Gets the name of the map layer that will contain the buffer objects generated from the viewBuffer method of MGMap.

getOneObject

Returns a value indicating whether one large merged buffer object should be created for all buffered features.

getUnit

Gets the units used to specify the size of the buffer.

setDistance

Specifies the buffer offset distance.

setLayerName

Sets the name of the map layer that will contain the buffer objects generated from the viewBuffer method of MGMap.

setOneObject

Specifies whether one large merged buffer object should be created for all buffered features.

setUnit

Sets the units used to specify the size of the buffer.

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.

Distance

The buffer offset distance.

EdgeAttr

The object that groups the polygon edge attributes used to draw the buffer polygon(s).

FillAttr

The object that groups the polygon fill attributes used to draw the buffer polygon(s).

LayerName

The name of the buffer layer to use for the buffer objects.

OneObject

Specifies whether or not one large merged buffer object should be created for all buffered features.

Unit

The distance unit, which is used with setDistance and getDistance to determine the distance that buffers will extend from the selected features.