Packagecom.mapquest
Classpublic class RectanglePrimitive
InheritanceRectanglePrimitive Inheritance Primitive Inheritance MQObject
SubclassesEllipsePrimitive

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 RectanglePrimitive object.
RectanglePrimitive
  
getClassName():String
Returns the text name of this class.
RectanglePrimitive
  
Gets the m_Color
RectanglePrimitive
 Inherited
Gets the CoordinateType
Primitive
 Inherited
Gets the DrawTrigger
Primitive
  
Gets the m_FillColor
RectanglePrimitive
  
Gets the m_FillStyle
RectanglePrimitive
 Inherited
getKey():String
Gets the key.
Primitive
  
Gets the latitude/longitude of the lower right corner
RectanglePrimitive
  
Gets the x/y of the lower right corner
RectanglePrimitive
  
Returns the version of this class.
RectanglePrimitive
 Inherited
getOpacity():String
Gets the Opacity.
Primitive
 Inherited
getProperty(path:String):String
Gets values from xml.
MQObject
  
Gets the m_Style
RectanglePrimitive
  
Gets the latitude/longitude of the upper left corner.
RectanglePrimitive
  
Gets the x/y of the upper left corner.
RectanglePrimitive
  
getWidth():int
Returns the value representing the width of this object.
RectanglePrimitive
 Inherited
Create a copy of this object.
MQObject
 Inherited
MQObject
 Inherited
MQObject
  
loadXml(xmlPrm:XML):void
Assigns the xml that relates to this object.
RectanglePrimitive
 Inherited
readExternal(input:IDataInput):void
MQObject
  
saveXml():XML
Build xml that represents this object.
RectanglePrimitive
  
setColor(obj:ColorStyle):void
Sets the m_Color
RectanglePrimitive
 Inherited
Sets the CoordinateType
Primitive
 Inherited
Sets the DrawTrigger
Primitive
  
Sets the m_FillColor
RectanglePrimitive
  
Sets the m_FillStyle
RectanglePrimitive
 Inherited
setKey(strKey:String):void
Sets the key.
Primitive
  
Sets the latitude/longitude of the lower right corner
RectanglePrimitive
  
Sets the x/y of the lower right corner
RectanglePrimitive
 Inherited
setOpacity(strOpacity:String):void
Sets the Opacity.
Primitive
 Inherited
setProperty(path:String, value:Object):String
Sets values in xml.
MQObject
  
setStyle(obj:PenStyle):void
Sets the m_Style
RectanglePrimitive
  
Sets the latitude/longitude of the upper left corner.
RectanglePrimitive
  
Sets the x/y of the upper left corner.
RectanglePrimitive
  
setWidth(width:int):void
Sets the value representing the width of this object.
RectanglePrimitive
 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
RectanglePrimitive()constructor
public function RectanglePrimitive()

Constructs a new RectanglePrimitive 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.
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.
getLowerRightLatLng()method 
public function getLowerRightLatLng():LatLng

Gets the latitude/longitude of the lower right corner

Returns
LatLng — The m_LowerRightLL object.
getLowerRightPoint()method 
public function getLowerRightPoint():Point

Gets the x/y of the lower right corner

Returns
Point — The m_LowerRightPT object.
getObjectVersion()method 
public override function getObjectVersion():Number

Returns the version of this class.

Returns
Number — The version of this class.
getStyle()method 
public function getStyle():PenStyle

Gets the m_Style

Returns
PenStyle — The m_Style object.
getUpperLeftLatLng()method 
public function getUpperLeftLatLng():LatLng

Gets the latitude/longitude of the upper left corner.

Returns
LatLng — The m_UpperLeftLL object.
getUpperLeftPoint()method 
public function getUpperLeftPoint():Point

Gets the x/y of the upper left corner.

Returns
Point — The m_UpperLeftPT 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.
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 — obj the FillStyle to set m_FillStyle to.
setLowerRightLatLng()method 
public function setLowerRightLatLng(latLng:LatLng):void

Sets the latitude/longitude of the lower right corner

Parameters
latLng:LatLng — latLng the LatLng to set m_LowerRightLL to.
setLowerRightPoint()method 
public function setLowerRightPoint(point:Point):void

Sets the x/y of the lower right corner

Parameters
point:Point — point the Point to set m_LowerRightPT to.
setStyle()method 
public function setStyle(obj:PenStyle):void

Sets the m_Style

Parameters
obj:PenStyle — obj the PenStyle to set m_Style to.
setUpperLeftLatLng()method 
public function setUpperLeftLatLng(latLng:LatLng):void

Sets the latitude/longitude of the upper left corner.

Parameters
latLng:LatLng — latLng the LatLng to set m_UpperLeftLL to.
setUpperLeftPoint()method 
public function setUpperLeftPoint(point:Point):void

Sets the x/y of the upper left corner.

Parameters
point:Point — point the Point to set m_UpperLeftPT 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.