|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectspeech.SentenceScheduler
public class SentenceScheduler
This class is used to schedule the rendering of sentences
| Constructor Summary | |
|---|---|
SentenceScheduler()
|
|
| Method Summary | |
|---|---|
void |
add(Sentence s)
Adds a sentence object to the sentence scheduler |
void |
clear()
Removes every sentence from the queue |
java.util.LinkedList<Sentence> |
getSentences()
Returns the sentences in the sentece scheduler |
void |
render(java.awt.Graphics2D g)
Calls the render method of the first sentence in the queue |
void |
update(long elapsedTime)
Updates the sentence scheduler. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SentenceScheduler()
| Method Detail |
|---|
public void add(Sentence s)
s - the sentece to add to the schedulerpublic void clear()
public java.util.LinkedList<Sentence> getSentences()
public void update(long elapsedTime)
elapsedTime - time between two framespublic void render(java.awt.Graphics2D g)
g -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||