Class AnimatedImage

java.lang.Object
  extended by AnimatedImage
All Implemented Interfaces:
java.io.Serializable

public class AnimatedImage
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
private  int currentFrame
           
private  javax.swing.ImageIcon[] frames
           
 
Constructor Summary
AnimatedImage(java.lang.String file)
           
AnimatedImage(java.lang.String[] files)
           
 
Method Summary
 int currentFrame()
           
 void drawImage(java.awt.Graphics g, Vector pos, double radius)
           
 javax.swing.ImageIcon getFirstFrame()
           
 java.awt.Image getImage()
           
 int numFrames()
           
 void randomizeCurrentFrame()
           
 void resetCurrentFrame()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentFrame

private int currentFrame

frames

private javax.swing.ImageIcon[] frames
Constructor Detail

AnimatedImage

public AnimatedImage(java.lang.String[] files)

AnimatedImage

public AnimatedImage(java.lang.String file)
Method Detail

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)