Class SelectedObjectResize
Object
|
+--SelectedObjectResize
- class
SelectedObjectResize
A class that contains information about a note being resized.
See:
Defined in webnote.js
Field Summary |
dictionary |
edges
The edges being moved. |
Note |
note
The note being resized
|
Point |
pos
The original position of the note
|
Point |
size
The original size of the note
|
Method Summary |
void
|
deselect()
Add information to the undo stack when the user stops resizing.
|
void
|
update(<Mouse> md)
Update the size of the note when the user moves the mouse.
|
edges
dictionary edges
note
Note note
pos
Point pos
The original position of the note
size
Point size
The original size of the note
SelectedObjectResize
SelectedObjectResize(<Note> note, <dictionary> pnotePosRel)
Create a new Resizing object.
Parameters:
note
- a reference to the note being dragged
pnotePosRel
- which edges are being resized? It is a dictionary from string -> boolean where the string is either 'top, 'right', 'bottom' or 'left' and true means the edge is moving.
deselect
void deselect()
Add information to the undo stack when the user stops resizing.
update
void update(<Mouse> md)
Update the size of the note when the user moves the mouse.
Parameters:
md
- a reference to the parent Mouse object
Documentation generated by
JSDoc on Tue May 24 23:13:22 2005