ProGuard

proguard.gui.splash
Class SawToothTiming

java.lang.Object
  extended byproguard.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
 

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)
Description copied from interface: proguard.gui.splash.Timing
Returns the timing for the given time.

Specified by:
getTiming in interface proguard.gui.splash.Timing

ProGuard