Package | net.systemeD.potlatch2.controller |
Class | public class DrawWay |
Inheritance | DrawWay SelectedWay ControllerState |
Method | Defined by | ||
---|---|---|---|
DrawWay | |||
addToSelection(items:Array):void
| ControllerState | ||
createAndAddNode(event:MouseEvent, performAction:Function):Node
| DrawWay | ||
Perform deletion of currently selected way.
| SelectedWay | ||
enterState():void
| DrawWay | ||
exitState(newState:ControllerState):void
| DrawWay | ||
[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
| DrawWay | ||
DrawWay | |||
removeFromSelection(items:Array):void
| ControllerState | ||
setController(controller:EditController):void
| ControllerState | ||
setPreviousState(previousState:ControllerState):void
| ControllerState | ||
toggleSelection(item:Entity):Boolean
| ControllerState | ||
toString():String
| DrawWay |
Method | Defined by | ||
---|---|---|---|
appendNode(node:Node, performAction:Function):void
| DrawWay | ||
backspaceNode(performAction:Function):ControllerState
| DrawWay | ||
clearSelection(newState:ControllerState):void
Tidy up UI as we transition to a new state without the current selection.
| SelectedWay | ||
followWay():void
Extends the current way by "following" an existing way, after the user has already selected two nodes in a row.
| DrawWay | ||
getMapPaint(d:DisplayObject):MapPaint
Find the MapPaint object that this DisplayObject belongs to.
| ControllerState | ||
ControllerState | |||
DrawWay | |||
repeatTags(object:Entity):void
Create a "repeat tags" action on the current entity, if possible.
| ControllerState | ||
resetElastic(node:Node):void
| DrawWay | ||
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 | ||
DrawWay |
DrawWay | () | constructor |
public function DrawWay(way:Way, editEnd:Boolean, leaveNodeSelected:Boolean)
Parameters
way:Way |
|
editEnd:Boolean |
|
leaveNodeSelected:Boolean |
appendNode | () | method |
protected function appendNode(node:Node, performAction:Function):void
Parameters
node:Node |
|
performAction:Function |
backspaceNode | () | method |
protected function backspaceNode(performAction:Function):ControllerState
Parameters
performAction:Function |
ControllerState |
createAndAddNode | () | method |
public function createAndAddNode(event:MouseEvent, performAction:Function):Node
Parameters
event:MouseEvent |
|
performAction:Function |
Node |
enterState | () | method |
public override function enterState():void
exitState | () | method |
public override function exitState(newState:ControllerState):void
Parameters
newState:ControllerState |
followWay | () | method |
protected function followWay():void
Extends the current way by "following" an existing way, after the user has already selected two nodes in a row. If drawing way has at least two nodes, and both belong to another way, and those ways are the same, then find the next node, add that node, update screen and scroll the new node into shot if necessary. TODO: add a bit of feedback (FloatingAlert?) when following can't be carried out for some reason.
keyExitDrawing | () | method |
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 |
resetElastic | () | method |
stopDrawing | () | method |
toString | () | method |
public override function toString():String
Returns
String |