Packagecom.mapquest.tilemap
Classpublic class Size



Public Properties
 PropertyDefined by
  height : int
Size
  width : int
Size
Public Methods
 MethodDefined by
  
Size(w:int = 0, h:int = 0)
Constructs a MQSize object.
Size
  
getHeight():int
Gets the height of the size object.
Size
  
getWidth():int
Gets the width of the size object.
Size
  
setHeight(h:int):void
Sets the height of the size object.
Size
  
setWidth(w:int):void
Sets the width of the size object.
Size
  
toString():String
Returns a string representation of this MQSize.
Size
Property detail
heightproperty
public var height:int
widthproperty 
public var width:int
Constructor detail
Size()constructor
public function Size(w:int = 0, h:int = 0)

Constructs a MQSize object. Default is (0,0).

Parameters
w:int (default = 0) — w width dimension.
 
h:int (default = 0) — h height dimension.
Method detail
getHeight()method
public function getHeight():int

Gets the height of the size object.

Returns
int
getWidth()method 
public function getWidth():int

Gets the width of the size object.

Returns
int
setHeight()method 
public function setHeight(h:int):void

Sets the height of the size object.

Parameters
h:int — h height dimension.
setWidth()method 
public function setWidth(w:int):void

Sets the width of the size object.

Parameters
w:int — w width dimension.
toString()method 
public function toString():String

Returns a string representation of this MQSize. The format is "width,height".

Returns
String