Package org.apache.pivot.wtk.media
Class MovieListener.Adapter
- java.lang.Object
-
- org.apache.pivot.wtk.media.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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.media.MovieListener
MovieListener.Adapter, MovieListener.Listeners
-
-
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.
-
-
-
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 interfaceMovieListener
- 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 interfaceMovieListener
- 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 interfaceMovieListener
- 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 interfaceMovieListener
- 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 viagetCurrentFrame()
(it is not guaranteed to be positioned before the first frame when it is started).- Specified by:
movieStarted
in interfaceMovieListener
- 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 viagetCurrentFrame()
(it is not guaranteed to have completed the last frame when it is stopped).- Specified by:
movieStopped
in interfaceMovieListener
- 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 interfaceMovieListener
- 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.
-
-