Packagecom.mapquest
Classpublic class Point
InheritancePoint Inheritance MQObject

Encapsulates X and Y coordinates.



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
  
Point(param1:* = null, param2:int = 0)
Constructs a new Point object.
Point
  
equals(pt:Point):Boolean
Determines whether or not two points are equal.
Point
  
getClassName():String
Returns the text name of this class.
Point
  
Returns the version of this class.
Point
 Inherited
getProperty(path:String):String
Gets values from xml.
MQObject
  
getX():int
Gets X.
Point
  
getY():int
Gets Y.
Point
 Inherited
Create a copy of this object.
MQObject
 Inherited
MQObject
 Inherited
MQObject
  
loadXml(xmlPrm:XML):void
Assigns the xml that relates to this object.
Point
 Inherited
readExternal(input:IDataInput):void
MQObject
 Inherited
saveXml():XML
New XML Handler
MQObject
 Inherited
setProperty(path:String, value:Object):String
Sets values in xml.
MQObject
  
setX(x:Number):void
Sets X.
Point
 Inherited
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
 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
Point()constructor
public function Point(param1:* = null, param2:int = 0)

Constructs a new Point object.

Parameters
param1:* (default = null)
 
param2:int (default = 0)
Method detail
equals()method
public function equals(pt:Point):Boolean

Determines 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.

Parameters
pt:Point — an Point object to be compared with this Point

Returns
Boolean — True if both the X and Y values are equal.
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.
getX()method 
public function getX():int

Gets X.

Returns
int — The X value
getY()method 
public function getY():int

Gets Y.

Returns
int — The Y value
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.
setX()method 
public function setX(x:Number):void

Sets X.

Parameters
x:Number — the value to set X to
setXY()method 
public function setXY(x:Number, y:Number):void

Sets the horizontal and vertical coordinates to the values passed in.

Parameters
x:Number — the value to set X to
 
y:Number — the value to set Y to
setY()method 
public function setY(y:Number):void

Sets Y.

Parameters
y: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".

Returns
String
valid()method 
public function valid():Boolean

Returns a true if both the X and Y values are set to a value other than the static "INVALID" value.

Returns
Boolean — True if both the X and Y values are not equal to the static "INVALID".