|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.multiply.processing.TimedEventGenerator
public class TimedEventGenerator
| Field Summary | |
|---|---|
static String |
VERSION
|
| Constructor Summary | |
|---|---|
TimedEventGenerator(PApplet parentApplet)
Construct an enabled TimedEventGenerator with the default event handler name of onTimerEvent and the default interval of 500ms. |
|
TimedEventGenerator(PApplet parentApplet,
String timerEventName)
Construct an enabled TimedEventGenerator with a custom event handler name and the default interval of 500ms. |
|
TimedEventGenerator(PApplet parentApplet,
String timerEventName,
boolean isEnabled)
Construct a TimedEventGenerator with a specific event handler name and specific enabled status. |
|
TimedEventGenerator(PApplet parentApplet,
String timerEventName,
boolean isEnabled,
int intervalMs)
Construct a TimedEventGenerator with a specific event handler name, a specific enabled status and a specific interval. |
|
| Method Summary | |
|---|---|
int |
getIntervalMs()
Returns the currently configured number of milliseconds between timer events firing. |
boolean |
isEnabled()
|
void |
setEnabled(boolean isEnabled)
Turns the timer on or off according to the isEnabled argument. |
void |
setIntervalMs(int intervalMs)
Set the number of milliseconds between timer events firing. |
static String |
version()
return the version of the library. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String VERSION
| Constructor Detail |
|---|
public TimedEventGenerator(PApplet parentApplet)
onTimerEvent and the default interval of 500ms.
parentApplet - the parent Applet that this library runs inside (this in your sketch).
public TimedEventGenerator(PApplet parentApplet,
String timerEventName)
parentApplet - the parent Applet that this library runs inside (this in your sketch).timerEventName - the name of the method to invoke when the timer fires.
public TimedEventGenerator(PApplet parentApplet,
String timerEventName,
boolean isEnabled)
parentApplet - the parent Applet that this library runs inside (this in your sketch).timerEventName - the name of the method to invoke when the timer fires.isEnabled - determines if the TimedEventGenerator starts off active or not.
public TimedEventGenerator(PApplet parentApplet,
String timerEventName,
boolean isEnabled,
int intervalMs)
parentApplet - the parent Applet that this library runs inside (this in your sketch).timerEventName - the name of the method to invoke when the timer fires.isEnabled - determines if the TimedEventGenerator starts off enabled or not.| Method Detail |
|---|
public boolean isEnabled()
public void setEnabled(boolean isEnabled)
isEnabled argument.
isEnabled - whether or not the timer event will fire in the parent sketch.public int getIntervalMs()
public void setIntervalMs(int intervalMs)
intervalMs - the interval time, in milliseconds.public static String version()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||