|
||||||||||
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
hep.wired.edit.WiredEdit
hep.wired.edit.AnimatedWiredEdit
public abstract class AnimatedWiredEdit
Base class for an animated single edit. This class contains a shape to be animated in a certain number of frames, and handles the animation.
Field Summary |
---|
Fields inherited from class hep.wired.edit.WiredEdit |
---|
format |
Fields inherited from class org.freehep.swing.undo.AbstractDoableEdit |
---|
firstTimeDone |
Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
---|
RedoName, UndoName |
Constructor Summary | |
---|---|
AnimatedWiredEdit()
Creates an animated edit with zero frames and no shape. |
|
AnimatedWiredEdit(Shape initialShape,
int frames)
Creates an animated edit with given initial shape and number of frames. |
Method Summary | |
---|---|
protected void |
endAnimation()
Ends the animation by removing the last drawn shape from the plot and changing the plot to normal mode again. |
protected Shape |
getShape()
Returns the initial shape. |
protected Shape[] |
getShapes(Shape initialShape,
int frames)
Returns an array of 'frames' shapes deformed from the given initial shape. |
protected void |
showAnimation(int frameNo)
Shows frameNo in the plot by drawing its shape. |
protected void |
startAnimation(boolean redo)
Starts the animation by calling getShapes() to get the set of 'framed' shapes. |
String |
toString()
Returns a string representation of the edit. |
Methods inherited from class hep.wired.edit.WiredEdit |
---|
copy, getID, getRecordPlot, setRecordPlot |
Methods inherited from class org.freehep.swing.undo.AnimatedEdit |
---|
createTransformedShape, getFrames, getNextEdit, getParent, getPreviousEdit, redo, redoEdit, setNextEdit, setParent, setPreviousEdit, undo, 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 |
---|
public AnimatedWiredEdit()
public AnimatedWiredEdit(Shape initialShape, int frames)
Method Detail |
---|
protected Shape getShape()
protected Shape[] getShapes(Shape initialShape, int frames)
protected void startAnimation(boolean redo)
startAnimation
in class WiredEdit
protected void showAnimation(int frameNo)
showAnimation
in class WiredEdit
protected void endAnimation()
endAnimation
in class WiredEdit
public String toString()
toString
in class WiredEdit
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |