org.alchar.jdtk.jsapi
Class DTKSynthesizerEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.speech.SpeechEvent
          extended by javax.speech.EngineEvent
              extended by javax.speech.synthesis.SynthesizerEvent
                  extended by org.alchar.jdtk.jsapi.DTKSynthesizerEvent
All Implemented Interfaces:
Serializable

public class DTKSynthesizerEvent
extends SynthesizerEvent

This class extends the JSAPI SynthesizerEvent class. It provides a more verbose textual event representation than the default one.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.speech.synthesis.SynthesizerEvent
QUEUE_EMPTIED, QUEUE_UPDATED, topOfQueueChanged
 
Fields inherited from class javax.speech.EngineEvent
ENGINE_ALLOCATED, ENGINE_ALLOCATING_RESOURCES, ENGINE_DEALLOCATED, ENGINE_DEALLOCATING_RESOURCES, ENGINE_PAUSED, ENGINE_RESUMED, newEngineState, oldEngineState
 
Fields inherited from class javax.speech.SpeechEvent
id
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DTKSynthesizerEvent(Synthesizer source, int id, boolean queueTopDiff, long oldState, long newState)
          Create a new synthesizer event with the given parameters.
 
Method Summary
 void paramString(StringBuilder sb)
          Add a textual representation to the given string builder.
 
Methods inherited from class javax.speech.synthesis.SynthesizerEvent
getTopOfQueueChanged
 
Methods inherited from class javax.speech.EngineEvent
getNewEngineState, getOldEngineState
 
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
 

Constructor Detail

DTKSynthesizerEvent

public DTKSynthesizerEvent(Synthesizer source,
                           int id,
                           boolean queueTopDiff,
                           long oldState,
                           long newState)
Create a new synthesizer event with the given parameters.

Parameters:
source - Event source
id - Event id
queueTopDiff - Top of queue changed
oldState - Old engine state
newState - New engine state
Method Detail

paramString

public void paramString(StringBuilder sb)
Add a textual representation to the given string builder.

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


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