|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 TreeHead |
BALANCE_NODE, CHANGE_DISPLAY, 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, 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 Animation s 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 Animation s 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 DrawingTreeHead |
DrawTree, findNode, getDrawingKeySettings, getDrawingNodeSettings, getNodeHeight, getNodeWidth, getScreenBounds, MakeTree, setScreenBounds, setTreeSettings |
Methods inherited from interface TreeHead |
addTreeMessageListener, balance, balanceTree, clear, fixLevel, getChild, getTreeLevel, insert, isTreeEmpty, partition, remove, remove, removeTreeMessageListener, resetTreeLevel, search, select, setChild, size, waitingAction |
Methods inherited from interface Tree |
getChildren, getKey, getLevel, getParentTree, getValue, isEmpty |
Method Detail |
public 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.public Animation getTreeAnimator()
Animation
in the list of Animations for the Head and null if no
Animations are present.
Animation
in the Animation list.public boolean isTreeAnimating()
public void AnimateTree(java.awt.Graphics2D g2)
g2
- Graphics2D to which the Animation
s are drawn.public void removeTreeAnimation()
Animation.FINISH
so that al listeners of the Animations will
receive the AnimationEvent.
public void setJumpStep(boolean b)
AnimateTree
call.
b
- sets the jumpStep to the value b.public boolean isJumpStep()
public void setStepPause(boolean b)
b
- sets the stepPause to the value b.public boolean isStepPause()
public void play()
AnimatingTree
to play.
public void stop()
AnimatingTree
to stop.
public void rewind()
AnimatingTree
to rewind.
public void pause()
AnimatingTree
to pause.
public void setTreeAnimationsStepSize(int t)
Animation
s of the tree. The integer value
is passed to every Animation's setStepSize
method.
t
- integer step size setting.public int getTreeAnimationStepSize()
Animation
s of the tree.
public java.lang.String getTreeStatus()
Animation
.
Animation
status.public void setTreeStatus(java.lang.String status)
Animation
.
status
- String status of the Tree, representing the Animation
status.public java.lang.String getTreeStatusMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |