|
MapQuest Advantage JavaScript API Reference Documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--MQObject
|
+--MQPoint
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 |
| Fields inherited from class MQObject |
m_xmlDoc, m_xpath
|
| 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, internalCopy
|
| Field Detail |
int x
int y
| Constructor Detail |
MQPoint(<int/string> param1, <int> param2)
param1 - OPTIONAL: Depending on the absence of param2. If param2 exists then param1 is initial x (int - default is 0) otherwise param1 is xpath (string - default is "Point").
param2 - OPTIONAL: initial y (default is 0).
| Method Detail |
Boolean equals(<MQPoint> pt)
pt - an MQPoint object to be compared with this MQPoint
String getClassName()
int getObjectVersion()
int getX()
int getY()
void loadXml(<String> strXml)
strXml - the xml to be assigned.
String saveXml()
void setX(<int> x)
x - the value to set X to
void setXY(<int> x, <int> y)
x - the value to set X to
y - the value to set Y to
void setY(<int> y)
y - the value to set Y to
string toString()
MQPoint.
The format is "x,y".MQPoint.
Boolean valid()
|
MapQuest Advantage JavaScript API Reference Documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||