org.gamenet.application.mm8leveleditor.handler
Class WavHandler
java.lang.Object
org.gamenet.application.mm8leveleditor.handler.WavHandler
- All Implemented Interfaces:
- ControllerListener, LodResourceHandler
- public class WavHandler
- extends Object
- implements LodResourceHandler, ControllerListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bytearrayinputstream
private ByteArrayInputStream bytearrayinputstream
player
Player player
visualComponent
Component visualComponent
controlComponent
Component controlComponent
progressBar
Component progressBar
firstTime
boolean firstTime
CachingSize
long CachingSize
panel
Panel panel
controlPanelHeight
int controlPanelHeight
videoWidth
int videoWidth
videoHeight
int videoHeight
canStartAgain
boolean canStartAgain
WavHandler
public WavHandler()
getComponentFor
public Component getComponentFor(LodResource lodResource,
TaskObserver taskObserver)
- Specified by:
getComponentFor
in interface LodResourceHandler
initPlayer
public void initPlayer(ByteArrayInputStream bytearrayinputstream)
- Read the applet file parameter and create the media
player.
start
public void start()
- Start media file playback. This function is called the
first time that the Applet runs and every
time the user re-enters the page.
stop
public void stop()
- Stop media file playback and release resource before
leaving the page.
destroy
public void destroy()
controllerUpdate
public void controllerUpdate(ControllerEvent event)
- This controllerUpdate function must be defined in order to
implement a ControllerListener interface. This
function will be called whenever there is a media event
- Specified by:
controllerUpdate
in interface ControllerListener
getUpdatedLodResource
public LodResource getUpdatedLodResource()
- Specified by:
getUpdatedLodResource
in interface LodResourceHandler