Packagecom.mapquest
Classpublic class Center
InheritanceCenter Inheritance MapCommand Inheritance MQObject

Centers a map based on a mouse click. The new center point is calculated in pixels and stored in the X and Y coordinates of this object.



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 Center object.
Center
  
Returns the m_Center.
Center
  
getClassName():String
Returns the text name of this class.
Center
  
Returns the version of this class.
Center
 Inherited
getProperty(path:String):String
Gets values from xml.
MQObject
 Inherited
Create a copy of this object.
MQObject
 Inherited
MQObject
 Inherited
MQObject
  
loadXml(xmlPrm:XML):void
Assigns the xml that relates to this object.
Center
 Inherited
readExternal(input:IDataInput):void
MQObject
  
saveXml():XML
Build xml that represents this object.
Center
  
setCenter(pt:Point):void
Sets the m_Center.
Center
 Inherited
Sets the m_Col object.
MapCommand
 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
Center()constructor
public function Center()

Constructs a new Center object.

See also

Method detail
getCenter()method
public function getCenter():Point

Returns the m_Center.

Returns
Point — The m_Center.
getClassName()method 
public override function getClassName():String

Returns the text name of this class.

Returns
String — The text name of this class.
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.
setCenter()method 
public function setCenter(pt:Point):void

Sets the m_Center.

Parameters
pt:Point — pt The point to set m_Center to.