|
||||||||||
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.EllipseShapeAnimation
public class EllipseShapeAnimation
Title: Circle Shape Animation
Description: Draws a circle image to the GameGFX.
Copyright: Copyright (c) Dec 29, 2010
Field Summary |
---|
Fields inherited from class org.deken.game.animation.BaseAnimation |
---|
height, imageEffect, name, sequenceTime, sound, totalDuration, totalFrames, width, xOffset, yOffset |
Constructor Summary | |
---|---|
EllipseShapeAnimation(int width,
int height,
java.awt.Color color,
boolean fill)
|
Method Summary | |
---|---|
void |
addFrame(java.awt.Image image,
long duration)
This animation has no frames. |
EllipseShapeAnimation |
copy()
Copy Animation |
void |
draw(java.awt.Graphics2D graphics,
int x,
int y)
Draws the current frame or shape of the animation at the set x and y location. |
java.awt.Image |
getFrame(int i)
This animation as no Frame to return. |
java.awt.Image |
getImage()
This animation has no image to return. |
boolean |
isAnimating()
This animation is always in the same state. |
void |
reset()
This animation has nothing to reset. |
void |
setSize(int width,
int height)
|
void |
update(long elapseTime)
This animation has nothing to update. |
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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EllipseShapeAnimation(int width, int height, java.awt.Color color, boolean fill)
width
- height
- color
- fill
- Method Detail |
---|
public void addFrame(java.awt.Image image, long duration)
image
- duration
- public EllipseShapeAnimation copy()
public void draw(java.awt.Graphics2D graphics, int x, int y)
Animation
graphics
- x
- y
- public java.awt.Image getFrame(int i)
i
-
public java.awt.Image getImage()
public boolean isAnimating()
public void reset()
public void setSize(int width, int height)
public void update(long elapseTime)
elapseTime
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |