Package | net.systemeD.potlatch2.controller |
Class | public class SelectedWayNode |
Inheritance | SelectedWayNode ControllerState |
Property | Defined by | ||
---|---|---|---|
firstSelected : Entity | ControllerState | ||
layer : MapPaint | ControllerState | ||
map : Map
Retrieves the map associated with the current EditController
| ControllerState | ||
selectCount : uint | ControllerState | ||
selectedNode : Node
[read-only]
| SelectedWayNode | ||
selectedNodes : Array | ControllerState | ||
selectedWay : Way
[read-only]
| SelectedWayNode | ||
selectedWays : Array | ControllerState | ||
selection : Array | ControllerState |
Method | Defined by | ||
---|---|---|---|
SelectedWayNode(way:Way, index:int)
| SelectedWayNode | ||
addToSelection(items:Array):void
| ControllerState | ||
SelectedWayNode | |||
enterState():void
| SelectedWayNode | ||
exitState(newState:ControllerState):void
| SelectedWayNode | ||
[static] Gets the way that the selected node is part of, if that makes sense.
| ControllerState | ||
hasAdjoiningWays():Boolean
| ControllerState | ||
hasSelectedAreas():Boolean
| ControllerState | ||
hasSelectedUnclosedWays():Boolean
| ControllerState | ||
hasSelectedWayNodesInAreas():Boolean
Determine whether or not any nodes are selected, and if so whether any of them belong to areas.
| ControllerState | ||
hasSelectedWays():Boolean
| ControllerState | ||
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 | ||
SelectedWayNode | |||
removeFromSelection(items:Array):void
| ControllerState | ||
SelectedWayNode | |||
[static]
| SelectedWayNode | ||
setController(controller:EditController):void
| ControllerState | ||
setPreviousState(previousState:ControllerState):void
| ControllerState | ||
Splits a way into two separate ways, at the currently selected node.
| SelectedWayNode | ||
stepNode(delta:int):ControllerState
Move the selection one node further up or down this way, looping if necessary.
| SelectedWayNode | ||
toggleSelection(item:Entity):Boolean
| ControllerState | ||
toString():String
| SelectedWayNode | ||
SelectedWayNode |
Method | Defined by | ||
---|---|---|---|
clearSelection(newState:ControllerState):void
| SelectedWayNode | ||
getMapPaint(d:DisplayObject):MapPaint
Find the MapPaint object that this DisplayObject belongs to.
| ControllerState | ||
ControllerState | |||
repeatTags(object:Entity):void
Create a "repeat tags" action on the current entity, if possible.
| ControllerState | ||
revertHandler(event:CloseEvent):void
| ControllerState | ||
revertSelection():void
Revert all selected items to previously saved state, via a dialog box.
| ControllerState | ||
selectNode(way:Way, index:int):void
| SelectedWayNode | ||
setSourceTag():void
Create an action to add "source= tag to current entity based on background imagery.
| ControllerState | ||
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 | ||
Default behaviour for the current state that should be called if state-specific action has been taken care of or ruled out.
| ControllerState |
selectedNode | property |
selectedWay | property |
SelectedWayNode | () | constructor |
clearSelection | () | method |
deleteNode | () | method |
enterState | () | method |
public override function enterState():void
exitState | () | method |
public override function exitState(newState:ControllerState):void
Parameters
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.
ReturnsControllerState |
processKeyboardEvent | () | method |
public override function processKeyboardEvent(event:KeyboardEvent):ControllerState
Parameters
event:KeyboardEvent |
ControllerState |
processMouseEvent | () | method |
public override function processMouseEvent(event:MouseEvent, entity:Entity):ControllerState
Parameters
event:MouseEvent |
|
entity:Entity |
ControllerState |
removeNode | () | method |
selectNode | () | method |
selectOrEdit | () | method |
public static function selectOrEdit(selectedWay:Way, index:int):ControllerState
Parameters
selectedWay:Way |
|
index:int |
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.
ReturnsControllerState |
stepNode | () | method |
public function stepNode(delta:int):ControllerState
Move the selection one node further up or down this way, looping if necessary.
Parametersdelta:int |
ControllerState |
toString | () | method |
public override function toString():String
Returns
String |
unjoin | () | method |