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

The MGFillAttr object contains the polygon fill attributes used to draw buffer or redline polygons.

Buffer polygons are used when Autodesk MapGuide executes the view buffer command. To get an instance of the MGFillAttr object for use as a buffer, first use the MGMap.getBufferSetup method to get an instance of the MGBufferSetup object. Then use the MGBufferSetup.getFillAttr method.

Redline polygons are used as primitive features on redline layers; they can't currently be created through the Autodesk MapGuide user interface, only through the API. To get an instance of the MGFillAttr object for use as a redline feature, first use the MGMap.getRedlineSetup method to get an instance of the MGRedlineSetup object. Then use the MGRedlineSetup.getFillAttr method.

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

getBackColor

Gets the background color index used to draw the polygons.

getBackMode

Gets the background mode used to draw the polygons.

getColor

Gets the fill color index used to draw the polygons.

getHatchPattern

Gets the fill hatch pattern used to draw the polygons.

getStyle

Gets the fill style used to draw the polygons.

setBackColor

Specifies the background color index used to draw the polygons.

setBackMode

Specifies the background mode used to draw the polygons.

setColor

Specifies the fill color index used to draw the polygons.

setHatchPattern

Specifies the fill hatch pattern used to draw the polygons.

setStyle

Specifies the fill style used to draw the polygons.

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.

BackColor

Gets or sets the background color index used to draw the polygons.

BackMode

Gets or sets the background mode used to draw the polygons.

Color

Gets or sets the fill color index used to draw the polygons.

HatchPattern

Gets or sets the fill hatch pattern used to draw the polygons.

Style

Gets or sets the fill style used to draw the polygons.