BioLegato 0.5.8

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

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

public class UndoInsert
extends java.lang.Object
implements Undoable

This object is used to undo an insertion of text to a SeqDoc object.

Author:
Graham Alvare, Brian Fristensky

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

Constructor Detail

UndoInsert

public UndoInsert(SeqDoc data,
                  int offset,
                  int length)
Creates a new UndoInsert object for undoing text insertions.

Parameters:
data - the document to attach the object to.
offset - the offset of the insertion.
length - the length of text inserted.
Method Detail

undo

public Undoable undo()
Undoes the text insertion.

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

BioLegato 0.5.8

Copyright © 2008-2009 University of Manitoba.