com.guiseframework.platform.web
Class WebAudioDepictor

java.lang.Object
  extended by com.guiseframework.platform.AbstractDepictor<O>
      extended by com.guiseframework.platform.web.AbstractWebDepictor<Audio>
          extended by com.guiseframework.platform.web.WebAudioDepictor
All Implemented Interfaces:
Audio.Depictor<Audio>, Depictor<Audio>

public class WebAudioDepictor
extends AbstractWebDepictor<Audio>
implements Audio.Depictor<Audio>

A web depictor for Guise audio.

Author:
Garret Wilson

Nested Class Summary
static class WebAudioDepictor.AudioCommand
          The web commands for controlling audio.
 
Nested classes/interfaces inherited from class com.guiseframework.platform.AbstractDepictor
AbstractDepictor.DepictedPropertyChangeListener
 
Field Summary
 
Fields inherited from interface com.guiseframework.platform.Depictor
GENERAL_PROPERTY
 
Constructor Summary
WebAudioDepictor()
           
 
Method Summary
 void pause()
          Requests that the audio pause.
 void play()
          Requests that the audio start.
 void processEvent(PlatformEvent event)
          Processes an event from the platform.
 void setTimePosition(long newTimePosition)
          Requests a new time-based play position.
 void stop()
          Requests that the audio stop.
 
Methods inherited from class com.guiseframework.platform.web.AbstractWebDepictor
getPlatform
 
Methods inherited from class com.guiseframework.platform.AbstractDepictor
depict, depictedObjectPropertyChange, getDepictContext, getDepictedObject, getDepictedPropertyChangeListener, getIgnoredProperties, getModifiedProperties, getSession, installed, isDepicted, setDepicted, setPropertyModified, uninstalled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.guiseframework.platform.Depictor
depict, getDepictContext, getDepictedObject, getPlatform, getSession, installed, isDepicted, setDepicted, uninstalled
 

Constructor Detail

WebAudioDepictor

public WebAudioDepictor()
Method Detail

play

public void play()
Requests that the audio start.

Specified by:
play in interface Audio.Depictor<Audio>

pause

public void pause()
Requests that the audio pause.

Specified by:
pause in interface Audio.Depictor<Audio>

stop

public void stop()
Requests that the audio stop.

Specified by:
stop in interface Audio.Depictor<Audio>

setTimePosition

public void setTimePosition(long newTimePosition)
Requests a new time-based play position.

Specified by:
setTimePosition in interface Audio.Depictor<Audio>
Parameters:
newTimePosition - The new play position in microseconds.
Throws:
java.lang.IllegalArgumentException - if the given position is negative.

processEvent

public void processEvent(PlatformEvent event)
Processes an event from the platform.

Specified by:
processEvent in interface Depictor<Audio>
Overrides:
processEvent in class AbstractDepictor<Audio>
Parameters:
event - The event to be processed.
Throws:
java.lang.IllegalArgumentException - if the given event is a relevant DepictEvent with a source of a different depicted object.


Copyright © 2005-2010 GlobalMentor, Inc. All Rights Reserved.