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, setRecordPlot
createTransformedShape, getFrames, getNextEdit, getParent, getPreviousEdit, redo, redoEdit, setNextEdit, setParent, setPreviousEdit, undo, undoEdit
addEdit, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit
public 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 WiredEdit
protected void showAnimation(int frameNo)
showAnimation
in class WiredEdit
protected void endAnimation()
endAnimation
in class WiredEdit
Copyright © 1996-2014 FreeHEP. All Rights Reserved.