Class AudioPlayerAnnotationController
- java.lang.Object
-
- gov.nasa.worldwindx.examples.util.DialogAnnotationController
-
- gov.nasa.worldwindx.examples.util.AudioPlayerAnnotationController
-
- All Implemented Interfaces:
SelectListener,java.awt.event.ActionListener,java.util.EventListener,javax.sound.sampled.LineListener
public class AudioPlayerAnnotationController extends DialogAnnotationController implements javax.sound.sampled.LineListener
-
-
Field Summary
Fields Modifier and Type Field Description protected static longPLAYER_UPDATE_DELAY_MILLIS-
Fields inherited from class gov.nasa.worldwindx.examples.util.DialogAnnotationController
toolTipComponent
-
-
Constructor Summary
Constructors Constructor Description AudioPlayerAnnotationController(WorldWindow worldWindow, AudioPlayerAnnotation audioAnnotation)AudioPlayerAnnotationController(WorldWindow worldWindow, AudioPlayerAnnotation audioAnnotation, javax.sound.sampled.Clip clip)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoUpdateAudioAnnotation(long position, long length, boolean haveClip)protected AudioPlayergetAudioPlayer()javax.sound.sampled.ClipgetClip()java.lang.StringgetClipStatus()voidonActionPerformed(java.awt.event.ActionEvent e)protected voidonClipStart(javax.sound.sampled.LineEvent e)protected voidonClipStop(javax.sound.sampled.LineEvent e)protected voidonPlayerUpdate()protected voidonPlayPressed(java.awt.event.ActionEvent e)protected voidonStopPressed(java.awt.event.ActionEvent e)voidpauseClip()protected voidplayPressed(java.awt.event.ActionEvent e)protected voidsetAudioPlayer(AudioPlayer audioPlayer)voidsetClip(javax.sound.sampled.Clip clip)voidstartClip()protected voidstartPlayerUpdate()voidstopClip()protected voidstopPlayerUpdate()protected voidstopPressed(java.awt.event.ActionEvent e)voidupdate(javax.sound.sampled.LineEvent e)protected voidupdateAudioAnnotation()-
Methods inherited from class gov.nasa.worldwindx.examples.util.DialogAnnotationController
actionPerformed, doDisable, doEnable, forwardToButtonAnnotations, getAnnotation, getToolTipPoint, getWorldWindow, glPointFromAwt, isEnabled, onSelected, selected, setAnnotation, setCursor, setEnabled, showToolTip, updateCursor, updateToolTip
-
-
-
-
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, javax.sound.sampled.Clip clip)
-
AudioPlayerAnnotationController
public AudioPlayerAnnotationController(WorldWindow worldWindow, AudioPlayerAnnotation audioAnnotation)
-
-
Method Detail
-
getClip
public javax.sound.sampled.Clip getClip()
-
setClip
public void setClip(javax.sound.sampled.Clip clip)
-
getAudioPlayer
protected AudioPlayer getAudioPlayer()
-
setAudioPlayer
protected void setAudioPlayer(AudioPlayer audioPlayer)
-
getClipStatus
public java.lang.String getClipStatus()
-
startClip
public void startClip()
-
stopClip
public void stopClip()
-
pauseClip
public void pauseClip()
-
updateAudioAnnotation
protected void updateAudioAnnotation()
-
doUpdateAudioAnnotation
protected void doUpdateAudioAnnotation(long position, long length, boolean haveClip)
-
onActionPerformed
public void onActionPerformed(java.awt.event.ActionEvent e)
- Overrides:
onActionPerformedin classDialogAnnotationController
-
playPressed
protected void playPressed(java.awt.event.ActionEvent e)
-
stopPressed
protected void stopPressed(java.awt.event.ActionEvent e)
-
onPlayPressed
protected void onPlayPressed(java.awt.event.ActionEvent e)
-
onStopPressed
protected void onStopPressed(java.awt.event.ActionEvent e)
-
update
public void update(javax.sound.sampled.LineEvent e)
- Specified by:
updatein interfacejavax.sound.sampled.LineListener
-
onClipStart
protected void onClipStart(javax.sound.sampled.LineEvent e)
-
onClipStop
protected void onClipStop(javax.sound.sampled.LineEvent e)
-
onPlayerUpdate
protected void onPlayerUpdate()
-
startPlayerUpdate
protected void startPlayerUpdate()
-
stopPlayerUpdate
protected void stopPlayerUpdate()
-
-