ALKMaps.Size

Instances of this class represent a width/height pair

Summary
ALKMaps.SizeInstances of this class represent a width/height pair
Properties
w{Number} width
h{Number} height
Constructor
ALKMaps.SizeCreate an instance of ALKMaps.Size
Functions
toStringReturn the string representation of a size object
cloneCreate a clone of this size object
equalsDetermine where this size is equal to another

Properties

w

{Number} width

h

{Number} height

Constructor

ALKMaps.Size

Create an instance of ALKMaps.Size

Parameters

w{Number} width
h{Number} height

Functions

toString

toString:function()

Return the string representation of a size object

Returns

{String} The string representation of ALKMaps.Size object.  (e.g.  <i>”w=55,h=66”</i>)

clone

clone:function()

Create a clone of this size object

Returns

{ALKMaps.Size} A new ALKMaps.Size object with the same w and h values

equals

equals:function(sz)

Determine where this size is equal to another

Parameters

sz{<ALKMaps.Size>|Object} An ALKMaps.Size or an object with a ‘w’ and ‘h’ properties.

Returns

{Boolean} The passed in size has the same h and w properties as this one.  Note that if sz passed in is null, returns false.

toString:function()
Return the string representation of a size object
clone:function()
Create a clone of this size object
equals:function(sz)
Determine where this size is equal to another
Create an instance of ALKMaps.Size
Close