Interface MovieListener

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  MovieListener.Adapter
      Deprecated.
      Since 2.1 and Java 8 the interface itself has default implementations.
      static class  MovieListener.Listeners
      Movie listener list.
    • Method Summary

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

      • sizeChanged

        default void sizeChanged​(Movie movie,
                                 int previousWidth,
                                 int previousHeight)
        Called when a movie's size has changed.
        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

        default void baselineChanged​(Movie movie,
                                     int previousBaseline)
        Called when a movie's baseline has changed.
        Parameters:
        movie - The movie that has changed.
        previousBaseline - The previous baseline value of the movie.
      • currentFrameChanged

        default void currentFrameChanged​(Movie movie,
                                         int previousFrame)
        Called when the movie's current frame changed.
        Parameters:
        movie - The movie that has changed.
        previousFrame - The previous frame index of the movie.
      • loopingChanged

        default void loopingChanged​(Movie movie)
        Called when the movie's looping property changed.
        Parameters:
        movie - The source of this event.
      • movieStarted

        default void movieStarted​(Movie movie)
        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).
        Parameters:
        movie - The movie that has just started to play.
      • movieStopped

        default void movieStopped​(Movie movie)
        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).
        Parameters:
        movie - The movie that has just stopped playing.
      • regionUpdated

        default void regionUpdated​(Movie movie,
                                   int x,
                                   int y,
                                   int width,
                                   int height)
        Called when a region within a movie needs to be repainted.
        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.