proguard.gui.splash
Class LinearColor

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

public class LinearColor
extends Object

This VariableColor varies linearly with respect to its Timing.

Author:
Eric Lafortune

Constructor Summary
LinearColor(Color fromValue, Color toValue, proguard.gui.splash.Timing timing)
          Creates a new LinearColor.
 
Method Summary
 Color getColor(long time)
          Returns the Color for the given time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinearColor

public LinearColor(Color fromValue,
                   Color toValue,
                   proguard.gui.splash.Timing timing)
Creates a new LinearColor.

Parameters:
fromValue - the value that corresponds to a timing of 0.
toValue - the value that corresponds to a timing of 1.
timing - the applied timing.
Method Detail

getColor

public Color getColor(long time)
Returns the Color for the given time.



Copyright © 2012. All Rights Reserved.