org.apache.pivot.wtk.media
Class MovieListener.Adapter

java.lang.Object
  extended by org.apache.pivot.wtk.media.MovieListener.Adapter
All Implemented Interfaces:
MovieListener
Enclosing interface:
MovieListener

public static class MovieListener.Adapter
extends Object
implements MovieListener

Movie listener adapter.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.media.MovieListener
MovieListener.Adapter
 
Constructor Summary
MovieListener.Adapter()
           
 
Method Summary
 void baselineChanged(Movie movie, int previousBaseline)
          Called when a movie's baseline has changed.
 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MovieListener.Adapter

public MovieListener.Adapter()
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

baselineChanged

public void baselineChanged(Movie movie,
                            int previousBaseline)
Description copied from interface: MovieListener
Called when a movie's baseline has changed.

Specified by:
baselineChanged 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