org.alchar.jdtk
Class CallBackEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.speech.SpeechEvent
          extended by org.alchar.jdtk.CallBackEvent
All Implemented Interfaces:
Serializable

public class CallBackEvent
extends SpeechEvent

This class implements an event that is sent when a call back is received from the DECtalk software speech synthesizer.

See Also:
Serialized Form

Field Summary
static int AUDIO_STARTED
           
static int AUDIO_STOPPED
           
static int INDEX_MARK
           
 
Fields inherited from class javax.speech.SpeechEvent
id
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CallBackEvent(Object source, int id)
          Create a new call back event with the given source and id.
CallBackEvent(Object source, int id, int mark)
          Create a new call back event with the given source, id, and index mark.
 
Method Summary
 int getMark()
          Return the value of the index mark.
 void paramString(StringBuilder sb)
          Add specific event related information to the string representation.
 
Methods inherited from class javax.speech.SpeechEvent
getId, paramString, toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INDEX_MARK

public static final int INDEX_MARK
See Also:
Constant Field Values

AUDIO_STARTED

public static final int AUDIO_STARTED
See Also:
Constant Field Values

AUDIO_STOPPED

public static final int AUDIO_STOPPED
See Also:
Constant Field Values
Constructor Detail

CallBackEvent

public CallBackEvent(Object source,
                     int id,
                     int mark)
Create a new call back event with the given source, id, and index mark.

Parameters:
source - Event source
id - Event id
mark - Index mark

CallBackEvent

public CallBackEvent(Object source,
                     int id)
Create a new call back event with the given source and id.

Parameters:
source - Event source
id - Event id
Method Detail

getMark

public int getMark()
Return the value of the index mark.

Returns:
Index mark

paramString

public void paramString(StringBuilder sb)
Add specific event related information to the string representation.

Overrides:
paramString in class SpeechEvent
Parameters:
sb - String builder


Copyright © 2007-2009 Kris Van Hees. All Rights Reserved.