uk.ac.kcl.cch.jb.pliny.commands
Class MinMaxSelectedItemsCommand

java.lang.Object
  extended byorg.eclipse.gef.commands.Command
      extended byuk.ac.kcl.cch.jb.pliny.commands.MinMaxBaseCommand
          extended byuk.ac.kcl.cch.jb.pliny.commands.MinMaxSelectedItemsCommand

public class MinMaxSelectedItemsCommand
extends MinMaxBaseCommand

extends MinMaxBaseCommand to provide a command to take the set of LinkableObjects provided and either minimize them or expand them all.

Author:
John Bradley

Constructor Summary
MinMaxSelectedItemsCommand(Vector items, boolean setToOpen)
          creates an instance of this command, and gives it the list of LinkableObjects it is to work with, and an indication of whether it needs to expand or minimize them.
 
Methods inherited from class uk.ac.kcl.cch.jb.pliny.commands.MinMaxBaseCommand
execute, redo, setList, 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

MinMaxSelectedItemsCommand

public MinMaxSelectedItemsCommand(Vector items,
                                  boolean setToOpen)
creates an instance of this command, and gives it the list of LinkableObjects it is to work with, and an indication of whether it needs to expand or minimize them. This command assumes the list contains only LinkableObjects.

Parameters:
items - a collection of LinkableObjects to work with.
setToOpen - if true expand them, if false minimise them.