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

The MGEdgeAttr object contains the polygon edge 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 MGEdgeAttr object for use as a buffer, first use the MGMap.getBufferSetup method to get an instance of the MGBufferSetup object. Then use the MGBufferSetup.getEdgeAttr method.

Redline polygons are used as primitive features on redline layers; they can't currently be created through the Autodesk MapGuide user interface, but only through the API. To get an instance of the MGEdgeAttr 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.getEdgeAttr method.

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

getColor

Gets the edge color index used to draw the polygons.

getStyle

Gets the edge style used to draw the polygons.

getThickness

Gets the edge thickness used to draw the polygons.

getVisible

Returns a value indicating whether the edge should be drawn around the polygons.

setColor

Specifies the edge color index used to draw the polygons.

setStyle

Specifies the edge style used to draw the polygons.

setThickness

Specifies the edge thickness used to draw the polygons.

setVisible

Specifies whether the edge should be drawn around 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.

Color

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

Style

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

Thickness

Gets or sets the edge thickness used to draw the polygons.

Visible

Gets or sets whether the edge should be drawn around the polygons.