HUD_LAYER| Constructor and Description |
|---|
RainAnimation(Rectangle bounds,
long duration)
Constructs a rain animation with reasonable defaults for the number
of raindrops and their dimensions.
|
RainAnimation(Rectangle bounds,
long duration,
int count,
int wid,
int hei)
Constructs a rain animation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
fastForward(long timeDelta)
Called when the appropriate media manager has been paused for some length of time and is
then unpaused.
|
void |
paint(Graphics2D gfx)
Called by the appropriate manager to request that the media render itself with the given
graphics context.
|
void |
tick(long tickStamp)
Called periodically by this media's manager to give it a chance to do its thing.
|
addAnimationObserver, isFinished, removeAnimationObserver, reset, setLocationcontains, contains, contains, contains, getBounds, getBounds2D, getPathIterator, getPathIterator, getRenderOrder, init, intersects, intersects, invalidate, queueNotification, renderCompareTo, setRenderOrder, toString, viewLocationDidChangepublic RainAnimation(Rectangle bounds, long duration)
bounds - the bounding rectangle for the animation.duration - the number of seconds the animation should last.public RainAnimation(Rectangle bounds, long duration, int count, int wid, int hei)
bounds - the bounding rectangle for the animation.duration - the number of seconds the animation should last.count - the number of raindrops to render in each frame.wid - the width of a raindrop's bounding rectangle.hei - the height of a raindrop's bounding rectangle.public void tick(long tickStamp)
AbstractMediatick in class AbstractMediatickStamp - a time stamp associated with this tick. Note: this is not obtained
from a call to System.currentTimeMillis() and cannot be compared to timestamps
obtained there from.public void fastForward(long timeDelta)
AbstractMediafastForward in class AbstractMediapublic void paint(Graphics2D gfx)
AbstractMediapaint in class AbstractMediaCopyright © 2015. All rights reserved.