Class MovieListener.Adapter

  • All Implemented Interfaces:
    MovieListener
    Enclosing interface:
    MovieListener

    @Deprecated
    public static class MovieListener.Adapter
    extends java.lang.Object
    implements MovieListener
    Deprecated.
    Since 2.1 and Java 8 the interface itself has default implementations.
    Movie listener adapter.
    • Constructor Summary

      Constructors 
      Constructor Description
      Adapter()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void baselineChanged​(Movie movie, int previousBaseline)
      Deprecated.
      Called when a movie's baseline has changed.
      void currentFrameChanged​(Movie movie, int previousFrame)
      Deprecated.
      Called when the movie's current frame changed.
      void loopingChanged​(Movie movie)
      Deprecated.
      Called when the movie's looping property changed.
      void movieStarted​(Movie movie)
      Deprecated.
      Called when the movie begins playing.
      void movieStopped​(Movie movie)
      Deprecated.
      Called when the movie stops playing.
      void regionUpdated​(Movie movie, int x, int y, int width, int height)
      Deprecated.
      Called when a region within a movie needs to be repainted.
      void sizeChanged​(Movie movie, int previousWidth, int previousHeight)
      Deprecated.
      Called when a movie's size has changed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Adapter

        public Adapter()
        Deprecated.
    • Method Detail

      • sizeChanged

        public void sizeChanged​(Movie movie,
                                int previousWidth,
                                int previousHeight)
        Deprecated.
        Description copied from interface: MovieListener
        Called when a movie's size has changed.
        Specified by:
        sizeChanged in interface MovieListener
        Parameters:
        movie - The movie that has been resized.
        previousWidth - The previous width of this movie.
        previousHeight - The previous value of the height before resizing.
      • baselineChanged

        public void baselineChanged​(Movie movie,
                                    int previousBaseline)
        Deprecated.
        Description copied from interface: MovieListener
        Called when a movie's baseline has changed.
        Specified by:
        baselineChanged in interface MovieListener
        Parameters:
        movie - The movie that has changed.
        previousBaseline - The previous baseline value of the movie.
      • currentFrameChanged

        public void currentFrameChanged​(Movie movie,
                                        int previousFrame)
        Deprecated.
        Description copied from interface: MovieListener
        Called when the movie's current frame changed.
        Specified by:
        currentFrameChanged in interface MovieListener
        Parameters:
        movie - The movie that has changed.
        previousFrame - The previous frame index of the movie.
      • loopingChanged

        public void loopingChanged​(Movie movie)
        Deprecated.
        Description copied from interface: MovieListener
        Called when the movie's looping property changed.
        Specified by:
        loopingChanged in interface MovieListener
        Parameters:
        movie - The source of this event.
      • movieStarted

        public void movieStarted​(Movie movie)
        Deprecated.
        Description copied from interface: MovieListener
        Called when the movie begins playing. The frame at which the movie is starting can be obtained via getCurrentFrame() (it is not guaranteed to be positioned before the first frame when it is started).
        Specified by:
        movieStarted in interface MovieListener
        Parameters:
        movie - The movie that has just started to play.
      • movieStopped

        public void movieStopped​(Movie movie)
        Deprecated.
        Description copied from interface: MovieListener
        Called when the movie stops playing. The frame at which the movie stopped can be obtained via getCurrentFrame() (it is not guaranteed to have completed the last frame when it is stopped).
        Specified by:
        movieStopped in interface MovieListener
        Parameters:
        movie - The movie that has just stopped playing.
      • regionUpdated

        public void regionUpdated​(Movie movie,
                                  int x,
                                  int y,
                                  int width,
                                  int height)
        Deprecated.
        Description copied from interface: MovieListener
        Called when a region within a movie needs to be repainted.
        Specified by:
        regionUpdated in interface MovieListener
        Parameters:
        movie - The movie that needs repainting.
        x - The upper left X-position of the region to repaint.
        y - The upper left Y-position for the repaint.
        width - The width of the image to repaint.
        height - The height to repaint.