/** Call this method every 10 sec and supply a new data point. */ public void update(float f) { counter = (counter + 1) % 360; // 1hour/10sec = 60mins/10sec=3600secs/10sec = 360 sec10.update(f); if (counter % 6 == 0) min.update(f); if (counter == 0) hour.update(f); }