|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.undo.AbstractUndoableEdit org.freehep.swing.undo.AbstractDoableEdit org.freehep.swing.undo.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().
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)
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. |
protected abstract void |
endAnimation()
Ends the animation. |
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. |
protected abstract void |
redoEdit()
(Re)does the edit. |
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. |
protected abstract void |
showAnimation(int frameNo)
Show frameNo of animation. |
protected abstract void |
startAnimation(boolean redo)
Starts the animation for redo or undo. |
String |
toString()
|
void |
undo()
Called when the edit is undone. |
protected abstract void |
undoEdit()
Undoes the edit. |
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 |
public AnimatedEdit(int frames)
Method Detail |
public LinkableEdit getParent()
LinkableEdit
getParent
in interface LinkableEdit
public void setParent(LinkableEdit parent)
LinkableEdit
setParent
in interface LinkableEdit
public LinkableEdit getNextEdit()
LinkableEdit
getNextEdit
in interface LinkableEdit
public LinkableEdit getPreviousEdit()
LinkableEdit
getPreviousEdit
in interface LinkableEdit
public void setNextEdit(LinkableEdit edit)
LinkableEdit
setNextEdit
in interface LinkableEdit
public void setPreviousEdit(LinkableEdit edit)
LinkableEdit
setPreviousEdit
in interface LinkableEdit
public void redo() throws CannotRedoException
redo
in interface UndoableEdit
redo
in class AbstractDoableEdit
CannotRedoException
public void undo() throws CannotUndoException
undo
in interface UndoableEdit
CannotUndoException
public int getFrames()
public String toString()
protected abstract void redoEdit()
protected abstract void undoEdit()
protected abstract void startAnimation(boolean redo)
protected abstract void showAnimation(int frameNo)
protected abstract void endAnimation()
public Shape createTransformedShape(Component component, Shape shape)
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |