proguard.gui.splash
Class SawToothTiming

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

public class SawToothTiming
extends Object

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

Author:
Eric Lafortune

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.



Copyright © 2012. All Rights Reserved.