| Package | com.esri.aws.awx.map.handlers |
| Class | public class RedLineMouseHandler |
| Inheritance | RedLineMouseHandler BaseOverlayMouseHandler BaseMouseHandler flash.events.EventDispatcher |
See also
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new RedLineMouseHandler.
| RedLineMouseHandler | ||
|
cleanUp():void
Cleans up any extraneous handlers when mouse handler is removed.
| RedLineMouseHandler | ||
![]() |
onClick(event:MouseEvent):void
Mouse click function handler.
| BaseMouseHandler | |
![]() |
onDoubleClick(event:MouseEvent):void
Mouse double-click function handler.
| BaseMouseHandler | |
|
onMouseDown(event:MouseEvent):void
On mouse down, creates the redline overlay.
| RedLineMouseHandler | ||
|
onMouseMove(event:MouseEvent):void
On mouse move and while the mouse is down, adds the current mouse location to the redline overlay.
| RedLineMouseHandler | ||
![]() |
onMouseOut(event:MouseEvent):void
Mouse out function handler.
| BaseMouseHandler | |
![]() |
onMouseOver(event:MouseEvent):void
Mouse over function handler.
| BaseMouseHandler | |
|
onMouseUp(event:MouseEvent):void
On mouse up, checks if the redline should be added to the map as an overlay, and dispatches aa OVERLAY_CREATED event.
| RedLineMouseHandler | ||
![]() |
onMouseWheel(event:MouseEvent):void
Mouse wheel function handler.
| BaseMouseHandler | |
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| The overlayCreated event is dispatched when the user has finished drawing and the redline is added to the overlay layer on the map. | RedLineMouseHandler | |||
| RedLineMouseHandler | () | constructor |
public function RedLineMouseHandler(overlayLayer:OverlayLayer, style:IStyle = null, applyToMap:Boolean = true)Creates a new RedLineMouseHandler.
ParametersoverlayLayer:OverlayLayer — The layer to apply the style to.
|
|
style:IStyle (default = null) — The style of the overlay. Default is null.
|
|
applyToMap:Boolean (default = true) — If true, the overlay will be added to the overlay layer on mouse up.
|
| cleanUp | () | method |
public override function cleanUp():voidCleans up any extraneous handlers when mouse handler is removed.
| onMouseDown | () | method |
public override function onMouseDown(event:MouseEvent):voidOn mouse down, creates the redline overlay.
Parametersevent:MouseEvent |
| onMouseMove | () | method |
public override function onMouseMove(event:MouseEvent):voidOn mouse move and while the mouse is down, adds the current mouse location to the redline overlay.
Parametersevent:MouseEvent |
| onMouseUp | () | method |
public override function onMouseUp(event:MouseEvent):voidOn mouse up, checks if the redline should be added to the map as an overlay, and dispatches aa OVERLAY_CREATED event.
Parametersevent:MouseEvent |
| overlayCreated | event |
com.esri.aws.awx.events.OverlayEvent
com.esri.aws.awx.events.OverlayEvent.OVERLAY_CREATED
The overlayCreated event is dispatched when the user has finished drawing and the redline is added to the overlay layer on the map.