pl.edu.agh.cast.schema.command
Class SetLayoutCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by pl.edu.agh.cast.schema.command.SetLayoutCommand

public class SetLayoutCommand
extends org.eclipse.gef.commands.Command

Command positioning given elements according to injected algorithm strategy. While this command's execute() method is run, Nodes' location property change events are NOT fired. GUI has to be manually refreshed!

Author:
awos

Constructor Summary
SetLayoutCommand(ILayoutAlgorithm algorithm, java.util.Collection<pl.edu.agh.cast.model.visual.Node> nodesToLayout, java.lang.String label)
           
 
Method Summary
 void execute()
           
 void redo()
           
 void undo()
           
 
Methods inherited from class org.eclipse.gef.commands.Command
canExecute, canUndo, chain, dispose, getDebugLabel, getLabel, setDebugLabel, setLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetLayoutCommand

public SetLayoutCommand(ILayoutAlgorithm algorithm,
                        java.util.Collection<pl.edu.agh.cast.model.visual.Node> nodesToLayout,
                        java.lang.String label)
Method Detail

execute

public void execute()
Overrides:
execute in class org.eclipse.gef.commands.Command

undo

public void undo()
Overrides:
undo in class org.eclipse.gef.commands.Command

redo

public void redo()
Overrides:
redo in class org.eclipse.gef.commands.Command


Copyright © 2007-2008 AGH University of Science and Technology. All Rights Reserved.