venice
Class MoveRelationshipsUpCommand

java.lang.Object
  |
  +--venice.Command
        |
        +--venice.MoveRelationshipsUpCommand

public class MoveRelationshipsUpCommand
extends Command

Moves relationships up for all selected nodes.

Author:
Petteri Kamppuri

Field Summary
private  ModelStorage mModel
          Private variable to hold the ModelStorage instance that is needed in various places in the recursive action of this object.
private  Visualization mVisualization
          Private variable to hold the Visualization instance that is needed in various places in the recursive action of this object.
 
Fields inherited from class venice.Command
stAppModule
 
Constructor Summary
MoveRelationshipsUpCommand()
           
 
Method Summary
 void execute()
           for each child as myChild for each relationship of myChild and its children as myRel if not (myRel.src isDescentOf getParent() and myRel.dst isDescentOf getParent()) myRel.hide getParent().addToCompositeRelationship(myRel with dst or src moved to parent)
 
Methods inherited from class venice.Command
getAppModule, setAppModule
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

mModel

private ModelStorage mModel
Private variable to hold the ModelStorage instance that is needed in various places in the recursive action of this object.

mVisualization

private Visualization mVisualization
Private variable to hold the Visualization instance that is needed in various places in the recursive action of this object.
Constructor Detail

MoveRelationshipsUpCommand

public MoveRelationshipsUpCommand()
Method Detail

execute

public void execute()
 for each child as myChild
        for each relationship of myChild and its children as myRel
                if not (myRel.src isDescentOf getParent() and myRel.dst isDescentOf getParent())
                        myRel.hide
                        getParent().addToCompositeRelationship(myRel with dst or src moved to parent)
 
Overrides:
execute in class Command