|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deken.game.animation.AnimatedFrame
public class AnimatedFrame
Title: AnimatedFrame
Description: The AnimatedFrame is a single image and it's duration time, that can be used with the Animation interface, to create an animation strip.
The image itself can be any class that extends the Image class, such as the BufferedImage and VolatileImage
Copyright: Copyright (c) 2005
Constructor Summary | |
---|---|
AnimatedFrame(java.awt.Image image,
long endTime)
AnimatedFrame |
Method Summary | |
---|---|
AnimatedFrame |
copy()
clone Creates a copy of this object. |
long |
getEndTime()
getEndTime |
java.awt.Image |
getImage()
getImage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnimatedFrame(java.awt.Image image, long endTime)
The constructor takes an Image and the end time (or duration) of this animated frame.
image
- ImageendTime
- longMethod Detail |
---|
public java.awt.Image getImage()
This returns the image of this AnimatedFrame.
public long getEndTime()
This is the duration of this frame, in milliseconds. It can be the time since the begining of the animation strip, or just the length of this image's duration.
public AnimatedFrame copy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |