public abstract class AnimatedWiredEdit extends WiredEdit
RedoName, UndoName| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
copy, getID, getRecordPlot, setRecordPlotcreateTransformedShape, getFrames, getNextEdit, getParent, getPreviousEdit, redo, redoEdit, setNextEdit, setParent, setPreviousEdit, undo, undoEditaddEdit, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEditclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEditpublic AnimatedWiredEdit()
public AnimatedWiredEdit(Shape initialShape, int frames)
protected Shape getShape()
protected Shape[] getShapes(Shape initialShape, int frames)
protected void startAnimation(boolean redo)
startAnimation in class WiredEditprotected void showAnimation(int frameNo)
showAnimation in class WiredEditprotected void endAnimation()
endAnimation in class WiredEditCopyright © 1996-2014 FreeHEP. All Rights Reserved.