Packagecom.mapquest
Classpublic class Primitive
InheritancePrimitive Inheritance MQObject
SubclassesLinePrimitive, RectanglePrimitive, SymbolPrimitive, TextPrimitive

The base class for drawing objects that can be added to the map.

See also

CoordinateType
DrawTrigger


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 Primitive object.
Primitive
  
getClassName():String
Returns the text name of this class.
Primitive
  
Gets the CoordinateType
Primitive
  
Gets the DrawTrigger
Primitive
  
getKey():String
Gets the key.
Primitive
  
Returns the version of this class.
Primitive
  
getOpacity():String
Gets the Opacity.
Primitive
 Inherited
getProperty(path:String):String
Gets values from xml.
MQObject
 Inherited
Create a copy of this object.
MQObject
 Inherited
MQObject
 Inherited
MQObject
 Inherited
loadXml(xml:XML):void
New XML Handler
MQObject
 Inherited
readExternal(input:IDataInput):void
MQObject
 Inherited
saveXml():XML
New XML Handler
MQObject
  
Sets the CoordinateType
Primitive
  
Sets the DrawTrigger
Primitive
  
setKey(strKey:String):void
Sets the key.
Primitive
  
setOpacity(strOpacity:String):void
Sets the Opacity.
Primitive
 Inherited
setProperty(path:String, value:Object):String
Sets values in xml.
MQObject
 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
Primitive()constructor
public function Primitive()

Constructs a new Primitive 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.
getCoordinateType()method 
public function getCoordinateType():CoordinateType

Gets the CoordinateType

Returns
CoordinateType — The m_CoordinateType object.
getDrawTrigger()method 
public function getDrawTrigger():DrawTrigger

Gets the DrawTrigger

Returns
DrawTrigger — The m_DrawTrigger object.
getKey()method 
public function getKey():String

Gets the key.

Returns
String — The key of this object.
getObjectVersion()method 
public override function getObjectVersion():Number

Returns the version of this class.

Returns
Number — The version of this class.
getOpacity()method 
public function getOpacity():String

Gets the Opacity.

Returns
String — The Opacity of this object.
setCoordinateType()method 
public function setCoordinateType(dt:CoordinateType):void

Sets the CoordinateType

Parameters
dt:CoordinateType — dt the CoordinateType to set m_CoordinateType to.
setDrawTrigger()method 
public function setDrawTrigger(dt:DrawTrigger):void

Sets the DrawTrigger

Parameters
dt:DrawTrigger — dt the DrawTrigger to set m_DrawTrigger to.
setKey()method 
public function setKey(strKey:String):void

Sets the key.

Parameters
strKey:String — strKey The new key to be assigned to this object.
setOpacity()method 
public function setOpacity(strOpacity:String):void

Sets the Opacity.

Parameters
strOpacity:String — strOpacity The new Opacity to be assigned to this object.