| Package | com.mapquest |
| Class | public class Point |
| Inheritance | Point MQObject |
| Method | Defined by | ||
|---|---|---|---|
|
Point(param1:* = null, param2:int = 0)
Constructs a new Point object.
| Point | ||
|
Determines whether or not two points are equal.
| Point | ||
|
getClassName():String
Returns the text name of this class.
| Point | ||
|
getObjectVersion():Number
Returns the version of this class.
| Point | ||
![]() |
getProperty(path:String):String
Gets values from xml.
| MQObject | |
|
getX():int
Gets X.
| Point | ||
|
getY():int
Gets Y.
| Point | ||
![]() |
Create a copy of this object.
| MQObject | |
![]() |
internalCopyXML(obj:MQObject):XML
| MQObject | |
![]() |
internalCopyXMLx(obj:MQObject):String
| MQObject | |
|
loadXml(xmlPrm:XML):void
Assigns the xml that relates to this object.
| Point | ||
![]() |
readExternal(input:IDataInput):void
| MQObject | |
![]() |
saveXml():XML
New XML Handler
| MQObject | |
![]() |
setProperty(path:String, value:Object):String
Sets values in xml.
| MQObject | |
|
setX(x:Number):void
Sets X.
| Point | ||
![]() |
setXpath(xpath:String):void
Sets the m_xpath object.
| MQObject | |
|
setXY(x:Number, y:Number):void
Sets the horizontal and vertical coordinates to the values passed in.
| Point | ||
|
setY(y:Number):void
Sets Y.
| Point | ||
|
toString():String
Returns a string representation of this
Point. | Point | ||
|
valid():Boolean
Returns a true if both the X and Y values are set
to a value other than the static "INVALID" value.
| Point | ||
![]() |
writeExternal(output:IDataOutput):void
| MQObject | |
| Point | () | constructor |
public function Point(param1:* = null, param2:int = 0)Constructs a new Point object.
Parametersparam1:* (default = null) |
|
param2:int (default = 0) |
| equals | () | method |
public function equals(pt:Point):BooleanDetermines whether or not two points are equal. Two instances of Point are equal if the values of their x and y member fields, representing their position in the coordinate space, are the same.
Parameterspt:Point — an Point object to be compared with this Point
|
Boolean — True if both the X and Y values are equal.
|
| getClassName | () | method |
public override function getClassName():StringReturns the text name of this class.
ReturnsString — The text name of this class.
|
| getObjectVersion | () | method |
public override function getObjectVersion():NumberReturns the version of this class.
ReturnsNumber — The version of this class.
|
| getX | () | method |
public function getX():intGets X.
Returnsint — The X value
|
| getY | () | method |
public function getY():intGets Y.
Returnsint — The Y value
|
| loadXml | () | method |
public override function loadXml(xmlPrm:XML):voidAssigns the xml that relates to this object.
ParametersxmlPrm:XML — the xml to be assigned.
|
| setX | () | method |
public function setX(x:Number):voidSets X.
Parametersx:Number — the value to set X to
|
| setXY | () | method |
public function setXY(x:Number, y:Number):voidSets the horizontal and vertical coordinates to the values passed in.
Parametersx:Number — the value to set X to
|
|
y:Number — the value to set Y to
|
| setY | () | method |
public function setY(y:Number):voidSets Y.
Parametersy:Number — the value to set Y to
|
| toString | () | method |
public function toString():String
Returns a string representation of this Point.
The format is "x,y".
String |
| valid | () | method |
public function valid():BooleanReturns a true if both the X and Y values are set to a value other than the static "INVALID" value.
ReturnsBoolean — True if both the X and Y values are not
equal to the static "INVALID".
|