Package | net.systemeD.potlatch2.controller |
Class | public class SelectedWay |
Inheritance | SelectedWay ControllerState |
Subclasses | DrawWay, SelectedParallelWay |
Property | Defined by | ||
---|---|---|---|
controller : EditController | ControllerState | ||
initWay : Way
The selected way itself.
| SelectedWay | ||
previousState : ControllerState | ControllerState | ||
_selection : Array | ControllerState |
Method | Defined by | ||
---|---|---|---|
| SelectedWay | ||
addToSelection(items:Array):void
| ControllerState | ||
Perform deletion of currently selected way.
| SelectedWay | ||
enterState():void
Officially enter this state by marking the previously nominated way as selected.
| SelectedWay | ||
exitState(newState:ControllerState):void
Officially leave the state, remembering the current way's tags for future repeats.
| SelectedWay | ||
[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 | ||
processKeyboardEvent(event:KeyboardEvent):ControllerState
Behaviour includes: parallel way, repeat tags, reverse direction, simplify, cycle way selection, delete
| SelectedWay | ||
Behaviour includes: start drawing a new way, insert a node within this way, select an additional way
| SelectedWay | ||
removeFromSelection(items:Array):void
| ControllerState | ||
setController(controller:EditController):void
| ControllerState | ||
setPreviousState(previousState:ControllerState):void
| ControllerState | ||
toggleSelection(item:Entity):Boolean
| ControllerState | ||
toString():String
| SelectedWay |
Method | Defined by | ||
---|---|---|---|
clearSelection(newState:ControllerState):void
Tidy up UI as we transition to a new state without the current selection.
| SelectedWay | ||
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 | ||
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 |
initWay | property |
protected var initWay:Way
The selected way itself.
SelectedWay | () | constructor |
public function SelectedWay(way:Way, layer:MapPaint = null, point:Point = null, ways:Array = null, index:int = 0)
Parameters
way:Way — The way that is now selected.
|
|
layer:MapPaint (default = null ) — The location that was clicked.
|
|
point:Point (default = null ) — An ordered list of ways sharing a node, to make "way cycling" work. |
|
ways:Array (default = null )
|
|
index:int (default = 0 )
|
clearSelection | () | method |
protected function clearSelection(newState:ControllerState):void
Tidy up UI as we transition to a new state without the current selection.
ParametersnewState:ControllerState |
deleteWay | () | method |
public function deleteWay():ControllerState
Perform deletion of currently selected way.
ReturnsControllerState |
enterState | () | method |
public override function enterState():void
Officially enter this state by marking the previously nominated way as selected.
exitState | () | method |
public override function exitState(newState:ControllerState):void
Officially leave the state, remembering the current way's tags for future repeats.
ParametersnewState:ControllerState |
processKeyboardEvent | () | method |
public override function processKeyboardEvent(event:KeyboardEvent):ControllerState
Behaviour includes: parallel way, repeat tags, reverse direction, simplify, cycle way selection, delete
Parametersevent:KeyboardEvent |
ControllerState |
processMouseEvent | () | method |
public override function processMouseEvent(event:MouseEvent, entity:Entity):ControllerState
Behaviour includes: start drawing a new way, insert a node within this way, select an additional way
Parametersevent:MouseEvent |
|
entity:Entity |
ControllerState |
toString | () | method |
public override function toString():String
Returns
String — "SelectedWay" |