Interface AnimatingTree
- All Superinterfaces:
- DrawingTree, Tree
- All Known Implementing Classes:
- BSTTree
- public interface AnimatingTree
- extends DrawingTree
The AnimatingTree interface extends DrawingTree because all AnimatingTrees must be drawable.
The interface simply inforces the defining of 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
Methods inherited from interface DrawingTree |
drawNode, drawNode, drawNode, drawNodeAndLink, drawNodeAndLink, drawNodeAndLink, getCurrentTransform, getDrawingLevel, getScreenBounds, getSectionHeight, getSettings, setScreenBounds, setSettings |
isNodeAnimating
public boolean isNodeAnimating()
- Returns true if the node is animating. It simply determines if the list of animators is empty.
- Returns:
- true if the node is currently animating.
addAnimator
public void addAnimator(Animation a)
- Adds an animation to the current node. This method does not add the node to listen for
AnimationEvents. That must be performed by the user.
- Parameters:
a
- the Animation
being added to the node.
getAnimator
public Animation getAnimator()
- Gets the first
Animation
of the node.
- Returns:
- Animation which is the first Animation of the node.