Packagecom.mapquest
Classpublic class Pan
InheritancePan Inheritance MapCommand Inheritance MQObject

Stores data to center the map on a given point without changing its scale. Setting the X,Y coordinates moves the map viewport that number of pixels left or right and up or down.

See also

Point.html


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
  
Pan()
Constructs a new Pan object.
Pan
  
getClassName():String
Returns the text name of this class.
Pan
  
Returns the version of this class.
Pan
  
Returns the m_Point.
Pan
 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.
Pan
 Inherited
readExternal(input:IDataInput):void
MQObject
  
saveXml():XML
Build xml that represents this object.
Pan
  
setDeltaX(dblX:Number):void
Sets the Delta X variable, which is the number of pixels that the map viewport is to be moved in the horizontal direction.
Pan
  
setDeltaXY(dblX:Number, dblY:Number):void
Sets the Delta X and Delta Y variables, which are the number of pixels that the map viewport is to be moved in the horizontal and vertical direction respectively.
Pan
  
setDeltaY(dblY:Number):void
Sets the Delta Y variable, which is the number of pixels that the map viewport is to be moved in the vertical direction.
Pan
 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
Pan()constructor
public function Pan()

Constructs a new Pan 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.
getObjectVersion()method 
public override function getObjectVersion():Number

Returns the version of this class.

Returns
Number — The version of this class.
getPoint()method 
public function getPoint():Point

Returns the m_Point.

Returns
Point — The m_Point.
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.
setDeltaX()method 
public function setDeltaX(dblX:Number):void

Sets the Delta X variable, which is the number of pixels that the map viewport is to be moved in the horizontal direction.

Parameters
dblX:Number — dblX The number of pixels that the map viewport is to be moved in the horizontal direction. Negative indicates movement to the left, positive to the right.
setDeltaXY()method 
public function setDeltaXY(dblX:Number, dblY:Number):void

Sets the Delta X and Delta Y variables, which are the number of pixels that the map viewport is to be moved in the horizontal and vertical direction respectively.

Parameters
dblX:Number — dblX The number of pixels that the map viewport is to be moved in the horizontal direction. Negative indicates movement to the left, positive to the right.
 
dblY:Number — dblY The number of pixels that the map viewport is to be moved in the vertical direction. Negative indicates movement upward, positive downward.
setDeltaY()method 
public function setDeltaY(dblY:Number):void

Sets the Delta Y variable, which is the number of pixels that the map viewport is to be moved in the vertical direction.

Parameters
dblY:Number — dblY The number of pixels that the map viewport is to be moved in the vertical direction. Negative indicates movement upward, positive downward.