Class DragPanHandler
Object
|
+--ToolBase
|
+--DragPanHandler
- class
DragPanHandler
- extends ToolBase
Defined in DragPanHandler.js
|
Constructor Summary |
DragPanHandler
(toolNode, model)
Tool to click and drag a map pane to achieve a recentering of the map.
|
|
Method Summary |
void
|
mouseDownHandler(objRef,targetNode)
Process a mouse down action by starting the drag pan action.
|
void
|
mouseMoveHandler(objRef,targetNode)
Process a mousemove action.
|
void
|
mouseUpHandler(objRef,targetNode)
Process the mouseup action.
|
DragPanHandler
DragPanHandler(toolNode, model)
Tool to click and drag a map pane to achieve a recentering of the map.
This tool processes screen coordinates and stores AOI in the current map
projection coordinates.
Parameters:
toolNode - The tool node from the Config XML file.
model - The model object that contains this tool.
mouseDownHandler
void mouseDownHandler(objRef,targetNode)
Process a mouse down action by starting the drag pan action.
Parameters:
objRef - Pointer to this DragPanHandler object.
targetNode - The HTML node that the event occured on
mouseMoveHandler
void mouseMoveHandler(objRef,targetNode)
Process a mousemove action. This method uses DHTML to move the map layers
and sets deltaP and deltaL properties on this tool to be used in mouse up.
Parameters:
objRef - Pointer to this DragPanHandler object.
targetNode - The HTML node that the event occured on
mouseUpHandler
void mouseUpHandler(objRef,targetNode)
Process the mouseup action. This will reset the AOI on the model by
shifting the AOI by the maount that the mouse was dragged.
Parameters:
objRef - Pointer to this DragPanHandler object.
targetNode - The HTML node that the event occured on
Documentation generated by
JSDoc on Fri Dec 2 16:31:06 2005