Class AnimatedImage
java.lang.Object
AnimatedImage
- All Implemented Interfaces:
- java.io.Serializable
public class AnimatedImage
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
currentFrame
private int currentFrame
frames
private javax.swing.ImageIcon[] frames
AnimatedImage
public AnimatedImage(java.lang.String[] files)
AnimatedImage
public AnimatedImage(java.lang.String file)
getFirstFrame
public javax.swing.ImageIcon getFirstFrame()
currentFrame
public int currentFrame()
resetCurrentFrame
public void resetCurrentFrame()
numFrames
public int numFrames()
randomizeCurrentFrame
public void randomizeCurrentFrame()
getImage
public java.awt.Image getImage()
drawImage
public void drawImage(java.awt.Graphics g,
Vector pos,
double radius)