s@rdalya

 

Dimension

Page history last edited by vozcelik 3 yrs ago


 

Dimension

(extends Object)


Object Summary

 

Describes a two-dimensional entity,

such as x and y coordinates of a point.

 

The object is used in DraggableLayer and CursorTracker as a helper.


Constructor

 

Dimension(x,y)

 

parameters

x - absys value.

y - ordinate value.

 

comments

Constructs a new Dimension object.

 

see also


Methods

 

Dimension.getX()

 

returns

the absys.

 

comments

Returns the x coordinate of the Dimension.


Dimension.setX(x)

 

parameters

x - the absys to set.

 

comments

Sets the x coordinate of the Dimension.


Dimension.getY()

 

returns

the ordinate.

 

comments

Gets the y coordinate of the Dimension.


Dimension.setY(y)

 

parameters

y - the ordinate to set.

 

comments

Sets the y coordinate of the Dimension.


Dimension.setAll(objDimension)

 

parameters

objDimesion The Dimension to copy.

 

comments

Sets the x and y coordinates of the Dimension.


Dimension.equals(anotherDimension)

 

parameters

anotherDimension - the Dimension to check for equality.

 

returns

true if x and y values of the two Dimensions are equal, false otherwise.

 

comments

Checks whether the x and y coordinates of the object matches to another Dimension object.


Dimension.toString()

 

returns

A String representation of the Dimension.

 

comments

A String representation of the object.


See Also

 

DraggableLayer

CursorTracker


Usage Examples

 

Comments (0)

You don't have permission to comment on this page.