Class Mouse
Object
|
+--Mouse
- class
Mouse
A class that tracks the mouse position and handles mouse events.
Defined in webnote.js
Field Summary |
Point |
curPos
The current location of the mouse. |
dictionary |
notePosRel
When resizing a note, this determines which edges need to be moved and
which edges remain fixed. |
Constructor Summary |
Mouse
()
|
Method Summary |
void
|
deselect()
Release selected notes.
|
void
|
select(<Note> note, <event> ev)
Select a note either for dragging or for resizing.
|
void
|
update(<int> x, <int> y)
Update the mouse position and resize/move notes if necessary.
|
curPos
Point curPos
The current location of the mouse. We initialize it to a dummy value
because object.js probably hasn't loaded yet (and Point is undefined).
It actually gets set in GLOBALS.init()
notePosRel
dictionary notePosRel
When resizing a note, this determines which edges need to be moved and
which edges remain fixed. It is a dictionary from string -> boolean
where the string is either 'top, 'right', 'bottom' or 'left' and true
means the edge is moving.
Mouse
Mouse()
deselect
void deselect()
select
void select(<Note> note, <event> ev)
Select a note either for dragging or for resizing.
Parameters:
ev
- the javascript event object
update
void update(<int> x, <int> y)
Update the mouse position and resize/move notes if necessary.
Documentation generated by
JSDoc on Tue May 24 23:13:22 2005