public class TimeController
extends java.lang.Object
Constructor and Description |
---|
TimeController(int rowsPerSecond) |
Modifier and Type | Method and Description |
---|---|
void |
addEventListener(moonlander.library.ControllerListener listener) |
double |
getCurrentRow() |
double |
getCurrentTime() |
boolean |
isPlaying() |
void |
pause() |
void |
play() |
void |
removeEventListener(moonlander.library.ControllerListener listener) |
void |
setCurrentRow(double row,
boolean silent) |
void |
update() |
public void update()
public void addEventListener(moonlander.library.ControllerListener listener)
public void removeEventListener(moonlander.library.ControllerListener listener)
public double getCurrentRow()
public double getCurrentTime()
public void setCurrentRow(double row, boolean silent)
row
- new row valuesilent
- to suppress notificationspublic boolean isPlaying()
public void pause()
public void play()
Processing library Moonlander by Antti Hirvonen. (c) 2018