ka-Map

Class kaNavigator

Object
   |
   +--kaTool
         |
         +--kaNavigator

class kaNavigator
extends kaTool


kaNavigator is a general purpose navigation tool for kaMap instances. It provides panning through click-and-drag, and various keyboard navigation.
Author: Paul Spencer
Defined in kaTool.js


Field Summary
 Object activeImage
          the image to use for this tool when it is active on the map
 Object bMouseDown
          track whether the mouse is down or up for panning support
 Object cursor
          the cursor to use over the map (by default)
 Object cursorDrag
          the cursor to use when the map is being dragged
 Object cursorNormal
          the cursor to use when the map is not being dragged
 Object disabledImage
          the image to use for this tool when it is disabled
 Object lastx
          track the last x position of the mouse for panning
 Object lasty
          track the last y position of the mouse for panning
 Object name
          the name of this tool
   
Fields inherited from class kaTool
kaMap, name, bInfoTool, wheelPlus, wheelMinus
 
Constructor Summary
kaNavigator ( <Object> oKaMap )
            Construct a new kaNavigator instance on a given kaMap instance
 
Method Summary
 void dispatchMapClicked(px,py)
          
 void ondblclick(<Event> e)
           handle a double-click event by sliding the map to the point that was clicked.
 Object onmousedown(<Event> e)
           handle mouse down events.
 Object onmousemove(<Event> e)
           handle the mouse moving inside viewport.
 Object onmouseout(<Event> e)
           handle the mouse leaving the viewport.
 Object onmouseup(<Event> e)
           handle the mouse up events.
 
Methods inherited from class kaTool
isInfoTool, activate, deactivate, setMouseWheel, onmousewheel, adjustPixPosition, onkeypress, onmouseover, cancelEvent
 

Field Detail

activeImage

Object activeImage

bMouseDown

Object bMouseDown

cursor

Object cursor

cursorDrag

Object cursorDrag

cursorNormal

Object cursorNormal

disabledImage

Object disabledImage

lastx

Object lastx

lasty

Object lasty

name

Object name

Constructor Detail

kaNavigator

kaNavigator( <Object> oKaMap )

Method Detail

dispatchMapClicked

void dispatchMapClicked(px,py)

ondblclick

void ondblclick(<Event> e)

onmousedown

Object onmousedown(<Event> e)

onmousemove

Object onmousemove(<Event> e)

onmouseout

Object onmouseout(<Event> e)

onmouseup

Object onmouseup(<Event> e)

ka-Map

Documentation generated by JSDoc on Mon Feb 5 08:25:15 2007