FreeHEP API
Version v1.2.2

org.freehep.swing.undo
Class AnimatedEdit

java.lang.Object
  |
  +--javax.swing.undo.AbstractUndoableEdit
        |
        +--org.freehep.swing.undo.AbstractDoableEdit
              |
              +--org.freehep.swing.undo.AnimatedEdit
All Implemented Interfaces:
DoableEdit, LinkableEdit, Serializable, UndoableEdit

public abstract class AnimatedEdit
extends AbstractDoableEdit
implements LinkableEdit

Extension of DoableEdit which allows the Edit to animate a shape before doing the redoCommand or undoCommand. Subclasses of this class should override redoCommand() and undoCommand().

Version:
$Id: AnimatedEdit.java,v 1.1 2003/06/10 18:26:15 duns Exp $
Author:
Mark Donszelmann
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.freehep.swing.undo.AbstractDoableEdit
firstTimeDone
 
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
 
Constructor Summary
AnimatedEdit(int frames)
           
 
Method Summary
 Shape createTransformedShape(Shape shape)
           
protected abstract  void endAnimation()
           
 LinkableEdit getNextEdit()
           
 LinkableEdit getParent()
           
 LinkableEdit getPreviousEdit()
           
 void redo()
           
protected abstract  void redoEdit()
           
 void setNextEdit(LinkableEdit edit)
           
 void setParent(LinkableEdit parent)
           
 void setPreviousEdit(LinkableEdit edit)
           
protected abstract  void showAnimation(int frameNo)
           
protected abstract  void startAnimation(boolean redo)
           
 String toString()
           
 void undo()
           
protected abstract  void undoEdit()
           
 
Methods inherited from class org.freehep.swing.undo.AbstractDoableEdit
canRedo, canUndo
 
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
addEdit, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, 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
addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit
 

Constructor Detail

AnimatedEdit

public AnimatedEdit(int frames)
Method Detail

getParent

public LinkableEdit getParent()
Specified by:
getParent in interface LinkableEdit

setParent

public void setParent(LinkableEdit parent)
Specified by:
setParent in interface LinkableEdit

getNextEdit

public LinkableEdit getNextEdit()
Specified by:
getNextEdit in interface LinkableEdit

getPreviousEdit

public LinkableEdit getPreviousEdit()
Specified by:
getPreviousEdit in interface LinkableEdit

setNextEdit

public void setNextEdit(LinkableEdit edit)
Specified by:
setNextEdit in interface LinkableEdit

setPreviousEdit

public void setPreviousEdit(LinkableEdit edit)
Specified by:
setPreviousEdit in interface LinkableEdit

redo

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

undo

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

toString

public String toString()
Overrides:
toString in class AbstractUndoableEdit

redoEdit

protected abstract void redoEdit()

undoEdit

protected abstract void undoEdit()

startAnimation

protected abstract void startAnimation(boolean redo)

showAnimation

protected abstract void showAnimation(int frameNo)

endAnimation

protected abstract void endAnimation()

createTransformedShape

public Shape createTransformedShape(Shape shape)

FreeHEP API
Version v1.2.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.