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.ListenersmovieListeners
-
Constructor Summary
Constructors Constructor Description Movie()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intgetBaseline()Returns the visual's baseline.intgetCurrentFrame()intgetFrameRate()ListenerList<MovieListener>getMovieListeners()DimensionsgetSize()Default method to return the visual's complete size via aDimensionsobject.abstract intgetTotalFrames()booleanisLooping()booleanisPlaying()voidplay()voidsetCurrentFrame(int currentFrame)voidsetFrameRate(int frameRate)voidsetLooping(boolean looping)voidstop()
-
-
-
Field Detail
-
movieListeners
protected MovieListener.Listeners movieListeners
-
-
Method Detail
-
getBaseline
public int getBaseline()
Description copied from interface:VisualReturns the visual's baseline.- Specified by:
getBaselinein interfaceVisual- Returns:
- The baseline relative to the origin of the visual, or
-1if this visual does not have a baseline.
-
getSize
public Dimensions getSize()
Description copied from interface:VisualDefault method to return the visual's complete size via aDimensionsobject. 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()
-
-