Packagenet.systemeD.potlatch2.controller
Classpublic class DragSelection
InheritanceDragSelection Inheritance ControllerState

The state of moving a selection around with the mouse.



Public Properties
 PropertyDefined by
 InheritedfirstSelected : Entity
ControllerState
 Inheritedlayer : MapPaint
ControllerState
 Inheritedmap : Map
Retrieves the map associated with the current EditController
ControllerState
 InheritedselectCount : uint
ControllerState
 InheritedselectedNodes : Array
ControllerState
 InheritedselectedWay : Way
ControllerState
 InheritedselectedWays : Array
ControllerState
 Inheritedselection : Array
ControllerState
Protected Properties
 PropertyDefined by
 Inheritedcontroller : EditController
ControllerState
 InheritedpreviousState : ControllerState
ControllerState
 Inherited_selection : Array
ControllerState
Public Methods
 MethodDefined by
  
DragSelection(sel:Array, event:MouseEvent)
Start the drag by recording the dragged way, where it started, and when.
DragSelection
 Inherited
addToSelection(items:Array):void
ControllerState
  
enterState():void
Highlight the dragged selection.
DragSelection
  
exitState(newState:ControllerState):void
Un-highlight the dragged selection.
DragSelection
  
DragSelection
 Inherited
[static] Gets the way that the selected node is part of, if that makes sense.
ControllerState
 Inherited
hasAdjoiningWays():Boolean
ControllerState
 Inherited
hasSelectedAreas():Boolean
ControllerState
 Inherited
ControllerState
 Inherited
Determine whether or not any nodes are selected, and if so whether any of them belong to areas.
ControllerState
 Inherited
hasSelectedWays():Boolean
ControllerState
 Inherited
isSelectionState():Boolean
ControllerState
  
processKeyboardEvent(event:KeyboardEvent):ControllerState
Abort dragging if ESC pressed.
DragSelection
  
processMouseEvent(event:MouseEvent, entity:Entity):ControllerState
Handle dragging and end drag events.
DragSelection
 Inherited
removeFromSelection(items:Array):void
ControllerState
 Inherited
setController(controller:EditController):void
ControllerState
 Inherited
setPreviousState(previousState:ControllerState):void
ControllerState
 Inherited
toggleSelection(item:Entity):Boolean
ControllerState
  
toString():String
"DragSelection"
DragSelection
Protected Methods
 MethodDefined by
 Inherited
getMapPaint(d:DisplayObject):MapPaint
Find the MapPaint object that this DisplayObject belongs to.
ControllerState
 Inherited
getNodeIndex(way:Way, node:Node):uint
ControllerState
 Inherited
repeatTags(object:Entity):void
Create a "repeat tags" action on the current entity, if possible.
ControllerState
 Inherited
revertHandler(event:CloseEvent):void
ControllerState
 Inherited
Revert all selected items to previously saved state, via a dialog box.
ControllerState
 Inherited
setSourceTag():void
Create an action to add "source= tag to current entity based on background imagery.
ControllerState
 Inherited
sharedKeyboardEvents(event:KeyboardEvent):ControllerState
Default behaviour for the current state that should be called if state-specific action has been taken care of or ruled out.
ControllerState
 Inherited
sharedMouseEvents(event:MouseEvent, entity:Entity):ControllerState
Default behaviour for the current state that should be called if state-specific action has been taken care of or ruled out.
ControllerState
Constructor detail
DragSelection()constructor
public function DragSelection(sel:Array, event:MouseEvent)

Start the drag by recording the dragged way, where it started, and when.

Parameters
sel:Array
 
event:MouseEvent
Method detail
enterState()method
public override function enterState():void

Highlight the dragged selection.

exitState()method 
public override function exitState(newState:ControllerState):void

Un-highlight the dragged selection.

Parameters
newState:ControllerState
forceDragStart()method 
public function forceDragStart():void
processKeyboardEvent()method 
public override function processKeyboardEvent(event:KeyboardEvent):ControllerState

Abort dragging if ESC pressed.

Parameters
event:KeyboardEvent

Returns
ControllerState
processMouseEvent()method 
public override function processMouseEvent(event:MouseEvent, entity:Entity):ControllerState

Handle dragging and end drag events. Filters out very short or quick drags.

Parameters
event:MouseEvent
 
entity:Entity

Returns
ControllerState
toString()method 
public override function toString():String

"DragSelection"

Returns
String