synthesis
Class SynthesizerMonitor
java.lang.Object
com.sun.speech.engine.EngineMonitor
synthesis.SynthesizerMonitor
public class SynthesizerMonitor
- extends com.sun.speech.engine.EngineMonitor
Simple GUI that monitors events and state changes of an
Synthesizer
. Used for debugging and testing purposes.
Nested classes/interfaces inherited from class com.sun.speech.engine.EngineMonitor |
com.sun.speech.engine.EngineMonitor.EngineMonitorEngineListener |
Field Summary |
protected javax.swing.JLabel |
queueEmptyLabel
Label containing "queue empty" |
protected javax.swing.JLabel |
queueNotEmptyLabel
Label containing "queue not empty" |
protected javax.swing.JLabel |
queueSizeLabel
Label containing "queue size" |
Fields inherited from class com.sun.speech.engine.EngineMonitor |
allocatedLabel, allocatingResourcesLabel, deallocatedLabel, deallocatingResourcesLabel, engine, engineListener, eventPanel, pausedLabel, resumedLabel, statePanel |
Constructor Summary |
SynthesizerMonitor(javax.speech.synthesis.Synthesizer synth)
Class constructor. |
Methods inherited from class com.sun.speech.engine.EngineMonitor |
appendBuffer, getEventPanel, updateEngineStateComponents |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
queueEmptyLabel
protected javax.swing.JLabel queueEmptyLabel
- Label containing "queue empty"
queueNotEmptyLabel
protected javax.swing.JLabel queueNotEmptyLabel
- Label containing "queue not empty"
queueSizeLabel
protected javax.swing.JLabel queueSizeLabel
- Label containing "queue size"
SynthesizerMonitor
public SynthesizerMonitor(javax.speech.synthesis.Synthesizer synth)
- Class constructor.
- Parameters:
synth
- the Synthesizer
to monitor
getEngineListener
protected javax.speech.EngineListener getEngineListener()
- Overrides:
getEngineListener
in class com.sun.speech.engine.EngineMonitor
getStatePanel
public java.awt.Component getStatePanel()
- Gets the panel containing the labels for representing the
current engine state. This augments the super class's panel
by adding synthesizer queue state.
- Overrides:
getStatePanel
in class com.sun.speech.engine.EngineMonitor
- Returns:
- the panel containing the labels for representing the
current engine state.
updateGUIComponents
protected void updateGUIComponents()
- Overrides:
updateGUIComponents
in class com.sun.speech.engine.EngineMonitor
engineStateString
protected java.lang.String engineStateString(long state)
- Overrides:
engineStateString
in class com.sun.speech.engine.EngineMonitor
handleEvent
protected void handleEvent(javax.speech.EngineEvent e)
- Overrides:
handleEvent
in class com.sun.speech.engine.EngineMonitor