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
AnimatedEdit
public AnimatedEdit(int frames)
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)
Copyright © 2000-2003 FreeHEP, All Rights Reserved.