|
ka-Map | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--kaTool | +--kaNavigator
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 |
Object activeImage
Object bMouseDown
Object cursor
Object cursorDrag
Object cursorNormal
Object disabledImage
Object lastx
Object lasty
Object name
Constructor Detail |
kaNavigator( <Object> oKaMap )
oKaMap
- the kaMap instance to provide navigation for
Method Detail |
void dispatchMapClicked(px,py)
void ondblclick(<Event> e)
e
- the mouse event object
Object onmousedown(<Event> e)
e
- the mouse event object
Object onmousemove(<Event> e)
e
- the mouse event object
Object onmouseout(<Event> e)
e
- the mouse event object
Object onmouseup(<Event> e)
e
- the mouse event object
|
ka-Map | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |