Package org.apache.pivot.wtk.media
Class Movie
- java.lang.Object
-
- org.apache.pivot.wtk.media.Movie
-
-
Field Summary
Fields Modifier and Type Field Description protected MovieListener.Listeners
movieListeners
-
Constructor Summary
Constructors Constructor Description Movie()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
getBaseline()
Returns the visual's baseline.int
getCurrentFrame()
int
getFrameRate()
ListenerList<MovieListener>
getMovieListeners()
Dimensions
getSize()
Default method to return the visual's complete size via aDimensions
object.abstract int
getTotalFrames()
boolean
isLooping()
boolean
isPlaying()
void
play()
void
setCurrentFrame(int currentFrame)
void
setFrameRate(int frameRate)
void
setLooping(boolean looping)
void
stop()
-
-
-
Field Detail
-
movieListeners
protected MovieListener.Listeners movieListeners
-
-
Method Detail
-
getBaseline
public int getBaseline()
Description copied from interface:Visual
Returns the visual's baseline.- Specified by:
getBaseline
in interfaceVisual
- Returns:
- The baseline relative to the origin of the visual, or
-1
if this visual does not have a baseline.
-
getSize
public Dimensions getSize()
Description copied from interface:Visual
Default method to return the visual's complete size via aDimensions
object. Note that if the width and height calculations for a particular object are lengthy and could be better done together rather than separately, that component should be free to override this default implementation.
-
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()
-
-