BioLegato 0.5.7

org.biolegato.core.data.seqdoc.undo
Class UndoDelete

java.lang.Object
  extended by org.biolegato.core.data.seqdoc.undo.UndoDelete
All Implemented Interfaces:
Undoable

public class UndoDelete
extends java.lang.Object
implements Undoable

This object is used to undo a deletion of text to a SeqDoc object.

Author:
Graham Alvare, Brian Fristensky

Constructor Summary
UndoDelete(SeqDoc data, int lineNumber, int offset, java.lang.String text)
          Creates a new UndoDelete object for undoing text deletions.
 
Method Summary
 Undoable undo()
          Undoes the text deletion.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UndoDelete

public UndoDelete(SeqDoc data,
                  int lineNumber,
                  int offset,
                  java.lang.String text)
Creates a new UndoDelete object for undoing text deletions.

Parameters:
data - the document to attach the object to.
offset - the offset of the deletion.
text - the text deleted.
Method Detail

undo

public Undoable undo()
Undoes the text deletion.

Specified by:
undo in interface Undoable
Returns:
an redo event for the text deletion.

BioLegato 0.5.7

Copyright © 2008-2009 University of Manitoba.