Packagenet.systemeD.potlatch2.controller
Classpublic class SelectedParallelWay
InheritanceSelectedParallelWay Inheritance SelectedWay Inheritance ControllerState

The state midway during the use of the "parallelise tool", where a parallel way has been created but is stuck to the mouse cursor, allowing the user to choose how far from the original way it should go. This transforms it in the process.



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
 InheritedinitWay : Way
The selected way itself.
SelectedWay
 InheritedpreviousState : ControllerState
ControllerState
 Inherited_selection : Array
ControllerState
Public Methods
 MethodDefined by
  
SelectedParallelWay(originalWay:Way)
Initialises by parallelising the originalWay.
SelectedParallelWay
 Inherited
addToSelection(items:Array):void
ControllerState
 Inherited
Perform deletion of currently selected way.
SelectedWay
  
enterState():void
Creates the WayUI for the parallel way.
SelectedParallelWay
  
exitState(newState:ControllerState):void
Unselects.
SelectedParallelWay
 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
Cancel parallel way creation if ESC pressed.
SelectedParallelWay
  
processMouseEvent(event:MouseEvent, entity:Entity):ControllerState
SelectedParallelWay
 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
SelectedParallelWay
Protected Methods
 MethodDefined by
 Inherited
Tidy up UI as we transition to a new state without the current selection.
SelectedWay
 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
SelectedParallelWay()constructor
public function SelectedParallelWay(originalWay:Way)

Initialises by parallelising the originalWay.

Parameters
originalWay:Way
Method detail
enterState()method
public override function enterState():void

Creates the WayUI for the parallel way.

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

Unselects.

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

Cancel parallel way creation if ESC pressed.

Parameters
event:KeyboardEvent

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

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

Returns
String