com.cra.bnet.engine
Class BayesianNetwork.AddNodeEdit

java.lang.Object
  |
  +--javax.swing.undo.AbstractUndoableEdit
        |
        +--com.cra.bnet.engine.BayesianNetwork.AddNodeEdit
All Implemented Interfaces:
Serializable, UndoableEdit
Enclosing class:
BayesianNetwork

public class BayesianNetwork.AddNodeEdit
extends AbstractUndoableEdit

Undoable edit for adding a node.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
 
Method Summary
 String getPresentationName()
           
 void redo()
           
 void setLocation(Point location)
           
 void undo()
           
 
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
addEdit, canRedo, canUndo, die, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

setLocation

public void setLocation(Point location)

getPresentationName

public String getPresentationName()
Specified by:
getPresentationName in interface UndoableEdit
Overrides:
getPresentationName in class AbstractUndoableEdit

undo

public void undo()
          throws CannotUndoException
Specified by:
undo in interface UndoableEdit
Overrides:
undo in class AbstractUndoableEdit
CannotUndoException

redo

public void redo()
          throws CannotRedoException
Specified by:
redo in interface UndoableEdit
Overrides:
redo in class AbstractUndoableEdit
CannotRedoException