public class PromptManager
extends java.lang.Object
implements java.awt.event.ActionListener
PromptPopup| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
Listen to the events sent by drawers and the application and manage the
prompts accordingly.
|
static void |
addPrompt(PromptPopup pp)
Add a prompt to the list of active prompts.
|
static void |
draw()
The draw loop calls the draw() method of every active prompt and also
removes the prompts that exceeded their time to live and became
invisible.
|
static void |
init(processing.core.PApplet parent)
Initialise the Prompt Manager.
|
static void |
pause()
Pause all timers and all active prompts.
|
static void |
pre()
This functions runs before a draw() function is called and manages the
creation and the flow of prompts.
|
static void |
reset()
Reset the state of the Prompt Manager and the timers.
|
static void |
resume()
Resume all timers and all active prompts.
|
public static void init(processing.core.PApplet parent)
parent - parent appletpublic static void reset()
init(PApplet).public static void pause()
PromptPopup.pause(),
Timer.pause()public static void resume()
PromptPopup.resume(),
Timer.resume()public static void addPrompt(PromptPopup pp)
pp - a new prompt.public static void draw()
PromptPopup.draw()public static void pre()
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed in interface java.awt.event.ActionListener