public class Clock
extends java.lang.Object
Constructor and Description |
---|
Clock() |
Modifier and Type | Method and Description |
---|---|
void |
addClockTimeoutListener(ClockTimeoutListener listener)
Adds a new event listener to the list of event listeners.
|
void |
addTstates(int states) |
long |
getFrames() |
int |
getTstates() |
void |
removeClockTimeoutListener(ClockTimeoutListener listener)
Remove a new event listener from the list of event listeners.
|
void |
reset() |
void |
setTimeout(int ntstates) |
void |
setTstates(int states) |
public void addClockTimeoutListener(ClockTimeoutListener listener)
listener
- The new event listener.java.lang.NullPointerException
- Thrown if the listener argument is null.public void removeClockTimeoutListener(ClockTimeoutListener listener)
listener
- The event listener to remove.java.lang.NullPointerException
- Thrown if the listener argument is null.java.lang.IllegalArgumentException
- Thrown if the listener wasn't registered.public int getTstates()
public void setTstates(int states)
states
- the tstates to setpublic void addTstates(int states)
public long getFrames()
public void reset()
public void setTimeout(int ntstates)