Class AoiMouseHandler
Object
|
+--ToolBase
|
+--AoiMouseHandler
- class
AoiMouseHandler
- extends ToolBase
Deprecated
Defined in AoiMouseHandler.js
Constructor Summary |
AoiMouseHandler
(toolNode, model)
Tool which implements a click and drag behaviour to set the
Area Of Interest on the model from mouse events.
|
Method Summary |
void
|
dragBox( evpl )
Change the coordinate of one corner of the box.
|
void
|
mapInit(objRef)
|
void
|
mouseDownHandler(e)
Process the mousedown action by setting the anchor point.
|
void
|
mouseMoveHandler(e)
Process a the mousemove action as dragging out a box.
|
void
|
mouseOutHandler(objRef,targetNode)
Process a the mouseout action when the mouse moves out of the mappane
|
void
|
mouseOverHandler(objRef,targetNode)
Process a the mousemove action as dragging out a box.
|
void
|
mouseUpHandler(e)
Process the mouseup action by stopping the drag.
|
AoiMouseHandler
AoiMouseHandler(toolNode, model)
Tool which implements a click and drag behaviour to set the
Area Of Interest on the model from mouse events.
The tool must be enabled before use by calling tool.enable(true);
This tool registers mouse event listeners on the parent model.
This tool processes screen coordinates and stores AOI in the current map
projection coordinates.
WARNING: This tool cannot be used in maps that use button controls.
Button controls take care of aoi handling themselves.
It is designed for use in locator map setups only.
Parameters:
toolNode
- The node for this tool from the configuration document.
model
- The model object that contains this tool
dragBox
void dragBox( evpl )
Change the coordinate of one corner of the box. The anchor point stays fixed.
Parameters:
evpl
- new corner coordinate.
mapInit
void mapInit(objRef)
mouseDownHandler
void mouseDownHandler(e)
Process the mousedown action by setting the anchor point.
mouseMoveHandler
void mouseMoveHandler(e)
Process a the mousemove action as dragging out a box.
mouseOutHandler
void mouseOutHandler(objRef,targetNode)
Process a the mouseout action when the mouse moves out of the mappane
Parameters:
objRef
- Pointer to this object.
targetNode
- The HTML node that the event occured on
mouseOverHandler
void mouseOverHandler(objRef,targetNode)
Process a the mousemove action as dragging out a box.
Parameters:
objRef
- Pointer to this object.
targetNode
- The HTML node that the event occured on
mouseUpHandler
void mouseUpHandler(e)
Process the mouseup action by stopping the drag.
Documentation generated by
JSDoc on Tue Aug 21 08:12:28 2007