org.stellarium.ui.fader
Class BooleanFader

java.lang.Object
  extended by org.stellarium.ui.fader.Fader
      extended by org.stellarium.ui.fader.BooleanFader

 class BooleanFader
extends Fader


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

Constructor Detail

BooleanFader

public BooleanFader(boolean _state)

BooleanFader

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

update

public void update(int delta_ticks)
Description copied from class: Fader
Increments the internal counter of delta_time ticks

Specified by:
update in class Fader

getInterstate

public float getInterstate()
Description copied from class: Fader
Gets current switch state

Specified by:
getInterstate in class Fader

getInterstatePercentage

public float getInterstatePercentage()
Specified by:
getInterstatePercentage in class Fader

set

public Fader set(boolean s)
Description copied from class: Fader
Switchors can be used just as bools

Specified by:
set in class Fader