Packagenet.systemeD.halcyon.connection.actions
Classpublic class ReplaceNodeAction
InheritanceReplaceNodeAction Inheritance CompositeUndoableAction Inheritance UndoableAction

Action that substitutes one node instead of another, in all the ways and relations that that node is part of.



Public Properties
 PropertyDefined by
 Inheritedname : String
CompositeUndoableAction
Public Methods
 MethodDefined by
  
ReplaceNodeAction(node:Node, replacement:Node)
ReplaceNodeAction
 Inherited
clearActions():void
Clear the list of actions
CompositeUndoableAction
  
doAction():uint
ReplaceNodeAction
 Inherited
mergePrevious(previous:UndoableAction):Boolean
Can this action be merged with the previous action? This is sometimes wanted, such as when moving nodes around.
UndoableAction
 Inherited
push(action:UndoableAction):void
Add an action to the list of actions that make up this CompositeUndoableAction
CompositeUndoableAction
 Inherited
toString():String
Returns the name of this composite action, along with the (recursive) description of all the sub actions
CompositeUndoableAction
  
undoAction():uint
ReplaceNodeAction
 Inherited
undoFrom(index:int):void
Undo the actions from a given index.
CompositeUndoableAction
Public Constants
 ConstantDefined by
 InheritedFAIL : uint = 0
[static] Something went wrong while attempting the action
UndoableAction
 InheritedNO_CHANGE : uint = 2
[static] No entity was altered by this action
UndoableAction
 InheritedSUCCESS : uint = 1
[static] The action worked, and entities were changed
UndoableAction
Constructor detail
ReplaceNodeAction()constructor
public function ReplaceNodeAction(node:Node, replacement:Node)

Parameters
node:Node — The node we're getting rid of
 
replacement:Node — The node we want to end up with
Method detail
doAction()method
public override function doAction():uint

Returns
uint
undoAction()method 
public override function undoAction():uint

Returns
uint