Packagecom.mapquest
Classpublic class PolygonPrimitive
InheritancePolygonPrimitive Inheritance LinePrimitive Inheritance Primitive Inheritance MQObject

Describes polygons to be placed on a map. The polygon is initially defined with a collection of points. These points are the X,Y coordinates of the vertices of the polygon. The coordinates are converted into a latitude/longitude points so the annotation can be placed in the same geographical location after the map is manipulated.

See also

ColorStyle
FillStyle


Public Properties
 PropertyDefined by
 InheritedCLASS_NAME : String = "MQObject"
[static]
MQObject
Protected Properties
 PropertyDefined by
 InheritedobjectVersion : Number = 0
Value to represent the version of this object
MQObject
 Inheritedxml : XML = null
MQObject
 Inheritedxpath : String
MQObject
Public Methods
 MethodDefined by
  
Constructs a new PolygonPrimitive object.
PolygonPrimitive
  
getClassName():String
Returns the text name of this class.
PolygonPrimitive
 Inherited
Gets the m_Color
LinePrimitive
 Inherited
Gets the CoordinateType
Primitive
 Inherited
Gets the DrawTrigger
Primitive
  
Gets the m_FillColor
PolygonPrimitive
  
Gets the m_FillStyle
PolygonPrimitive
 Inherited
getKey():String
Gets the key.
Primitive
 Inherited
Gets the m_LLArray
LinePrimitive
  
Returns the version of this class.
PolygonPrimitive
 Inherited
getOpacity():String
Gets the Opacity.
Primitive
 Inherited
Gets the m_XYArray
LinePrimitive
 Inherited
getProperty(path:String):String
Gets values from xml.
MQObject
 Inherited
Gets the m_Style
LinePrimitive
 Inherited
getWidth():int
Returns the value representing the width of this object.
LinePrimitive
 Inherited
Create a copy of this object.
MQObject
 Inherited
MQObject
 Inherited
MQObject
  
loadXml(xmlPrm:XML):void
Assigns the xml that relates to this object.
PolygonPrimitive
 Inherited
readExternal(input:IDataInput):void
MQObject
  
saveXml():XML
Build xml that represents this object.
PolygonPrimitive
 Inherited
setColor(obj:ColorStyle):void
Sets the m_Color
LinePrimitive
 Inherited
Sets the CoordinateType
Primitive
 Inherited
Sets the DrawTrigger
Primitive
  
Sets the m_FillColor
PolygonPrimitive
  
Sets the m_FillStyle
PolygonPrimitive
 Inherited
setKey(strKey:String):void
Sets the key.
Primitive
 Inherited
Sets the m_LLArray
LinePrimitive
 Inherited
setOpacity(strOpacity:String):void
Sets the Opacity.
Primitive
 Inherited
Sets the m_XYArray
LinePrimitive
 Inherited
setProperty(path:String, value:Object):String
Sets values in xml.
MQObject
 Inherited
setStyle(obj:PenStyle):void
Sets the m_Style
LinePrimitive
 Inherited
setWidth(width:int):void
Sets the value representing the width of this object.
LinePrimitive
 Inherited
setXpath(xpath:String):void
Sets the m_xpath object.
MQObject
 Inherited
writeExternal(output:IDataOutput):void
MQObject
Protected Methods
 MethodDefined by
 Inherited
getXML():XML
Returns the m_xmlDoc object.
MQObject
 Inherited
getXpath():String
Returns the xpath string.
MQObject
 Inherited
setXML(xml:XML):void
Sets the m_xmlDoc object.
MQObject
Constructor detail
PolygonPrimitive()constructor
public function PolygonPrimitive()

Constructs a new PolygonPrimitive object.

Method detail
getClassName()method
public override function getClassName():String

Returns the text name of this class.

Returns
String — The text name of this class.
getFillColor()method 
public function getFillColor():ColorStyle

Gets the m_FillColor

Returns
ColorStyle — The m_FillColor object.
getFillStyle()method 
public function getFillStyle():FillStyle

Gets the m_FillStyle

Returns
FillStyle — The m_FillStyle object.
getObjectVersion()method 
public override function getObjectVersion():Number

Returns the version of this class.

Returns
Number — The version of this class.
loadXml()method 
public override function loadXml(xmlPrm:XML):void

Assigns the xml that relates to this object.

Parameters
xmlPrm:XML — the xml to be assigned.
saveXml()method 
public override function saveXml():XML

Build xml that represents this object.

Returns
XML — The xml.
setFillColor()method 
public function setFillColor(obj:ColorStyle):void

Sets the m_FillColor

Parameters
obj:ColorStyle — obj the ColorStyle to set m_FillColor to.
setFillStyle()method 
public function setFillStyle(obj:FillStyle):void

Sets the m_FillStyle

Parameters
obj:FillStyle — FillStyle to set m_FillStyle to.