Packagecom.mapquest
Classpublic class LinePrimitive
InheritanceLinePrimitive Inheritance Primitive Inheritance MQObject
SubclassesPolygonPrimitive

Describes linear annotations to be placed on the map. The line is converted into latitude/longitude points so it can be placed in the same geographical location after the map is manipulated.

See also

ColorStyle
PenStyle
PointCollection
LatLngCollection


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 LinePrimitive object.
LinePrimitive
  
getClassName():String
Returns the text name of this class.
LinePrimitive
  
Gets the m_Color
LinePrimitive
 Inherited
Gets the CoordinateType
Primitive
 Inherited
Gets the DrawTrigger
Primitive
 Inherited
getKey():String
Gets the key.
Primitive
  
Gets the m_LLArray
LinePrimitive
  
Returns the version of this class.
LinePrimitive
 Inherited
getOpacity():String
Gets the Opacity.
Primitive
  
Gets the m_XYArray
LinePrimitive
 Inherited
getProperty(path:String):String
Gets values from xml.
MQObject
  
Gets the m_Style
LinePrimitive
  
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.
LinePrimitive
 Inherited
readExternal(input:IDataInput):void
MQObject
  
saveXml():XML
Build xml that represents this object.
LinePrimitive
  
setColor(obj:ColorStyle):void
Sets the m_Color
LinePrimitive
 Inherited
Sets the CoordinateType
Primitive
 Inherited
Sets the DrawTrigger
Primitive
 Inherited
setKey(strKey:String):void
Sets the key.
Primitive
  
Sets the m_LLArray
LinePrimitive
 Inherited
setOpacity(strOpacity:String):void
Sets the Opacity.
Primitive
  
Sets the m_XYArray
LinePrimitive
 Inherited
setProperty(path:String, value:Object):String
Sets values in xml.
MQObject
  
setStyle(obj:PenStyle):void
Sets the m_Style
LinePrimitive
  
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
LinePrimitive()constructor
public function LinePrimitive()

Constructs a new LinePrimitive 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.
getColor()method 
public function getColor():ColorStyle

Gets the m_Color

Returns
ColorStyle — The m_Color object.
getLatLngs()method 
public function getLatLngs():LatLngCollection

Gets the m_LLArray

Returns
LatLngCollection — The m_LLArray object.
getObjectVersion()method 
public override function getObjectVersion():Number

Returns the version of this class.

Returns
Number — The version of this class.
getPoints()method 
public function getPoints():PointCollection

Gets the m_XYArray

Returns
PointCollection — The m_XYArray object.
getStyle()method 
public function getStyle():PenStyle

Gets the m_Style

Returns
PenStyle — The m_Style object.
getWidth()method 
public function getWidth():int

Returns the value representing the width of this object.

Returns
int — The Width of this object.
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.
setColor()method 
public function setColor(obj:ColorStyle):void

Sets the m_Color

Parameters
obj:ColorStyle — obj the ColorStyle to set m_Color to.
setLatLngs()method 
public function setLatLngs(obj:LatLngCollection):void

Sets the m_LLArray

Parameters
obj:LatLngCollection — obj the LatLngCollection to set m_LLArray to.
setPoints()method 
public function setPoints(obj:PointCollection):void

Sets the m_XYArray

Parameters
obj:PointCollection — obj the PointCollection to set m_XYArray to.
setStyle()method 
public function setStyle(obj:PenStyle):void

Sets the m_Style

Parameters
obj:PenStyle — obj the PenStyle to set m_Style to.
setWidth()method 
public function setWidth(width:int):void

Sets the value representing the width of this object.

Parameters
width:int — width The new Width to be assigned to this object.