NASA World Wind

gov.nasa.worldwind.examples.util
Class AudioPlayerAnnotationController

java.lang.Object
  extended by gov.nasa.worldwind.examples.util.DialogAnnotationController
      extended by gov.nasa.worldwind.examples.util.AudioPlayerAnnotationController
All Implemented Interfaces:
SelectListener, ActionListener, EventListener, LineListener

public class AudioPlayerAnnotationController
extends DialogAnnotationController
implements LineListener


Field Summary
protected static long PLAYER_UPDATE_DELAY_MILLIS
           
 
Fields inherited from class gov.nasa.worldwind.examples.util.DialogAnnotationController
toolTipComponent
 
Constructor Summary
AudioPlayerAnnotationController(WorldWindow worldWindow, AudioPlayerAnnotation audioAnnotation)
           
AudioPlayerAnnotationController(WorldWindow worldWindow, AudioPlayerAnnotation audioAnnotation, Clip clip)
           
 
Method Summary
protected  void doUpdateAudioAnnotation(long position, long length, boolean haveClip)
           
protected  AudioPlayer getAudioPlayer()
           
 Clip getClip()
           
 String getClipStatus()
           
 void onActionPerformed(ActionEvent e)
           
protected  void onClipStart(LineEvent e)
           
protected  void onClipStop(LineEvent e)
           
protected  void onPlayerUpdate()
           
protected  void onPlayPressed(ActionEvent e)
           
protected  void onStopPressed(ActionEvent e)
           
 void pauseClip()
           
protected  void playPressed(ActionEvent e)
           
protected  void setAudioPlayer(AudioPlayer audioPlayer)
           
 void setClip(Clip clip)
           
 void startClip()
           
protected  void startPlayerUpdate()
           
 void stopClip()
           
protected  void stopPlayerUpdate()
           
protected  void stopPressed(ActionEvent e)
           
 void update(LineEvent e)
           
protected  void updateAudioAnnotation()
           
 
Methods inherited from class gov.nasa.worldwind.examples.util.DialogAnnotationController
actionPerformed, doDisable, doEnable, forwardToButtonAnnotations, getAnnotation, getToolTipPoint, getWorldWindow, glPointFromAwt, isEnabled, onSelected, selected, setAnnotation, setCursor, setEnabled, showToolTip, updateCursor, updateToolTip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLAYER_UPDATE_DELAY_MILLIS

protected static final long PLAYER_UPDATE_DELAY_MILLIS
See Also:
Constant Field Values
Constructor Detail

AudioPlayerAnnotationController

public AudioPlayerAnnotationController(WorldWindow worldWindow,
                                       AudioPlayerAnnotation audioAnnotation)

AudioPlayerAnnotationController

public AudioPlayerAnnotationController(WorldWindow worldWindow,
                                       AudioPlayerAnnotation audioAnnotation,
                                       Clip clip)
Method Detail

doUpdateAudioAnnotation

protected void doUpdateAudioAnnotation(long position,
                                       long length,
                                       boolean haveClip)

getAudioPlayer

protected AudioPlayer getAudioPlayer()

getClip

public Clip getClip()

getClipStatus

public String getClipStatus()

onActionPerformed

public void onActionPerformed(ActionEvent e)
Overrides:
onActionPerformed in class DialogAnnotationController

onClipStart

protected void onClipStart(LineEvent e)

onClipStop

protected void onClipStop(LineEvent e)

onPlayerUpdate

protected void onPlayerUpdate()

onPlayPressed

protected void onPlayPressed(ActionEvent e)

onStopPressed

protected void onStopPressed(ActionEvent e)

pauseClip

public void pauseClip()

playPressed

protected void playPressed(ActionEvent e)

setAudioPlayer

protected void setAudioPlayer(AudioPlayer audioPlayer)

setClip

public void setClip(Clip clip)

startClip

public void startClip()

startPlayerUpdate

protected void startPlayerUpdate()

stopClip

public void stopClip()

stopPlayerUpdate

protected void stopPlayerUpdate()

stopPressed

protected void stopPressed(ActionEvent e)

update

public void update(LineEvent e)
Specified by:
update in interface LineListener

updateAudioAnnotation

protected void updateAudioAnnotation()

NASA World Wind