|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.speech.engine.EngineMonitor com.sun.speech.engine.synthesis.SynthesizerMonitor
Simple GUI that monitors events and state changes of an
Synthesizer
. Used for debugging and testing purposes.
Nested Class Summary |
Nested classes inherited from class com.sun.speech.engine.EngineMonitor |
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. |
Method Summary | |
protected java.lang.String |
engineStateString(long state)
Returns a String representing the
state . |
protected javax.speech.EngineListener |
getEngineListener()
Creates the engine listener if necessary, and then returns it. |
java.awt.Component |
getStatePanel()
Gets the panel containing the labels for representing the current engine state. |
protected void |
handleEvent(javax.speech.EngineEvent e)
Handles an event from the engine. |
protected void |
updateGUIComponents()
Checks the current state of the engine and makes sure the GUI components reflect this state accurately. |
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 |
Field Detail |
protected javax.swing.JLabel queueEmptyLabel
protected javax.swing.JLabel queueNotEmptyLabel
protected javax.swing.JLabel queueSizeLabel
Constructor Detail |
public SynthesizerMonitor(javax.speech.synthesis.Synthesizer synth)
synth
- the Synthesizer
to monitorMethod Detail |
protected javax.speech.EngineListener getEngineListener()
EngineMonitor
getEngineListener
in class EngineMonitor
public java.awt.Component getStatePanel()
getStatePanel
in class EngineMonitor
protected void updateGUIComponents()
EngineMonitor
updateGUIComponents
in class EngineMonitor
protected java.lang.String engineStateString(long state)
EngineMonitor
String
representing the
state
.
engineStateString
in class EngineMonitor
state
- the state to turn into a String
String
representing the
state
protected void handleEvent(javax.speech.EngineEvent e)
EngineMonitor
handleEvent
in class EngineMonitor
e
- the event from the engine
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |