MapQuest Advantage TileMap Toolkit Reference Documentation

Class MQPoint

Object
   |
   +--MQObject
         |
         +--MQPoint

class MQPoint
extends MQObject


Encapsulates X and Y coordinates.
Defined in mqcommon.js


Field Summary
 int x
          Value to represent the x value
 int y
          Value to represent the y value
 
Constructor Summary
MQPoint (<int/string> param1, <int> param2)
            Constructs a new MQPoint object.
 
Method Summary
 Boolean equals(<MQPoint> pt)
           Determines whether or not two points are equal.
 String getClassName()
           Returns the text name of this class.
 int getObjectVersion()
           Returns the version of this class.
 int getX()
           Gets X.
 int getY()
           Gets Y.
 void loadXml(<String> strXml)
           Assigns the xml that relates to this object.
 String saveXml()
           Build an xml string that represents this object.
 void setX(<int> x)
           Sets X.
 void setXY(<int> x, <int> y)
           Sets the horizontal and vertical coordinates to the values passed in.
 void setY(<int> y)
           Sets Y.
 string toString()
           Returns a string representation of this MQPoint.
 Boolean valid()
           Returns a true if both the X and Y values are set to a value other than the static "INVALID" value.
 
Methods inherited from class MQObject
getM_XmlDoc, setM_XmlDoc, getM_Xpath, setM_Xpath, setProperty, getProperty, copy
 

Field Detail

x

int x

y

int y

Constructor Detail

MQPoint

MQPoint(<int/string> param1, <int> param2)

Method Detail

equals

Boolean equals(<MQPoint> pt)

getClassName

String getClassName()

getObjectVersion

int getObjectVersion()

getX

int getX()

getY

int getY()

loadXml

void loadXml(<String> strXml)

saveXml

String saveXml()

setX

void setX(<int> x)

setXY

void setXY(<int> x, <int> y)

setY

void setY(<int> y)

toString

string toString()

valid

Boolean valid()

MapQuest Advantage TileMap Toolkit Reference Documentation

Documentation generated by JSDoc on Tue Oct 16 08:04:28 2007