All Packages Class Hierarchy This Package Previous Next Index
Class com.elegantchaos.beans.quicktime.ECMovie
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----quicktime.app.display.QTCanvas
|
+----com.elegantchaos.beans.quicktime.ECMovie
- public class ECMovie
- extends quicktime.app.display.QTCanvas
- implements java.io.Serializable, com.elegantchaos.beans.asset.AssetListener, quicktime.app.audio.AudioSpec, com.elegantchaos.quicktime.StartFinishListener
The ECMovie bean allows you to play Quicktime movies, and provides access to most of the
movie's common display options.
- Version:
- 1.0
- Author:
- Sam Deane
-
ECMovie()
-
-
addMovieListener(MovieListener)
- call this method to add a listener for movie events
-
assetChanged(AssetEvent)
- sent to the movie to indicate that the movie asset has been changed
-
assetLoading(AssetEvent)
- sent to the movie to indicate that asset loading has started/finished/failed
-
assetRegistered(AssetEvent)
- sent to the movie when it has registered with an asset
-
assetUnloading(AssetEvent)
- sent to the movie to indicate that the asset has been unloaded, or an unload has been requested
-
assetUnregistered(AssetEvent)
- sent to the movie to indicate that the asset has been unregistered
-
atEnd(int)
-
-
atStart(int)
- generate a MovieAtStart event
-
atTime(int)
-
-
getAsset()
- returns location of current asset
-
getDuration()
- return the overall duration of the movie
-
getOrigin()
- returns origin (offset of movie in the bean)
-
getRate()
- returns the playback rate of the movie
-
getResizeMode()
-
-
getRotationAngle()
- returns rotation angle
-
getRotationAxis()
- returns rotation angle
-
getTime()
- return the current time (the position) of the movie - defaults to zero when there is no movie
-
getTimeBase()
-
-
getVolume()
- returns the volume of the movie
-
isAutoCursor()
- returns whether auto cursor setting is enabled
-
isBadge()
- returns whether the playback badge is visible when the controller is hidden
-
isControllerReserved()
- if controller is hidden, is space for it reserved?
-
isControllerVisible()
- return visibility of the controller
-
isDrag()
- can images be dragged off the movie
-
isEveryFrame()
- return whether every frame of the movie should be played
-
isLoop()
- should movie loop at end?
-
isMuted()
-
-
isPalindrome()
- should movie loop at end?
-
isPlaying()
- is movie playing?
-
isResize()
- should component resize when it's movie is changed?
-
isScale()
- returns whether the movie will be scaled (as opposed to clipped) when the bean is a different size
-
isStopped()
- is movie stopped?
-
play()
- start the movie playing
-
preroll()
- preroll the movie to the current position
-
removeMovieListener(MovieListener)
- call this method to remove a listener registered with addMovieListener()
-
revertSize()
- revert to natural size of movie
-
rewind()
- stop the movie playing and set it's position back to zero
-
setAsset(String)
- creates a new temporary (internal) asset, and uses it to specify the movie to use,
allowing you to use this bean without a MovieAsset bean
-
setAutoCursor(boolean)
- set whether movie controller is allowed to set cursor
-
setBadge(boolean)
- set whether the playback badge is visible when the controller is hidden
-
setControllerReserved(boolean)
- set whether space is reserved for controller when controller is hidden
-
setControllerVisible(boolean)
- set the visibility of the controller
-
setDrag(boolean)
- set whether images can be dragged off the movie
-
setEveryFrame(boolean)
- set whether every frame of the movie should be played
-
setLoop(boolean)
- set whether movie should loop at end
-
setMuted(boolean)
-
-
setOrigin(Point)
-
set origin (offset of movie in the bean -
you can use this property to scroll the movie so that some of the movie is cropped
-
setPalindrome(boolean)
- set whether movie should loop at end
-
setPlaying(boolean)
- play or stop the movie
-
setRate(float)
- set the playback rate of the movie
-
setResize(boolean)
-
-
setResizeMode(ResizeFlag)
-
-
setRotationAngle(float)
- set rotation angle
-
setRotationAxis(Point)
- set rotation angle
-
setScale(boolean)
- set whether the movie will be scaled (as opposed to clipped) when the bean is a different size
-
setStopped(boolean)
- stop or play the movie
-
setTime(int)
- set the time (position) of the movie
-
setVolume(float)
- sets the volume of the movie
-
stop()
- stop the movie playing
ECMovie
public ECMovie()
getTimeBase
public quicktime.std.clocks.TimeBase getTimeBase() throws quicktime.QTException
play
public void play() throws quicktime.QTException
- start the movie playing
rewind
public void rewind() throws quicktime.QTException
- stop the movie playing and set it's position back to zero
stop
public void stop() throws quicktime.QTException
- stop the movie playing
preroll
public void preroll() throws quicktime.QTException
- preroll the movie to the current position
revertSize
public void revertSize()
- revert to natural size of movie
getAsset
public java.lang.String getAsset()
- returns location of current asset
setAsset
public void setAsset(java.lang.String url)
- creates a new temporary (internal) asset, and uses it to specify the movie to use,
allowing you to use this bean without a MovieAsset bean
- See Also:
- MovieAsset
isAutoCursor
public boolean isAutoCursor()
- returns whether auto cursor setting is enabled
setAutoCursor
public void setAutoCursor(boolean b)
- set whether movie controller is allowed to set cursor
isBadge
public boolean isBadge()
- returns whether the playback badge is visible when the controller is hidden
setBadge
public void setBadge(boolean b)
- set whether the playback badge is visible when the controller is hidden
isControllerVisible
public boolean isControllerVisible()
- return visibility of the controller
setControllerVisible
public void setControllerVisible(boolean b)
- set the visibility of the controller
isControllerReserved
public boolean isControllerReserved()
- if controller is hidden, is space for it reserved?
setControllerReserved
public void setControllerReserved(boolean b)
- set whether space is reserved for controller when controller is hidden
isDrag
public boolean isDrag()
- can images be dragged off the movie
setDrag
public void setDrag(boolean b)
- set whether images can be dragged off the movie
getDuration
public int getDuration()
- return the overall duration of the movie
isEveryFrame
public boolean isEveryFrame()
- return whether every frame of the movie should be played
setEveryFrame
public void setEveryFrame(boolean b)
- set whether every frame of the movie should be played
isLoop
public boolean isLoop()
- should movie loop at end?
setLoop
public void setLoop(boolean b)
- set whether movie should loop at end
isMuted
public boolean isMuted()
setMuted
public void setMuted(boolean b)
getOrigin
public java.awt.Point getOrigin()
- returns origin (offset of movie in the bean)
setOrigin
public void setOrigin(java.awt.Point p) throws quicktime.QTException
- set origin (offset of movie in the bean -
you can use this property to scroll the movie so that some of the movie is cropped
isPalindrome
public boolean isPalindrome()
- should movie loop at end?
setPalindrome
public void setPalindrome(boolean b)
- set whether movie should loop at end
isPlaying
public boolean isPlaying()
- is movie playing?
setPlaying
public void setPlaying(boolean b)
- play or stop the movie
getRate
public float getRate()
- returns the playback rate of the movie
setRate
public void setRate(float f)
- set the playback rate of the movie
isResize
public boolean isResize()
- should component resize when it's movie is changed?
setResize
public void setResize(boolean b)
getResizeMode
public com.elegantchaos.beans.quicktime.ResizeFlag getResizeMode()
setResizeMode
public void setResizeMode(com.elegantchaos.beans.quicktime.ResizeFlag f)
getRotationAngle
public float getRotationAngle()
- returns rotation angle
setRotationAngle
public void setRotationAngle(float a) throws quicktime.QTException
- set rotation angle
getRotationAxis
public java.awt.Point getRotationAxis()
- returns rotation angle
setRotationAxis
public void setRotationAxis(java.awt.Point a) throws quicktime.QTException
- set rotation angle
isScale
public boolean isScale()
- returns whether the movie will be scaled (as opposed to clipped) when the bean is a different size
setScale
public void setScale(boolean b)
- set whether the movie will be scaled (as opposed to clipped) when the bean is a different size
isStopped
public boolean isStopped()
- is movie stopped?
setStopped
public void setStopped(boolean b)
- stop or play the movie
getTime
public int getTime()
- return the current time (the position) of the movie - defaults to zero when there is no movie
setTime
public void setTime(int t)
- set the time (position) of the movie
getVolume
public float getVolume()
- returns the volume of the movie
setVolume
public void setVolume(float f)
- sets the volume of the movie
assetRegistered
public void assetRegistered(com.elegantchaos.beans.asset.AssetEvent ae)
- sent to the movie when it has registered with an asset
assetLoading
public void assetLoading(com.elegantchaos.beans.asset.AssetEvent ae)
- sent to the movie to indicate that asset loading has started/finished/failed
assetUnregistered
public void assetUnregistered(com.elegantchaos.beans.asset.AssetEvent ae)
- sent to the movie to indicate that the asset has been unregistered
assetUnloading
public void assetUnloading(com.elegantchaos.beans.asset.AssetEvent ae)
- sent to the movie to indicate that the asset has been unloaded, or an unload has been requested
assetChanged
public void assetChanged(com.elegantchaos.beans.asset.AssetEvent ae)
- sent to the movie to indicate that the movie asset has been changed
addMovieListener
public synchronized void addMovieListener(com.elegantchaos.beans.quicktime.MovieListener al)
- call this method to add a listener for movie events
removeMovieListener
public synchronized void removeMovieListener(com.elegantchaos.beans.quicktime.MovieListener al)
- call this method to remove a listener registered with addMovieListener()
atStart
public void atStart(int time)
- generate a MovieAtStart event
atEnd
public void atEnd(int time)
atTime
public void atTime(int time)
All Packages Class Hierarchy This Package Previous Next Index