Class DelayTimer

  • All Implemented Interfaces:
    Runnable

    public class DelayTimer
    extends Object
    implements Runnable
    A timer where you can attach a timer to. Once the time is up, the listeners are fired off.
    Author:
    matt
    • Constructor Detail

      • DelayTimer

        public DelayTimer​(int delayInMiliseconds)
      • DelayTimer

        public DelayTimer​(int delayInMilliseconds,
                          DelayListener delayListener)
    • Method Detail

      • reset

        public void reset()
      • run

        public void run()
        Specified by:
        run in interface Runnable
      • stop

        public void stop()
      • addDelayListener

        public void addDelayListener​(DelayListener delayListener)
      • getDelayInMilliseconds

        public int getDelayInMilliseconds()
        Returns:
        the delay in milliseconds
      • setDelayInSeconds

        public void setDelayInSeconds​(int delayInMilliseconds)
        Parameters:
        delayInMilliseconds - the delay in milliseconds to set