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

Constructor Index

 o ECMovie()

Method Index

 o addMovieListener(MovieListener)
call this method to add a listener for movie events
 o assetChanged(AssetEvent)
sent to the movie to indicate that the movie asset has been changed
 o assetLoading(AssetEvent)
sent to the movie to indicate that asset loading has started/finished/failed
 o assetRegistered(AssetEvent)
sent to the movie when it has registered with an asset
 o assetUnloading(AssetEvent)
sent to the movie to indicate that the asset has been unloaded, or an unload has been requested
 o assetUnregistered(AssetEvent)
sent to the movie to indicate that the asset has been unregistered
 o atEnd(int)
 o atStart(int)
generate a MovieAtStart event
 o atTime(int)
 o getAsset()
returns location of current asset
 o getDuration()
return the overall duration of the movie
 o getOrigin()
returns origin (offset of movie in the bean)
 o getRate()
returns the playback rate of the movie
 o getResizeMode()
 o getRotationAngle()
returns rotation angle
 o getRotationAxis()
returns rotation angle
 o getTime()
return the current time (the position) of the movie - defaults to zero when there is no movie
 o getTimeBase()
 o getVolume()
returns the volume of the movie
 o isAutoCursor()
returns whether auto cursor setting is enabled
 o isBadge()
returns whether the playback badge is visible when the controller is hidden
 o isControllerReserved()
if controller is hidden, is space for it reserved?
 o isControllerVisible()
return visibility of the controller
 o isDrag()
can images be dragged off the movie
 o isEveryFrame()
return whether every frame of the movie should be played
 o isLoop()
should movie loop at end?
 o isMuted()
 o isPalindrome()
should movie loop at end?
 o isPlaying()
is movie playing?
 o isResize()
should component resize when it's movie is changed?
 o isScale()
returns whether the movie will be scaled (as opposed to clipped) when the bean is a different size
 o isStopped()
is movie stopped?
 o play()
start the movie playing
 o preroll()
preroll the movie to the current position
 o removeMovieListener(MovieListener)
call this method to remove a listener registered with addMovieListener()
 o revertSize()
revert to natural size of movie
 o rewind()
stop the movie playing and set it's position back to zero
 o 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
 o setAutoCursor(boolean)
set whether movie controller is allowed to set cursor
 o setBadge(boolean)
set whether the playback badge is visible when the controller is hidden
 o setControllerReserved(boolean)
set whether space is reserved for controller when controller is hidden
 o setControllerVisible(boolean)
set the visibility of the controller
 o setDrag(boolean)
set whether images can be dragged off the movie
 o setEveryFrame(boolean)
set whether every frame of the movie should be played
 o setLoop(boolean)
set whether movie should loop at end
 o setMuted(boolean)
 o 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
 o setPalindrome(boolean)
set whether movie should loop at end
 o setPlaying(boolean)
play or stop the movie
 o setRate(float)
set the playback rate of the movie
 o setResize(boolean)
 o setResizeMode(ResizeFlag)
 o setRotationAngle(float)
set rotation angle
 o setRotationAxis(Point)
set rotation angle
 o setScale(boolean)
set whether the movie will be scaled (as opposed to clipped) when the bean is a different size
 o setStopped(boolean)
stop or play the movie
 o setTime(int)
set the time (position) of the movie
 o setVolume(float)
sets the volume of the movie
 o stop()
stop the movie playing

Constructors

 o ECMovie
 public ECMovie()

Methods

 o getTimeBase
 public quicktime.std.clocks.TimeBase getTimeBase() throws quicktime.QTException
 o play
 public void play() throws quicktime.QTException
start the movie playing

 o rewind
 public void rewind() throws quicktime.QTException
stop the movie playing and set it's position back to zero

 o stop
 public void stop() throws quicktime.QTException
stop the movie playing

 o preroll
 public void preroll() throws quicktime.QTException
preroll the movie to the current position

 o revertSize
 public void revertSize()
revert to natural size of movie

 o getAsset
 public java.lang.String getAsset()
returns location of current asset

 o 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
 o isAutoCursor
 public boolean isAutoCursor()
returns whether auto cursor setting is enabled

 o setAutoCursor
 public void setAutoCursor(boolean b)
set whether movie controller is allowed to set cursor

 o isBadge
 public boolean isBadge()
returns whether the playback badge is visible when the controller is hidden

 o setBadge
 public void setBadge(boolean b)
set whether the playback badge is visible when the controller is hidden

 o isControllerVisible
 public boolean isControllerVisible()
return visibility of the controller

 o setControllerVisible
 public void setControllerVisible(boolean b)
set the visibility of the controller

 o isControllerReserved
 public boolean isControllerReserved()
if controller is hidden, is space for it reserved?

 o setControllerReserved
 public void setControllerReserved(boolean b)
set whether space is reserved for controller when controller is hidden

 o isDrag
 public boolean isDrag()
can images be dragged off the movie

 o setDrag
 public void setDrag(boolean b)
set whether images can be dragged off the movie

 o getDuration
 public int getDuration()
return the overall duration of the movie

 o isEveryFrame
 public boolean isEveryFrame()
return whether every frame of the movie should be played

 o setEveryFrame
 public void setEveryFrame(boolean b)
set whether every frame of the movie should be played

 o isLoop
 public boolean isLoop()
should movie loop at end?

 o setLoop
 public void setLoop(boolean b)
set whether movie should loop at end

 o isMuted
 public boolean isMuted()
 o setMuted
 public void setMuted(boolean b)
 o getOrigin
 public java.awt.Point getOrigin()
returns origin (offset of movie in the bean)

 o 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

 o isPalindrome
 public boolean isPalindrome()
should movie loop at end?

 o setPalindrome
 public void setPalindrome(boolean b)
set whether movie should loop at end

 o isPlaying
 public boolean isPlaying()
is movie playing?

 o setPlaying
 public void setPlaying(boolean b)
play or stop the movie

 o getRate
 public float getRate()
returns the playback rate of the movie

 o setRate
 public void setRate(float f)
set the playback rate of the movie

 o isResize
 public boolean isResize()
should component resize when it's movie is changed?

 o setResize
 public void setResize(boolean b)
 o getResizeMode
 public com.elegantchaos.beans.quicktime.ResizeFlag getResizeMode()
 o setResizeMode
 public void setResizeMode(com.elegantchaos.beans.quicktime.ResizeFlag f)
 o getRotationAngle
 public float getRotationAngle()
returns rotation angle

 o setRotationAngle
 public void setRotationAngle(float a) throws quicktime.QTException
set rotation angle

 o getRotationAxis
 public java.awt.Point getRotationAxis()
returns rotation angle

 o setRotationAxis
 public void setRotationAxis(java.awt.Point a) throws quicktime.QTException
set rotation angle

 o isScale
 public boolean isScale()
returns whether the movie will be scaled (as opposed to clipped) when the bean is a different size

 o setScale
 public void setScale(boolean b)
set whether the movie will be scaled (as opposed to clipped) when the bean is a different size

 o isStopped
 public boolean isStopped()
is movie stopped?

 o setStopped
 public void setStopped(boolean b)
stop or play the movie

 o getTime
 public int getTime()
return the current time (the position) of the movie - defaults to zero when there is no movie

 o setTime
 public void setTime(int t)
set the time (position) of the movie

 o getVolume
 public float getVolume()
returns the volume of the movie

 o setVolume
 public void setVolume(float f)
sets the volume of the movie

 o assetRegistered
 public void assetRegistered(com.elegantchaos.beans.asset.AssetEvent ae)
sent to the movie when it has registered with an asset

 o assetLoading
 public void assetLoading(com.elegantchaos.beans.asset.AssetEvent ae)
sent to the movie to indicate that asset loading has started/finished/failed

 o assetUnregistered
 public void assetUnregistered(com.elegantchaos.beans.asset.AssetEvent ae)
sent to the movie to indicate that the asset has been unregistered

 o 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

 o assetChanged
 public void assetChanged(com.elegantchaos.beans.asset.AssetEvent ae)
sent to the movie to indicate that the movie asset has been changed

 o addMovieListener
 public synchronized void addMovieListener(com.elegantchaos.beans.quicktime.MovieListener al)
call this method to add a listener for movie events

 o removeMovieListener
 public synchronized void removeMovieListener(com.elegantchaos.beans.quicktime.MovieListener al)
call this method to remove a listener registered with addMovieListener()

 o atStart
 public void atStart(int time)
generate a MovieAtStart event

 o atEnd
 public void atEnd(int time)
 o atTime
 public void atTime(int time)

All Packages  Class Hierarchy  This Package  Previous  Next  Index