s@rdalya

 

CursorTracker

Page history last edited by vozcelik 3 yrs ago


 

CursorTracker

(extends Object)


Object Summary

 

Tracks the x and y coordinates of the cursor pointer.

 

DraggableLayer object uses CursorTracker in its drag and resize operations.


Constructor

 

This object has no constructor. It is accessed statically.


Methods

 

CursorTracker.withinElement(objElement,enumOrientation)

 

parameters

objElement - The element to test.

enumOrientation - (optional) A valid orientation enum (must be one of Constant.Orientation.HORIZONTAL, Constant.Orientation.VERTICAL or Constant.Orientation.BOTH -- if none given Constant.Orientation.BOTH is taken as default).

 

returns

true if the mouse pointer is within the boundaries of the element, false otherwise.


CursorTracker.getCursorPosition()

 

returns

a Dimension enclosing the current cursor position.

 

comments

Gets the cursor position as a Dimension


CursorTracker.toString()

 

returns

A String represantation of the object.

 

comments

Gets a String representation of the object.


See Also

 

DraggableLayer


Usage Examples

 

Comments (0)

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