Class Animation


  • public class Animation
    extends java.lang.Object
    Shows a number of images in sequence. After all images have been shown the animation will either loop or keep showing the last image.
    • Constructor Detail

      • Animation

        public Animation​(java.util.List<Image> frames,
                         float frameDuration,
                         boolean loop)
      • Animation

        public Animation​(Image frame)
    • Method Detail

      • getFrameAtIndex

        public Image getFrameAtIndex​(int index)
      • getFrameAtTime

        public Image getFrameAtTime​(float time)
      • getDuration

        public float getDuration()
      • getFrames

        public java.util.List<Image> getFrames()
      • getFrameDuration

        public float getFrameDuration()
      • isLoop

        public boolean isLoop()