info.bioinfweb.treegraph.document.undo
Class DocumentEdit

java.lang.Object
  extended by info.bioinfweb.treegraph.document.undo.DocumentEdit
All Implemented Interfaces:
javax.swing.undo.UndoableEdit
Direct Known Subclasses:
ApplyNameTableEdit, AutoPositionLabelsEdit, BranchLengthEdit, ChangeLabelIDEdit, ComplexDocumentEdit, DeleteEdit, EditNodeBranchDataEdit, GlobalFormatsEdit, ImportTableEdit, InsertLabelsEdit, InsertRemoveLabelEdit, InsertRemoveLegendEdit, InsertSiblingEdit, MoveSubtreeEdit, NodeBranchDataEdit, NodeBranchDataFormatEdit, OperatorsEdit, PasteAllLabelsEdit, PasteLabelEdit, PasteLegendEdit, PasteSubtreeEdit, ReanchorLegendEdit, RenameDataIDEdit, SaveLegendsEdit, ScaleBranchLengthsEdit, ScaleDistanceValuesEdit, SeparateBranchEdit, TextElementEdit

public abstract class DocumentEdit
extends java.lang.Object
implements javax.swing.undo.UndoableEdit


Field Summary
protected  Document document
           
 
Constructor Summary
DocumentEdit(Document document)
           
 
Method Summary
 boolean addEdit(javax.swing.undo.UndoableEdit arg0)
           
 boolean canRedo()
           
 boolean canUndo()
           
 void die()
           
 java.lang.String getRedoPresentationName()
           
 java.lang.String getUndoPresentationName()
           
 boolean isSignificant()
           
 void redo()
           
 boolean replaceEdit(javax.swing.undo.UndoableEdit arg0)
           
 void undo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.undo.UndoableEdit
getPresentationName
 

Field Detail

document

protected Document document
Constructor Detail

DocumentEdit

public DocumentEdit(Document document)
Method Detail

addEdit

public boolean addEdit(javax.swing.undo.UndoableEdit arg0)
Specified by:
addEdit in interface javax.swing.undo.UndoableEdit

canRedo

public boolean canRedo()
Specified by:
canRedo in interface javax.swing.undo.UndoableEdit

canUndo

public boolean canUndo()
Specified by:
canUndo in interface javax.swing.undo.UndoableEdit

die

public void die()
Specified by:
die in interface javax.swing.undo.UndoableEdit

getRedoPresentationName

public java.lang.String getRedoPresentationName()
Specified by:
getRedoPresentationName in interface javax.swing.undo.UndoableEdit

getUndoPresentationName

public java.lang.String getUndoPresentationName()
Specified by:
getUndoPresentationName in interface javax.swing.undo.UndoableEdit

isSignificant

public boolean isSignificant()
Specified by:
isSignificant in interface javax.swing.undo.UndoableEdit

replaceEdit

public boolean replaceEdit(javax.swing.undo.UndoableEdit arg0)
Specified by:
replaceEdit in interface javax.swing.undo.UndoableEdit

redo

public void redo()
          throws javax.swing.undo.CannotRedoException
Specified by:
redo in interface javax.swing.undo.UndoableEdit
Throws:
javax.swing.undo.CannotRedoException

undo

public void undo()
          throws javax.swing.undo.CannotUndoException
Specified by:
undo in interface javax.swing.undo.UndoableEdit
Throws:
javax.swing.undo.CannotUndoException