|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jrummikub.control.TurnTimer
public class TurnTimer
Count-down timer used to limit the turn time
Constructor Summary | |
---|---|
TurnTimer(IView view)
Create a new timer using a given view to display the current time left |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent arg0)
|
IEvent |
getTimeRunOutEvent()
Returns the event that is emitted if the timer timed out. |
void |
startTimer()
Starts the timer |
void |
stopTimer()
Stops the timer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TurnTimer(IView view)
view
- view to displayMethod Detail |
---|
public void startTimer()
ITurnTimer
startTimer
in interface ITurnTimer
public void stopTimer()
ITurnTimer
stopTimer
in interface ITurnTimer
public void actionPerformed(java.awt.event.ActionEvent arg0)
actionPerformed
in interface java.awt.event.ActionListener
public IEvent getTimeRunOutEvent()
ITurnTimer
getTimeRunOutEvent
in interface ITurnTimer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |