|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deken.game.animation.BaseAnimation
org.deken.game.animation.DissolveAnimation
public class DissolveAnimation
Title: DissolveAnimation
Description: TODO
Copyright: Copyright (c) Dec 26, 2012
Nested Class Summary | |
---|---|
static class |
DissolveAnimation.DIRECTION
|
Field Summary |
---|
Fields inherited from class org.deken.game.animation.BaseAnimation |
---|
height, imageEffect, name, sequenceTime, sound, totalDuration, totalFrames, width, xOffset, yOffset |
Constructor Summary | |
---|---|
protected |
DissolveAnimation()
Used by copy(). |
|
DissolveAnimation(java.awt.Image image,
long unused)
This takes the base image that will be dissolved from. |
Method Summary | |
---|---|
void |
addFrame(java.awt.Image image,
long duration)
This method set the image that will be behind the dissolving image. |
DissolveAnimation |
copy()
Copy Animation |
void |
draw(java.awt.Graphics2D graphics,
int x,
int y)
Draws the dissolved image, including any animation offsets. |
boolean |
equals(java.lang.Object obj)
Determines if two animation strips are the same, based on size of image and number of frames. |
java.awt.Image |
getFrame(int i)
This method returns the only image in the animation. |
java.awt.Image |
getImage()
This method returns the current frame of the animation. |
boolean |
isAnimating()
This animation strip does not animate, always returning the same image. |
void |
reset()
This method does nothing, since there is only a single image, there is nothing to reset. |
void |
setDissolve(int percent,
DissolveAnimation.DIRECTION direction)
|
void |
update(long elapseTime)
This method does nothing, with the static animation strip, the same image is always returned. |
Methods inherited from class org.deken.game.animation.BaseAnimation |
---|
addImageEffect, baseUpdate, copyParent, getHeight, getName, getSound, getTotalDuration, getWidth, getXOffset, getYOffset, setName, setOffsets, setSound |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DissolveAnimation(java.awt.Image image, long unused)
image
- The image that will dissolve.unused
- protected DissolveAnimation()
Method Detail |
---|
public void addFrame(java.awt.Image image, long duration)
image
- Background image.duration
- longpublic DissolveAnimation copy()
public void draw(java.awt.Graphics2D graphics, int x, int y)
graphics
- x
- y
- public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Object
public void reset()
public void update(long elapseTime)
elapseTime
- longpublic java.awt.Image getFrame(int i)
i
- int
public java.awt.Image getImage()
Animation
public boolean isAnimating()
public void setDissolve(int percent, DissolveAnimation.DIRECTION direction)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |