uk.ac.kcl.cch.jb.pliny.commands
Class MinMaxBaseCommand
java.lang.Object
org.eclipse.gef.commands.Command
uk.ac.kcl.cch.jb.pliny.commands.MinMaxBaseCommand
- Direct Known Subclasses:
- MinimizeAllContainedObjectCommand, MinMaxSelectedItemsCommand
- public class MinMaxBaseCommand
- extends org.eclipse.gef.commands.Command
provides a common code base for commands to minimise or maximise
a group of LinkableObjects.
- Author:
- John Bradley
- See Also:
MinimizeAllContainedObjectCommand
,
MinMaxSelectedItemsCommand
Method Summary |
void |
execute()
|
void |
redo()
|
protected void |
setList(Vector list)
provides the list of LinkableObjects for which the
mass minimization/expansion is to be applied. |
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 |
MinMaxBaseCommand
public MinMaxBaseCommand()
MinMaxBaseCommand
public MinMaxBaseCommand(String label)
MinMaxBaseCommand
public MinMaxBaseCommand(boolean setToOpen)
setList
protected void setList(Vector list)
- provides the list of LinkableObjects for which the
mass minimization/expansion is to be applied.
- Parameters:
list
- items to be used by this command.
execute
public void execute()
undo
public void undo()
redo
public void redo()