proguard.gui.splash
Class SawToothTiming
java.lang.Object
proguard.gui.splash.SawToothTiming
- All Implemented Interfaces:
- proguard.gui.splash.Timing
- public class SawToothTiming
- extends Object
- implements proguard.gui.splash.Timing
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 |
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.
getTiming
public double getTiming(long time)
- Description copied from interface:
proguard.gui.splash.Timing
- Returns the timing for the given time.
- Specified by:
getTiming in interface proguard.gui.splash.Timing