pivot.wtk.media
Class Movie.MovieListenerList

java.lang.Object
  extended by pivot.util.ListenerList<MovieListener>
      extended by pivot.wtk.media.Movie.MovieListenerList
All Implemented Interfaces:
Iterable<MovieListener>, MovieListener
Enclosing class:
Movie

protected static class Movie.MovieListenerList
extends ListenerList<MovieListener>
implements MovieListener

Movie listener list.

Author:
tvolkert

Nested Class Summary
 
Nested classes/interfaces inherited from interface pivot.wtk.media.MovieListener
MovieListener.Adapter
 
Constructor Summary
protected Movie.MovieListenerList()
           
 
Method Summary
 void currentFrameChanged(Movie movie, int previousFrame)
          Called when the movie's current frame changed.
 void loopingChanged(Movie movie)
          Called when the movie's looping property changed.
 void movieStarted(Movie movie)
          Called when the movie begins playing.
 void movieStopped(Movie movie)
          Called when the movie stops playing.
 void regionUpdated(Movie movie, int x, int y, int width, int height)
          Called when a region within a movie needs to be repainted.
 void sizeChanged(Movie movie, int previousWidth, int previousHeight)
          Called when a movie's size has changed.
 
Methods inherited from class pivot.util.ListenerList
add, iterator, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Movie.MovieListenerList

protected Movie.MovieListenerList()
Method Detail

sizeChanged

public void sizeChanged(Movie movie,
                        int previousWidth,
                        int previousHeight)
Description copied from interface: MovieListener
Called when a movie's size has changed.

Specified by:
sizeChanged in interface MovieListener

currentFrameChanged

public void currentFrameChanged(Movie movie,
                                int previousFrame)
Description copied from interface: MovieListener
Called when the movie's current frame changed.

Specified by:
currentFrameChanged in interface MovieListener

loopingChanged

public void loopingChanged(Movie movie)
Description copied from interface: MovieListener
Called when the movie's looping property changed.

Specified by:
loopingChanged in interface MovieListener

movieStarted

public void movieStarted(Movie movie)
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

movieStopped

public void movieStopped(Movie movie)
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

regionUpdated

public void regionUpdated(Movie movie,
                          int x,
                          int y,
                          int width,
                          int height)
Description copied from interface: MovieListener
Called when a region within a movie needs to be repainted.

Specified by:
regionUpdated in interface MovieListener