Packagenet.systemeD.potlatch2.controller
Classpublic class SelectedWayNode
InheritanceSelectedWayNode Inheritance ControllerState



Public Properties
 PropertyDefined by
 InheritedfirstSelected : Entity
ControllerState
 Inheritedlayer : MapPaint
ControllerState
 Inheritedmap : Map
Retrieves the map associated with the current EditController
ControllerState
 InheritedselectCount : uint
ControllerState
  selectedNode : Node
[read-only]
SelectedWayNode
 InheritedselectedNodes : Array
ControllerState
  selectedWay : Way
[read-only]
SelectedWayNode
 InheritedselectedWays : Array
ControllerState
 Inheritedselection : Array
ControllerState
Protected Properties
 PropertyDefined by
 Inheritedcontroller : EditController
ControllerState
 InheritedpreviousState : ControllerState
ControllerState
 Inherited_selection : Array
ControllerState
Public Methods
 MethodDefined by
  
SelectedWayNode(way:Way, index:int)
SelectedWayNode
 Inherited
addToSelection(items:Array):void
ControllerState
  
SelectedWayNode
  
enterState():void
SelectedWayNode
  
exitState(newState:ControllerState):void
SelectedWayNode
 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
  
Attempt to either merge the currently selected node with another very nearby node, or failing that, attach it mid-way along a very nearby way.
SelectedWayNode
  
processKeyboardEvent(event:KeyboardEvent):ControllerState
SelectedWayNode
  
processMouseEvent(event:MouseEvent, entity:Entity):ControllerState
SelectedWayNode
 Inherited
removeFromSelection(items:Array):void
ControllerState
  
SelectedWayNode
  
selectOrEdit(selectedWay:Way, index:int):ControllerState
[static]
SelectedWayNode
 Inherited
setController(controller:EditController):void
ControllerState
 Inherited
setPreviousState(previousState:ControllerState):void
ControllerState
  
Splits a way into two separate ways, at the currently selected node.
SelectedWayNode
  
Move the selection one node further up or down this way, looping if necessary.
SelectedWayNode
 Inherited
toggleSelection(item:Entity):Boolean
ControllerState
  
toString():String
SelectedWayNode
  
SelectedWayNode
Protected Methods
 MethodDefined by
  
SelectedWayNode
 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
  
selectNode(way:Way, index:int):void
SelectedWayNode
 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
Property detail
selectedNodeproperty
selectedNode:Node  [read-only]Implementation
    public function get selectedNode():Node
selectedWayproperty 
selectedWay:Way  [read-only]Implementation
    public function get selectedWay():Way
Constructor detail
SelectedWayNode()constructor
public function SelectedWayNode(way:Way, index:int)Parameters
way:Way
 
index:int
Method detail
clearSelection()method
protected function clearSelection(newState:ControllerState):voidParameters
newState:ControllerState
deleteNode()method 
public function deleteNode():ControllerState

Returns
ControllerState
enterState()method 
public override function enterState():void
exitState()method 
public override function exitState(newState:ControllerState):voidParameters
newState:ControllerState
join()method 
public function join():ControllerState

Attempt to either merge the currently selected node with another very nearby node, or failing that, attach it mid-way along a very nearby way.

Returns
ControllerState
processKeyboardEvent()method 
public override function processKeyboardEvent(event:KeyboardEvent):ControllerStateParameters
event:KeyboardEvent

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

Returns
ControllerState
removeNode()method 
public function removeNode():ControllerState

Returns
ControllerState
selectNode()method 
protected function selectNode(way:Way, index:int):voidParameters
way:Way
 
index:int
selectOrEdit()method 
public static function selectOrEdit(selectedWay:Way, index:int):ControllerStateParameters
selectedWay:Way
 
index:int

Returns
ControllerState
splitWay()method 
public function splitWay():ControllerState

Splits a way into two separate ways, at the currently selected node. Handles simple loops and P-shapes. Untested for anything funkier.

Returns
ControllerState
stepNode()method 
public function stepNode(delta:int):ControllerState

Move the selection one node further up or down this way, looping if necessary.

Parameters
delta:int

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

Returns
String
unjoin()method 
public function unjoin():ControllerState

Returns
ControllerState