Package | net.systemeD.potlatch2.controller |
Class | public class DragBackground |
Inheritance | DragBackground ControllerState |
Method | Defined by | ||
---|---|---|---|
DragBackground(event:MouseEvent)
Start the drag by recording the location of the mouse.
| DragBackground | ||
addToSelection(items:Array):void
| ControllerState | ||
enterState():void
Prevent map panning while background is being dragged.
| DragBackground | ||
exitState(newState:ControllerState):void
Re-allow map panning.
| DragBackground | ||
[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
When triggered by a keypress, perform an action on the given entity, then move to a new state.
| ControllerState | ||
Respond to dragging and end drag.
| DragBackground | ||
removeFromSelection(items:Array):void
| ControllerState | ||
setController(controller:EditController):void
| ControllerState | ||
setPreviousState(previousState:ControllerState):void
| ControllerState | ||
toggleSelection(item:Entity):Boolean
| ControllerState | ||
toString():String
"DragBackground"
| DragBackground |
DragBackground | () | constructor |
public function DragBackground(event:MouseEvent)
Start the drag by recording the location of the mouse.
Parametersevent:MouseEvent |
enterState | () | method |
public override function enterState():void
Prevent map panning while background is being dragged.
exitState | () | method |
public override function exitState(newState:ControllerState):void
Re-allow map panning.
ParametersnewState:ControllerState |
processMouseEvent | () | method |
public override function processMouseEvent(event:MouseEvent, entity:Entity):ControllerState
Respond to dragging and end drag.
Parametersevent:MouseEvent |
|
entity:Entity |
ControllerState |
toString | () | method |
public override function toString():String
"DragBackground"
ReturnsString |