|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AnimatingTreeHead<P extends NodeProperties>
The AnimatingTreeHead interface extends DrawingTreeHead.
The interface simply defines numerous methods which allow for the animating of
the Tree onto a given Graphics2D. The interface also defines many mutator and accesor
methods for information concerning the animating of the AnimatingTree
DrawingTreeHead,
TreeHead,
Tree,
AnimatingTree| Field Summary |
|---|
| Fields inherited from interface edu.princeton.cs.algs4.growingtree.framework.TreeHead |
|---|
BALANCE_NODE, CHANGE_DISPLAY, FREEZE, INORDER_TRAVERSAL, INSERT_NODE, LEVELORDER_TRAVERSAL, PARTITION_NODE, POSTORDER_TRAVERSAL, PREORDER_TRAVERSAL, REMOVE_NODE, ROTATE_TO_TOP_NODE, ROTATE_UP, ROTATE_UP_DOUBLE, SEARCH, SELECT, SPLAY_NODE, SWAP, TRAVERSE |
| Method Summary | |
|---|---|
void |
addTreeAnimator(Animation a)
Adds the Animation to the list of Animations for the Head. |
void |
AnimateTree(java.awt.Graphics2D g2)
Animates the entire AnimatingTree. |
int |
getTreeAnimationStepSize()
Gets the step size of the Animations of the tree. |
Animation |
getTreeAnimator()
Gets the first Animation in the list of Animations for the Head and null if no
Animations are present. |
java.lang.String |
getTreeStatus()
Gets the Tree's status, using the String status of Animation. |
java.lang.String |
getTreeStatusMessage()
Makes a new tree message. |
boolean |
isJumpStep()
Gets the JumpStep of the current tree. |
boolean |
isStepPause()
Gets the StepPause of the current tree. |
boolean |
isTreeAnimating()
Returns true if the current AnimatingTreeHead is animating (whether the animating list is empty. |
void |
pause()
Sets the status of the entire AnimatingTree to pause. |
void |
play()
Sets the status of the entire AnimatingTree to play. |
void |
removeTreeAnimation()
Quickly removes all Animations within the Tree. |
void |
rewind()
Sets the status of the entire AnimatingTree to rewind. |
void |
setJumpStep(boolean b)
Sets the JumpStep of the current tree to the boolean value. |
void |
setStepPause(boolean b)
Sets the StepPause of the current tree to the boolean value. |
void |
setTreeAnimationsStepSize(int t)
Sets the step size of the Animations of the tree. |
void |
setTreeStatus(java.lang.String status)
Sets the Tree's status, using the String status of Animation. |
void |
stop()
Sets the status of the entire AnimatingTree to stop. |
| Methods inherited from interface edu.princeton.cs.algs4.growingtree.framework.DrawingTreeHead |
|---|
DrawTree, findNode, getDrawingKeySettings, getDrawingNodeSettings, getNodeHeight, getNodeWidth, getScreenBounds, MakeTree, setScreenBounds, setTreeSettings |
| Methods inherited from interface edu.princeton.cs.algs4.growingtree.framework.TreeHead |
|---|
addTreeMessageListener, balance, balanceTree, clear, fixLevel, getChild, getTreeLevel, insert, isTreeEmpty, partition, remove, remove, removeTreeMessageListener, resetTreeLevel, search, select, setChild, size, waitingAction |
| Methods inherited from interface edu.princeton.cs.algs4.growingtree.framework.Tree |
|---|
getChildren, getKey, getLevel, getParentTree, getValue, isEmpty |
| Method Detail |
|---|
void addTreeAnimator(Animation a)
Animation to the list of Animations for the Head. The method does
not add the tree as a listener to the Animation. That must be accomplished by
the client.
a - Animation added to the Animation list.Animation getTreeAnimator()
Animation in the list of Animations for the Head and null if no
Animations are present.
Animation in the Animation list.boolean isTreeAnimating()
void AnimateTree(java.awt.Graphics2D g2)
g2 - Graphics2D to which the Animations are drawn.void removeTreeAnimation()
Animation.FINISH so that al listeners of the Animations will
receive the AnimationEvent.
void setJumpStep(boolean b)
AnimateTree call.
b - sets the jumpStep to the value b.boolean isJumpStep()
void setStepPause(boolean b)
b - sets the stepPause to the value b.boolean isStepPause()
void play()
AnimatingTree to play.
void stop()
AnimatingTree to stop.
void rewind()
AnimatingTree to rewind.
void pause()
AnimatingTree to pause.
void setTreeAnimationsStepSize(int t)
Animations of the tree. The integer value
is passed to every Animation's setStepSize method.
t - integer step size setting.int getTreeAnimationStepSize()
Animations of the tree.
java.lang.String getTreeStatus()
Animation.
Animation status.void setTreeStatus(java.lang.String status)
Animation.
status - String status of the Tree, representing the Animation status.java.lang.String getTreeStatusMessage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||