Class Index | File Index

Classes


Class adf.DrawPointAction


Extends adf.Action.

Defined in: Action.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Extends adf.Action to take user interaction from the mouse in order to draw point on a given adf.graphics.Element.
Fields borrowed from class adf.Action:
cursor, graphicsZIndex, name, symbol
Method Summary
Method Attributes Method Name and Description
 
activate(callBack, callBack)
This method activates the action and registers the required event listeners to draw a point.
 
Deactivates the action and the event listeners set by this action
 
Reactivates the event listeners set by this action
Class Detail
adf.DrawPointAction()
Extends adf.Action to take user interaction from the mouse in order to draw point on a given adf.graphics.Element.
Method Detail
activate(callBack, callBack)
This method activates the action and registers the required event listeners to draw a point. The callBack() function passed to this function will be executed when the onmouseup event has been fired. Its only parameter is an instance of adf.Point representing where the user clicked on the element.
Parameters:
{HTMLElement} callBack
The HTMLElement that is the action's container on which the events are attached
{Function} callBack
Callback function to be called after action is completed

deactivate()
Deactivates the action and the event listeners set by this action

reactivate()
Reactivates the event listeners set by this action

Documentation generated by JsDoc Toolkit 2.1.0 on Mon May 17 2010 13:45:41 GMT-0700 (PDT)