Alpha class methods

Alpha extends Object

Alpha methods construct and control alpha start and looping, or get the current value

Alpha( )

Constructs an Alpha object with mode = INCREASING_ENABLE, loopCount = -1, increasingAlphaDuration = 1000, all other parameters = 0, except StartTime. StartTime is set as the start time of the program.

Alpha(int loopCount, long increasingAlphaDuration)

This constructor takes only the loopCount and increasingAlphaDuration as parameters, sets the mode to INCREASING_ENABLE and assigns 0 to all of the other parameters (except StartTime).

Alpha(int loopCount, long triggerTime, long phaseDelayDuration,    
   long increasingAlphaDuration, long increasingAlphaRampDuration,
   long alphaAtOneDuration)

Constructs a new Alpha object and sets the mode to INCREASING_ENABLE.

Alpha(int loopCount, int mode, long triggerTime, long phaseDelayDuration,
   long increasingAlphaDuration, long increasingAlphaRampDuration,
   long alphaAtOneDuration, long decreasingAlphaDuration,
   long decreasingAlphaRampDuration, long alphaAtZeroDuration)

This constructor takes all of the Alpha user-definable parameters.

Get Alpha Value

float value( )
float value( long millisecs )

Independent setting

void setStartTime( long millisecs )
void setTriggerTime( long millisecs )
void setLoopCount( int count )
void setMode( int mode )
Alpha modes include INCREASING_ENABLE and DECREASING_ENABLE to enable use of increasing and/or decreasing portions of the alpha envelope
void setAlphaAtOneDuration( long millisecs )
void setAlphaAtZeroDuration( long millisecs )
void setDecreasingAlphaDuration( long millisecs )
void setDecreasingAlphaRampDuration( long millisecs )
void setIncreasingAlphaDuration( long millisecs )
void setIncreasingAlphaRampDuration( long millisecs )
void setPhaseDelayDuration( long millisecs )