org.apache.pivot.wtk.media
Class Movie

java.lang.Object
  extended by 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".


Nested Class Summary
protected static class Movie.MovieListenerList
          Movie listener list.
 
Field Summary
protected  Movie.MovieListenerList movieListeners
           
 
Constructor Summary
Movie()
           
 
Method Summary
 int getBaseline()
          Returns the visual's baseline.
 int getCurrentFrame()
           
 int getFrameRate()
           
 ListenerList<MovieListener> getMovieListeners()
           
 Dimensions getSize()
           
abstract  int getTotalFrames()
           
 boolean isLooping()
           
 boolean isPlaying()
           
 void play()
           
 void setCurrentFrame(int currentFrame)
           
 void setFrameRate(int frameRate)
           
 void setLooping(boolean looping)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.pivot.wtk.Visual
getHeight, getWidth, paint
 

Field Detail

movieListeners

protected Movie.MovieListenerList movieListeners
Constructor Detail

Movie

public Movie()
Method Detail

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()