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 long
PLAYER_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 void
doUpdateAudioAnnotation(long position, long length, boolean haveClip)
protected AudioPlayer
getAudioPlayer()
javax.sound.sampled.Clip
getClip()
java.lang.String
getClipStatus()
void
onActionPerformed(java.awt.event.ActionEvent e)
protected void
onClipStart(javax.sound.sampled.LineEvent e)
protected void
onClipStop(javax.sound.sampled.LineEvent e)
protected void
onPlayerUpdate()
protected void
onPlayPressed(java.awt.event.ActionEvent e)
protected void
onStopPressed(java.awt.event.ActionEvent e)
void
pauseClip()
protected void
playPressed(java.awt.event.ActionEvent e)
protected void
setAudioPlayer(AudioPlayer audioPlayer)
void
setClip(javax.sound.sampled.Clip clip)
void
startClip()
protected void
startPlayerUpdate()
void
stopClip()
protected void
stopPlayerUpdate()
protected void
stopPressed(java.awt.event.ActionEvent e)
void
update(javax.sound.sampled.LineEvent e)
protected void
updateAudioAnnotation()
-
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:
onActionPerformed
in 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:
update
in 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()
-
-