|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.undo.AbstractUndoableEdit
org.freehep.swing.undo.AbstractDoableEdit
org.freehep.swing.undo.AnimatedEdit
public abstract class AnimatedEdit
Extension of DoableEdit which allows the Edit to animate a shape before doing the redoEdit or undoEdit. Subclasses of this class should override redoEdit() and undoEdit().
| Constructor Summary | |
|---|---|
AnimatedEdit(int frames)
Creates an animated edit with given number of frames. |
|
| Method Summary | |
|---|---|
Shape |
createTransformedShape(Component component,
Shape shape)
Returns a transformed shape, from the given shape and component. |
int |
getFrames()
Returns number of frames. |
LinkableEdit |
getNextEdit()
Returns the next edit. |
LinkableEdit |
getParent()
Returns the parent. |
LinkableEdit |
getPreviousEdit()
Returns the previous edit. |
void |
redo()
Called when the edit is (re)done. |
void |
setNextEdit(LinkableEdit edit)
Connects to the next edit. |
void |
setParent(LinkableEdit parent)
Sets the parent, can only be called once. |
void |
setPreviousEdit(LinkableEdit edit)
Connext to the previous edit. |
String |
toString()
|
void |
undo()
Called when the edit is undone. |
| 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 |
|---|
equals, 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 |
|---|
public AnimatedEdit(int frames)
| Method Detail |
|---|
public LinkableEdit getParent()
LinkableEdit
getParent in interface LinkableEditpublic void setParent(LinkableEdit parent)
LinkableEdit
setParent in interface LinkableEditpublic LinkableEdit getNextEdit()
LinkableEdit
getNextEdit in interface LinkableEditpublic LinkableEdit getPreviousEdit()
LinkableEdit
getPreviousEdit in interface LinkableEditpublic void setNextEdit(LinkableEdit edit)
LinkableEdit
setNextEdit in interface LinkableEditpublic void setPreviousEdit(LinkableEdit edit)
LinkableEdit
setPreviousEdit in interface LinkableEdit
public void redo()
throws CannotRedoException
redo in interface UndoableEditredo in class AbstractDoableEditCannotRedoException
public void undo()
throws CannotUndoException
undo in interface UndoableEditundo in class AbstractUndoableEditCannotUndoExceptionpublic int getFrames()
public String toString()
toString in class AbstractUndoableEdit
public Shape createTransformedShape(Component component,
Shape shape)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||