| Package | org.openscales.core.handler.keyboard |
| Class | public class KeyboardHandler |
| Inheritance | KeyboardHandler Handler Object |
By default handled keys are:
| Property | Defined By | ||
|---|---|---|---|
![]() | active : Boolean
Getter and setter of the boolean defining the activity of the handler
| Handler | |
![]() | map : Map
Getter and setter of the map associated to the handler
| Handler | |
| panEastKeyCode : uint
Pan east key code
Default is Keyboard.RIGHT
| KeyboardHandler | ||
| panNorthKeyCode : uint
Pan north key code
Default is Keyboard.UP
| KeyboardHandler | ||
| panSouthKeyCode : uint
Pan south key code
Default is Keyboard.DOWN
| KeyboardHandler | ||
| panStep : Number
Step (in pixels) used to calculate new map position when panning without shift key pressed
Default is 75
| KeyboardHandler | ||
| panStepShiftkey : Number
Step (in pixels) used to calculate new map position when panning with shift key pressed
Default is 225
| KeyboardHandler | ||
| panWestKeyCode : uint
Pan west key code
Default is Keyboard.LEFT
| KeyboardHandler | ||
![]() | toggleHandlerActivity : Function
Getter and setter of the callback function used when the handler's
activity changes
| Handler | |
| zoomInKeyCode : uint
Zoom in key code
Default is plus sign (on numerical pad) code
| KeyboardHandler | ||
| zoomOutKeyCode : uint
Zoom out key code
Default is minus sign (on numerical pad) code
| KeyboardHandler | ||
| Method | Defined By | ||
|---|---|---|---|
KeyboardHandler(target:Map = null, active:Boolean = true)
Constructor
| KeyboardHandler | ||
setKeyCodesToDefault():void
This method sets commands to defaults
| KeyboardHandler | ||
| Method | Defined By | ||
|---|---|---|---|
registerListeners():void [override]
Add the listeners to the associated map
| KeyboardHandler | ||
unregisterListeners():void [override]
Remove the listeners to the associated map
| KeyboardHandler | ||
| panEastKeyCode | property |
panEastKeyCode:uintPan east key code
Default is Keyboard.RIGHT
public function get panEastKeyCode():uint public function set panEastKeyCode(value:uint):void| panNorthKeyCode | property |
panNorthKeyCode:uintPan north key code
Default is Keyboard.UP
public function get panNorthKeyCode():uint public function set panNorthKeyCode(value:uint):void| panSouthKeyCode | property |
panSouthKeyCode:uintPan south key code
Default is Keyboard.DOWN
public function get panSouthKeyCode():uint public function set panSouthKeyCode(value:uint):void| panStep | property |
panStep:NumberStep (in pixels) used to calculate new map position when panning without shift key pressed
Default is 75
public function get panStep():Number public function set panStep(value:Number):void| panStepShiftkey | property |
panStepShiftkey:NumberStep (in pixels) used to calculate new map position when panning with shift key pressed
Default is 225
public function get panStepShiftkey():Number public function set panStepShiftkey(value:Number):void| panWestKeyCode | property |
panWestKeyCode:uintPan west key code
Default is Keyboard.LEFT
public function get panWestKeyCode():uint public function set panWestKeyCode(value:uint):void| zoomInKeyCode | property |
zoomInKeyCode:uintZoom in key code
Default is plus sign (on numerical pad) code
public function get zoomInKeyCode():uint public function set zoomInKeyCode(value:uint):void| zoomOutKeyCode | property |
zoomOutKeyCode:uintZoom out key code
Default is minus sign (on numerical pad) code
public function get zoomOutKeyCode():uint public function set zoomOutKeyCode(value:uint):void| KeyboardHandler | () | Constructor |
public function KeyboardHandler(target:Map = null, active:Boolean = true)Constructor
Parameterstarget:Map (default = null) — The Map that will be concerned by event handling
| |
active:Boolean (default = true) — Boolean defining if the handler is active or not (default=true)
|
| registerListeners | () | method |
override protected function registerListeners():voidAdd the listeners to the associated map
| setKeyCodesToDefault | () | method |
public function setKeyCodesToDefault():voidThis method sets commands to defaults
| unregisterListeners | () | method |
override protected function unregisterListeners():voidRemove the listeners to the associated map