Class Movie

  • All Implemented Interfaces:
    Visual

    public abstract class Movie
    extends java.lang.Object
    implements Visual
    Abstract base class for movies. A movie is either a bitmapped "video" or a vector "animation".
    • Constructor Detail

      • Movie

        public Movie()
    • Method Detail

      • getBaseline

        public int getBaseline()
        Description copied from interface: Visual
        Returns the visual's baseline.
        Specified by:
        getBaseline in interface Visual
        Returns:
        The baseline relative to the origin of the visual, or -1 if this visual does not have a baseline.
      • getSize

        public Dimensions getSize()
        Description copied from interface: Visual
        Default method to return the visual's complete size via a Dimensions object. Note that if the width and height calculations for a particular object are lengthy and could be better done together rather than separately, that component should be free to override this default implementation.
        Specified by:
        getSize in interface Visual
        Returns:
        The visual's complete size.
      • getTotalFrames

        public abstract int getTotalFrames()
      • getCurrentFrame

        public int getCurrentFrame()
      • setCurrentFrame

        public void setCurrentFrame​(int currentFrame)
      • getFrameRate

        public int getFrameRate()
      • setFrameRate

        public void setFrameRate​(int frameRate)
      • isLooping

        public boolean isLooping()
      • setLooping

        public void setLooping​(boolean looping)
      • play

        public void play()
      • stop

        public void stop()
      • isPlaying

        public boolean isPlaying()