org.apache.pivot.wtk.media
Class Movie
java.lang.Object
org.apache.pivot.wtk.media.Movie
- All Implemented Interfaces:
- Visual
public abstract class Movie
- extends Object
- implements Visual
Abstract base class for movies. A movie is either a bitmapped "video"
or a vector "animation".
Constructor Summary |
Movie()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
movieListeners
protected Movie.MovieListenerList movieListeners
Movie
public Movie()
getBaseline
public int getBaseline()
- Description copied from interface:
Visual
- Returns the visual's baseline.
- Specified by:
getBaseline
in interface Visual
- Returns:
- The baseline relative to the origin of the visual, or -1 if
this visual does not have a baseline.
getSize
public Dimensions getSize()
getTotalFrames
public abstract int getTotalFrames()
getCurrentFrame
public int getCurrentFrame()
setCurrentFrame
public void setCurrentFrame(int currentFrame)
getFrameRate
public int getFrameRate()
setFrameRate
public void setFrameRate(int frameRate)
isLooping
public boolean isLooping()
setLooping
public void setLooping(boolean looping)
play
public void play()
stop
public void stop()
isPlaying
public boolean isPlaying()
getMovieListeners
public ListenerList<MovieListener> getMovieListeners()