hep.wired.edit
Class WiredCompoundEdit

java.lang.Object
  extended by javax.swing.undo.AbstractUndoableEdit
      extended by javax.swing.undo.CompoundEdit
          extended by org.freehep.swing.undo.AnimatedCompoundEdit
              extended by hep.wired.edit.WiredCompoundEdit
All Implemented Interfaces:
Edit, WiredRegistry.ID, Serializable, UndoableEdit, org.freehep.swing.undo.DoableEdit, org.freehep.swing.undo.LinkableEdit
Direct Known Subclasses:
FitToWindow

public class WiredCompoundEdit
extends org.freehep.swing.undo.AnimatedCompoundEdit
implements Edit

Class for a compound edit. A compound edit contains a series of edits (which may be compound edits as well). This class keeps a reference to the plot when the edit is posted to the plot.

Version:
$Id: WiredCompoundEdit.java 8598 2006-08-14 20:38:02Z duns $
Author:
Mark Donszelmann
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.undo.CompoundEdit
edits
 
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
 
Constructor Summary
WiredCompoundEdit(String name)
          Creates an empty composite edit with given name.
 
Method Summary
 WiredCompoundEdit copy(RecordPlot plot)
          Creates a copy of the compound edit and its contained edits.
 String getID()
           
protected  RecordPlot getRecordPlot()
          Returns the record plot to which this edit was sent.
 void setRecordPlot(RecordPlot recordPlot)
          To be called as part of the copy procedure to set the recordPlot variable.
 String toString()
           
 
Methods inherited from class org.freehep.swing.undo.AnimatedCompoundEdit
addEdit, addEdit, canRedo, canUndo, die, end, getFirstEdit, getLastEdit, getName, getNextEdit, getParent, getPresentationName, getPreviousEdit, getRedoPresentationName, getUndoPresentationName, isInProgress, isSignificant, lastEdit, redo, setNextEdit, setParent, setPreviousEdit, undo
 
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
replaceEdit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.swing.undo.UndoableEdit
replaceEdit
 

Constructor Detail

WiredCompoundEdit

public WiredCompoundEdit(String name)
Creates an empty composite edit with given name.

Method Detail

getID

public String getID()
Specified by:
getID in interface WiredRegistry.ID

getRecordPlot

protected RecordPlot getRecordPlot()
Returns the record plot to which this edit was sent. Returns null if the edit was not (yet) sent to a plot.


setRecordPlot

public void setRecordPlot(RecordPlot recordPlot)
To be called as part of the copy procedure to set the recordPlot variable.


copy

public WiredCompoundEdit copy(RecordPlot plot)
Creates a copy of the compound edit and its contained edits. This copy method calls setRecordPlot() on each of them to initialize the recordPlot variable(s).


toString

public String toString()
Overrides:
toString in class org.freehep.swing.undo.AnimatedCompoundEdit


Copyright © 1996-2013 FreeHEP. All Rights Reserved.