com.partnersoft.v3x.apps.Redliner
Class RedlineNodeCommands

java.lang.Object
  extended by com.partnersoft.v3x.apps.Redliner.RedlineNodeCommands

public class RedlineNodeCommands
extends java.lang.Object

A factory for RedlineNodeCommands. Encapsulates the interactive logic of manipulation of RedlineNodes.


Constructor Summary
RedlineNodeCommands()
           
 
Method Summary
static Command createAddNodeCommand(java.util.Set redlineBag, RedlineNode parent, Coord3D coords, java.lang.String linetypeName)
          Returns a command object that, when invoked, adds a new node to the given bag at the given point with the given parent.
static Command createDeleteNodeCommand(java.util.Set redlineBag, RedlineNode victim)
          Returns a command object that, when invoked, deletes the indicated RedlineNode from a set.
static Command createMoveNodeCommand(RedlineNode victim, Coord3D newCoord)
          Returns a command object that, when invoked, moves the indicated RedlineNode to a new coordinate.
static Command createReparentNodeCommand(RedlineNode victim, RedlineNode newParent)
          Returns a command object that, when invoked, changes a RedlineNode's parent to another specified RedlineNode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RedlineNodeCommands

public RedlineNodeCommands()
Method Detail

createAddNodeCommand

public static Command createAddNodeCommand(java.util.Set redlineBag,
                                           RedlineNode parent,
                                           Coord3D coords,
                                           java.lang.String linetypeName)
Returns a command object that, when invoked, adds a new node to the given bag at the given point with the given parent.


createReparentNodeCommand

public static Command createReparentNodeCommand(RedlineNode victim,
                                                RedlineNode newParent)
Returns a command object that, when invoked, changes a RedlineNode's parent to another specified RedlineNode.


createDeleteNodeCommand

public static Command createDeleteNodeCommand(java.util.Set redlineBag,
                                              RedlineNode victim)
Returns a command object that, when invoked, deletes the indicated RedlineNode from a set.


createMoveNodeCommand

public static Command createMoveNodeCommand(RedlineNode victim,
                                            Coord3D newCoord)
Returns a command object that, when invoked, moves the indicated RedlineNode to a new coordinate.