org.openstreetmap.josm.tools
Class AudioPlayer.Execute

java.lang.Object
  extended by org.openstreetmap.josm.tools.AudioPlayer.Execute
Enclosing class:
AudioPlayer

private class AudioPlayer.Execute
extends java.lang.Object

Passes information from the control thread to the playing thread


Field Summary
private  AudioPlayer.Command command
           
private  java.lang.Exception exception
           
private  double offset
           
private  AudioPlayer.Result result
           
private  double speed
           
private  java.net.URL url
           
 
Constructor Summary
private AudioPlayer.Execute()
           
 
Method Summary
protected  AudioPlayer.Command command()
           
protected  void failed(java.lang.Exception e)
           
protected  double offset()
           
protected  void ok(AudioPlayer.State newState)
           
protected  void pause()
           
protected  void play(java.net.URL url, double offset, double speed)
           
private  void possiblyInterrupt()
           
private  void send()
           
protected  double speed()
           
protected  java.net.URL url()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

command

private AudioPlayer.Command command

result

private AudioPlayer.Result result

exception

private java.lang.Exception exception

url

private java.net.URL url

offset

private double offset

speed

private double speed
Constructor Detail

AudioPlayer.Execute

private AudioPlayer.Execute()
Method Detail

play

protected void play(java.net.URL url,
                    double offset,
                    double speed)
             throws java.lang.Exception
Throws:
java.lang.Exception

pause

protected void pause()
              throws java.lang.Exception
Throws:
java.lang.Exception

send

private void send()
           throws java.lang.Exception
Throws:
java.lang.Exception

possiblyInterrupt

private void possiblyInterrupt()
                        throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

failed

protected void failed(java.lang.Exception e)

ok

protected void ok(AudioPlayer.State newState)

offset

protected double offset()

speed

protected double speed()

url

protected java.net.URL url()

command

protected AudioPlayer.Command command()


JOSM