ProGuard

proguard.gui.splash
Class SineTiming

java.lang.Object
  extended byproguard.gui.splash.SineTiming
All Implemented Interfaces:
proguard.gui.splash.Timing

public class SineTiming
extends Object
implements proguard.gui.splash.Timing

This Timing varies between 0 and 1, as a sine wave over time.


Constructor Summary
SineTiming(long period, long phase)
          Creates a new SineTiming.
 
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

SineTiming

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

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