Package org.tomighty.time

Examples of org.tomighty.time.Time


  }

  @Override
  protected Time initialTime() {
    int minutes = options.time().pomodoro();
    return new Time(minutes);
  }
View Full Code Here


    return remainingTime;
  }
 
  @Override
  public void afterRendering() {
    Time time = initialTime();
    remainingTime.setText(time.toString());
    timer.start(time, phase());
    soundPlayer.play(sounds.wind()).playRepeatedly(sounds.tictac());
  }
View Full Code Here

  }
 
  private class UpdateTime implements Subscriber<TimerTick> {
    @Override
    public void receive(TimerTick tick) {
      final Time time = tick.getTime();
      invokeLater(new Runnable() {
        @Override
        public void run() {
          remainingTime.setText(time.toString());
        }
      });
    }
View Full Code Here

  }

  @Override
  protected Time initialTime() {
    int minutes = options.time().shortBreak();
    return new Time(minutes);
  }
View Full Code Here

  }

  @Override
  protected Time initialTime() {
    int minutes = options.time().longBreak();
    return new Time(minutes);
  }
View Full Code Here

  private class UpdateTimeOnTray implements Subscriber<TimerTick> {
    @Override
    public void receive(TimerTick tick) {
      if(options.ui().showTimeOnTray()) {
        Time time = tick.getTime();
        Image image = icons.time(time);
        trayIcon.setImage(image);
      }
    }
View Full Code Here

TOP

Related Classes of org.tomighty.time.Time

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.