| Package | com.esri.aws.awx.map.handlers |
| Class | public class AWXKeyboardMouseHandler |
| Inheritance | AWXKeyboardMouseHandler flash.events.EventDispatcher |
| Implements | IKeyboardHandler, IMouseHandler |
See also
| Property | Defined by | ||
|---|---|---|---|
| lineColor : uint
lineColor is the uint color (ex: 0xFF0000) that defines the
line used to pan a projected map.
| AWXKeyboardMouseHandler | ||
| map : IMap
[write-only]
The map reference.
| AWXKeyboardMouseHandler | ||
| rubberBandColor : uint
rubberBandColor is the uint color (ex: 0xFF0000) that defines the
rubber band box used to zoom in on the map.
| AWXKeyboardMouseHandler | ||
| rubberBandFillAlpha : Number
rubberBandFillAlpha is the Number (0-1) that defines the
fill alpha of the rubber band box used to zoom in on the map.
| AWXKeyboardMouseHandler | ||
| rubberBandFillColor : uint
rubberBandFillColor is the uint color (ex: 0xFF0000) that defines the
fill color of the rubber band box used to zoom in on the map.
| AWXKeyboardMouseHandler | ||
| useCursor : Boolean | AWXKeyboardMouseHandler | ||
| Method | Defined by | ||
|---|---|---|---|
|
Sets up the AWXKeyboardMouseHandler with a simple pan mouse handler and pan/zoom keyboard handler.
| AWXKeyboardMouseHandler | ||
|
cleanUp():void
Cleans up any extraneous handlers when mouse handler is removed.
| AWXKeyboardMouseHandler | ||
|
onClick(event:MouseEvent):void
Throws the onClick mouse event.
| AWXKeyboardMouseHandler | ||
|
onDoubleClick(event:MouseEvent):void
Dispatches the onDoubleClick mouse event.
| AWXKeyboardMouseHandler | ||
|
onKeyDown(event:KeyboardEvent):void
Dispatches the onKeyDown keyboard event and turns on the rubberband cursor.
| AWXKeyboardMouseHandler | ||
|
onKeyUp(event:KeyboardEvent):void
Dispatches the onKeyUp keyboard event and allows for zooming and panning using the +,- and arrow keys.
| AWXKeyboardMouseHandler | ||
|
onMouseDown(event:MouseEvent):void
Dispaches mouse down event.
| AWXKeyboardMouseHandler | ||
|
onMouseMove(event:MouseEvent):void
Dispatches the onMouseMove mouse event.
| AWXKeyboardMouseHandler | ||
|
onMouseOut(event:MouseEvent):void
Dispatches the onMouseOut mouse event.
| AWXKeyboardMouseHandler | ||
|
onMouseOver(event:MouseEvent):void
Dispatches the onMouseOver mouse event.
| AWXKeyboardMouseHandler | ||
|
onMouseUp(event:MouseEvent):void
Dispatches the onMouseUp mouse event.
| AWXKeyboardMouseHandler | ||
|
onMouseWheel(event:MouseEvent):void
Dispatches the onMouseWheel mouse event and adjusts the map scale.
| AWXKeyboardMouseHandler | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
The user has drawn a box using the RubberBandMouseHandler. | AWXKeyboardMouseHandler | |||
| lineColor | property |
lineColor:uint [read-write]lineColor is the uint color (ex: 0xFF0000) that defines the line used to pan a projected map.
The default value is 0xAA0000.
public function get lineColor():uint
public function set lineColor(value:uint):void
| map | property |
| rubberBandColor | property |
rubberBandColor:uint [read-write]rubberBandColor is the uint color (ex: 0xFF0000) that defines the rubber band box used to zoom in on the map.
The default value is 0xAA0000.
public function get rubberBandColor():uint
public function set rubberBandColor(value:uint):void
| rubberBandFillAlpha | property |
rubberBandFillAlpha:Number [read-write]rubberBandFillAlpha is the Number (0-1) that defines the fill alpha of the rubber band box used to zoom in on the map.
The default value is 0.3.
public function get rubberBandFillAlpha():Number
public function set rubberBandFillAlpha(value:Number):void
| rubberBandFillColor | property |
rubberBandFillColor:uint [read-write]rubberBandFillColor is the uint color (ex: 0xFF0000) that defines the fill color of the rubber band box used to zoom in on the map.
The default value is 0x444444.
public function get rubberBandFillColor():uint
public function set rubberBandFillColor(value:uint):void
| useCursor | property |
useCursor:Boolean [read-write]Implementation
public function get useCursor():Boolean
public function set useCursor(value:Boolean):void
| AWXKeyboardMouseHandler | () | constructor |
public function AWXKeyboardMouseHandler()Sets up the AWXKeyboardMouseHandler with a simple pan mouse handler and pan/zoom keyboard handler.
| cleanUp | () | method |
public function cleanUp():voidCleans up any extraneous handlers when mouse handler is removed.
| onClick | () | method |
public function onClick(event:MouseEvent):voidThrows the onClick mouse event.
Parametersevent:MouseEvent |
| onDoubleClick | () | method |
public function onDoubleClick(event:MouseEvent):voidDispatches the onDoubleClick mouse event.
Parametersevent:MouseEvent |
| onKeyDown | () | method |
public function onKeyDown(event:KeyboardEvent):voidDispatches the onKeyDown keyboard event and turns on the rubberband cursor.
Parametersevent:KeyboardEvent — the KeyboardEvent that triggered the method.
|
| onKeyUp | () | method |
public function onKeyUp(event:KeyboardEvent):voidDispatches the onKeyUp keyboard event and allows for zooming and panning using the +,- and arrow keys.
Parametersevent:KeyboardEvent — the KeyboardEvent that triggered the method.
|
| onMouseDown | () | method |
public function onMouseDown(event:MouseEvent):voidDispaches mouse down event. if the shift key is down - then the mouse handler is set in rubberband mode.
Parametersevent:MouseEvent |
| onMouseMove | () | method |
public function onMouseMove(event:MouseEvent):voidDispatches the onMouseMove mouse event.
Parametersevent:MouseEvent |
| onMouseOut | () | method |
public function onMouseOut(event:MouseEvent):voidDispatches the onMouseOut mouse event.
Parametersevent:MouseEvent |
| onMouseOver | () | method |
public function onMouseOver(event:MouseEvent):voidDispatches the onMouseOver mouse event.
Parametersevent:MouseEvent |
| onMouseUp | () | method |
public function onMouseUp(event:MouseEvent):voidDispatches the onMouseUp mouse event.
Parametersevent:MouseEvent |
| onMouseWheel | () | method |
public function onMouseWheel(event:MouseEvent):voidDispatches the onMouseWheel mouse event and adjusts the map scale.
Parametersevent:MouseEvent — the MouseEvent that triggered the method
|
| rubberBand | event |
com.esri.aws.awx.events.RubberBandEvent
com.esri.aws.awx.events.RubberBandEvent.RUBBER_BAND
The user has drawn a box using the RubberBandMouseHandler.