All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gjt.animation.Sequence

java.lang.Object
   |
   +----gjt.animation.Sequence

public class Sequence
extends Object
A sequence of images used in an animation. Each sequence keeps track of the number of cycles the sequence is to run, and reports whether or not the cycles have been completed via the boolean animationOver() method.

See Also:
Sprite, Playfield, SimpleAnimationTest, BumpAnimationTest, TwoDrinkersAnimationTest

Constructor Index

 o Sequence()
 o Sequence(Component, Image[])

Method Index

 o addImage(Component, Image)
 o advance()
 o animationOver()
 o getCurrentCycle()
 o getCurrentImage()
 o getCurrentImagePosition()
 o getCyclesPerAnimation()
 o getFirstImage()
 o getLastImage()
 o getLastLocation()
 o getNextImage()
 o getNumImages()
 o isAtLastImage()
 o needsRepainting(Point)
 o removeImage(Image)
 o setAdvanceInterval(long)
 o setCurrentCycle(long)
 o setCyclesPerAnimation(long)
 o start()
 o timeToAdvanceCell()

Constructors

 o Sequence
 public Sequence()
 o Sequence
 public Sequence(Component component,
                 Image images[])

Methods

 o start
 public void start()
 o getLastImage
 public Image getLastImage()
 o getLastLocation
 public Point getLastLocation()
 o getNumImages
 public int getNumImages()
 o getCurrentCycle
 public long getCurrentCycle()
 o setCurrentCycle
 public void setCurrentCycle(long c)
 o getCyclesPerAnimation
 public long getCyclesPerAnimation()
 o setCyclesPerAnimation
 public void setCyclesPerAnimation(long cyclesPerAnimation)
 o getFirstImage
 public Image getFirstImage()
 o getCurrentImage
 public Image getCurrentImage()
 o getCurrentImagePosition
 public int getCurrentImagePosition()
 o getNextImage
 public Image getNextImage()
 o setAdvanceInterval
 public void setAdvanceInterval(long interval)
 o addImage
 public void addImage(Component component,
                      Image image)
 o removeImage
 public void removeImage(Image image)
 o needsRepainting
 public boolean needsRepainting(Point point)
 o isAtLastImage
 public boolean isAtLastImage()
 o timeToAdvanceCell
 public boolean timeToAdvanceCell()
 o animationOver
 public boolean animationOver()
 o advance
 public void advance()

All Packages  Class Hierarchy  This Package  Previous  Next  Index