org.stellarium.ui.fader
Class Fader

java.lang.Object
  extended by org.stellarium.ui.fader.Fader
Direct Known Subclasses:
BooleanFader, LinearFader, ParabolicFader

public abstract class Fader
extends java.lang.Object

Class which manages a (usually smooth) transition between two states (typically ON/OFF) in function of a counter It used for various purpose like smooth transitions between

Version:
Java
Author:
Jerome Beau

Field Summary
protected  float max_value
           
protected  float min_value
           
protected  boolean state
           
 
Constructor Summary
Fader(boolean _state)
           
Fader(boolean _state, float _min_value, float _max_value)
           
 
Method Summary
 boolean booleanValue()
           
 boolean equals(boolean s)
           
abstract  float getInterstate()
          Gets current switch state
abstract  float getInterstatePercentage()
           
 boolean getState()
           
abstract  Fader set(boolean s)
          Switchors can be used just as bools
 void setDuration(int _duration)
           
 void setMaxValue(float _max)
           
 void setMinValue(float _min)
           
abstract  void update(int delta_ticks)
          Increments the internal counter of delta_time ticks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

state

protected boolean state

min_value

protected float min_value

max_value

protected float max_value
Constructor Detail

Fader

public Fader(boolean _state)

Fader

public Fader(boolean _state,
             float _min_value,
             float _max_value)
Method Detail

update

public abstract void update(int delta_ticks)
Increments the internal counter of delta_time ticks


getInterstate

public abstract float getInterstate()
Gets current switch state


getInterstatePercentage

public abstract float getInterstatePercentage()

set

public abstract Fader set(boolean s)
Switchors can be used just as bools


equals

public boolean equals(boolean s)

booleanValue

public boolean booleanValue()

setDuration

public void setDuration(int _duration)

setMinValue

public void setMinValue(float _min)

setMaxValue

public void setMaxValue(float _max)

getState

public boolean getState()