Packagecom.esri.aws.awx.map.handlers
Classpublic class RubberBandMouseHandler
InheritanceRubberBandMouseHandler Inheritance flash.events.EventDispatcher
ImplementsIMouseHandler

RubberBandMouseHandler is used to zoom in to a specific area.



Public Properties
 PropertyDefined by
  centerAndZoomOnMouseUp : Boolean
RubberBandMouseHandler
  color : uint
RubberBandMouseHandler
  fillAlpha : Number
RubberBandMouseHandler
  fillColor : uint
RubberBandMouseHandler
  map : IMap
RubberBandMouseHandler
  thickness : uint
RubberBandMouseHandler
  useCursor : Boolean
RubberBandMouseHandler
Public Methods
 MethodDefined by
  
Creates a new RubberBandMouseHandler.
RubberBandMouseHandler
  
cleanUp():void
Cleans up any extraneous handlers when mouse handler is removed.
RubberBandMouseHandler
  
onMouseDown(event:MouseEvent):void
On mouse down, changes cursor to crosshair to indicate the beginning of rubberbanding.
RubberBandMouseHandler
  
onMouseMove(event:MouseEvent):void
On mouse movement, shows the are to zoom in to.
RubberBandMouseHandler
  
onMouseUp(event:MouseEvent):void
On mouse up, zooms in to selected area.
RubberBandMouseHandler
Events
 EventSummaryDefined by
   The user has drawn a box using the RubberBandMouseHandler.RubberBandMouseHandler
Property detail
centerAndZoomOnMouseUpproperty
centerAndZoomOnMouseUp:Boolean  [read-write]

Implementation
    public function get centerAndZoomOnMouseUp():Boolean
    public function set centerAndZoomOnMouseUp(value:Boolean):void
colorproperty 
color:uint  [read-write]

The default value is 0xAA0000.

Implementation
    public function get color():uint
    public function set color(value:uint):void
fillAlphaproperty 
fillAlpha:Number  [read-write]

The default value is 0.3.

Implementation
    public function get fillAlpha():Number
    public function set fillAlpha(value:Number):void
fillColorproperty 
fillColor:uint  [read-write]

The default value is 0x444444 .

Implementation
    public function get fillColor():uint
    public function set fillColor(value:uint):void
mapproperty 
map:IMap  [read-write]

Implementation
    public function get map():IMap
    public function set map(value:IMap):void
thicknessproperty 
thickness:uint  [read-write]

The default value is 2 px.

Implementation
    public function get thickness():uint
    public function set thickness(value:uint):void
useCursorproperty 
useCursor:Boolean  [read-write]

Implementation
    public function get useCursor():Boolean
    public function set useCursor(value:Boolean):void
Constructor detail
RubberBandMouseHandler()constructor
public function RubberBandMouseHandler()

Creates a new RubberBandMouseHandler.

Method detail
cleanUp()method
public function cleanUp():void

Cleans up any extraneous handlers when mouse handler is removed.

onMouseDown()method 
public function onMouseDown(event:MouseEvent):void

On mouse down, changes cursor to crosshair to indicate the beginning of rubberbanding.

Parameters
event:MouseEvent
onMouseMove()method 
public function onMouseMove(event:MouseEvent):void

On mouse movement, shows the are to zoom in to.

Parameters
event:MouseEvent
onMouseUp()method 
public function onMouseUp(event:MouseEvent):void

On mouse up, zooms in to selected area.

Parameters
event:MouseEvent
Event detail
rubberBandevent 
Event object type: com.esri.aws.awx.events.RubberBandEvent
RubberBandEvent.type property = com.esri.aws.awx.events.RubberBandEvent.RUBBER_BAND

The user has drawn a box using the RubberBandMouseHandler.