proguard.gui.splash
Class SawToothTiming

java.lang.Object
  extended by proguard.gui.splash.SawToothTiming

public class SawToothTiming
extends java.lang.Object

This Timing ramps up linearly from 0 to 1 in a given repeated time interval.


Constructor Summary
SawToothTiming(long period, long phase)
          Creates a new SawToothTiming.
 
Method Summary
 double getTiming(long time)
          Returns the timing for the given time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SawToothTiming

public SawToothTiming(long period,
                      long phase)
Creates a new SawToothTiming.

Parameters:
period - the time period for a full cycle.
phase - the phase of the cycle, which is added to the actual time.
Method Detail

getTiming

public double getTiming(long time)
Returns the timing for the given time.