org.stellarium.ui.fader
Class Fader
java.lang.Object
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
Constructor Summary |
Fader(boolean _state)
|
Fader(boolean _state,
float _min_value, float _max_value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
state
protected boolean state
min_value
protected float min_value
max_value
protected float max_value
Fader
public Fader(boolean _state)
Fader
public Fader(boolean _state,
float _min_value,
float _max_value)
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()
-