gov.nasa.worldwind.examples.util
Class AudioPlayerAnnotationController
java.lang.Object
gov.nasa.worldwind.examples.util.DialogAnnotationController
gov.nasa.worldwind.examples.util.AudioPlayerAnnotationController
- All Implemented Interfaces:
- SelectListener, ActionListener, EventListener, LineListener
public class AudioPlayerAnnotationController
- extends DialogAnnotationController
- implements LineListener
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 |
PLAYER_UPDATE_DELAY_MILLIS
protected static final long PLAYER_UPDATE_DELAY_MILLIS
- See Also:
- Constant Field Values
AudioPlayerAnnotationController
public AudioPlayerAnnotationController(WorldWindow worldWindow,
AudioPlayerAnnotation audioAnnotation)
AudioPlayerAnnotationController
public AudioPlayerAnnotationController(WorldWindow worldWindow,
AudioPlayerAnnotation audioAnnotation,
Clip clip)
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()