public abstract class Animation extends AbstractMedia
AnimationManager.HUD_LAYER| Constructor and Description |
|---|
Animation(Rectangle bounds)
Constructs an animation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAnimationObserver(AnimationObserver obs)
Adds an animation observer to this animation's list of observers.
|
boolean |
isFinished()
Returns true if the animation has finished all of its business, false if not.
|
void |
removeAnimationObserver(AnimationObserver obs)
Removes an animation observer from this animation's list of observers.
|
void |
reset()
If this animation has run to completion, it can be reset to prepare it for another go.
|
void |
setLocation(int x,
int y)
Set the location.
|
contains, contains, contains, contains, fastForward, getBounds, getBounds2D, getPathIterator, getPathIterator, getRenderOrder, init, intersects, intersects, invalidate, paint, queueNotification, renderCompareTo, setRenderOrder, tick, toString, viewLocationDidChangepublic Animation(Rectangle bounds)
bounds - the animation rendering bounds.public boolean isFinished()
public void reset()
public void setLocation(int x,
int y)
AbstractMediasetLocation in class AbstractMediapublic void addAnimationObserver(AnimationObserver obs)
public void removeAnimationObserver(AnimationObserver obs)
Copyright © 2015. All rights reserved.