com.threecoffee.anim
Class Animation

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.Vector<javax.swing.ImageIcon>
              extended by com.threecoffee.anim.Animation
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<javax.swing.ImageIcon>, java.util.Collection<javax.swing.ImageIcon>, java.util.List<javax.swing.ImageIcon>, java.util.RandomAccess

public class Animation
extends java.util.Vector<javax.swing.ImageIcon>

A class to represent an animation created using a series of images

Author:
Divyansh Prakash
See Also:
Serialized Form

Constructor Summary
Animation()
           
 
Method Summary
 long getDelay()
          Returns the time delay(in milliseconds) after which the update() method is called.
 java.lang.String getName()
          Returns the name of this animation.
 void setDelay(long l)
          Sets the time delay(in milliseconds) after which the update() method is called.
 void setName(java.lang.String n)
          Sets the name of this animation.
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

Animation

public Animation()
Method Detail

setName

public void setName(java.lang.String n)
Sets the name of this animation.


getName

public java.lang.String getName()
Returns the name of this animation.


setDelay

public void setDelay(long l)
Sets the time delay(in milliseconds) after which the update() method is called.


getDelay

public long getDelay()
Returns the time delay(in milliseconds) after which the update() method is called.