BioLegato 0.7.3 GDE plugin

org.biolegato.gdesupport.canvas.undo
Class UndoMulti

java.lang.Object
  extended by org.biolegato.gdesupport.canvas.undo.UndoMulti
All Implemented Interfaces:
Undoable

public class UndoMulti
extends java.lang.Object
implements Undoable

This object contains a linked list of related undoable objects. This is used to amalgomate undoable objects together to provide undo support for complex operations.

Author:
Graham Alvare, Brian Fristensky

Constructor Summary
UndoMulti()
          Creates a new instance of UndoMulti
UndoMulti(java.util.List<Undoable> list)
          Creates a new instance of UndoMulti from a linked list
 
Method Summary
 void addUndo(Undoable object)
          Adds an undoable to the undo multi
 boolean isEmpty()
          Checks if the undo multi contains any undoable objects
 Undoable undo()
          Undoes a multitude of undoable objects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UndoMulti

public UndoMulti()
Creates a new instance of UndoMulti


UndoMulti

public UndoMulti(java.util.List<Undoable> list)
Creates a new instance of UndoMulti from a linked list

Parameters:
list - the list to create the UndoMulti from.
Method Detail

addUndo

public void addUndo(Undoable object)
Adds an undoable to the undo multi

Parameters:
object - the undoable object to add.

undo

public Undoable undo()
Undoes a multitude of undoable objects

Specified by:
undo in interface Undoable
Returns:
an object which can redo the undone operation.

isEmpty

public boolean isEmpty()
Checks if the undo multi contains any undoable objects

Returns:
true if the undo multi list contains any undoable objects

BioLegato 0.7.3 GDE plugin

Copyright © 2008-2010 University of Manitoba.