Overview  Package   Class  Tree  Index 

be.lassi.lanbox.domain
Class FadeType

java.lang.Object
  extended by be.lassi.lanbox.domain.FadeType

public final class FadeType
extends java.lang.Object

Defines the fade types supported by the lanbox.


Field Summary
static FadeType CROSS_FADE
          Both increasing and decreasing channel values change gradually during the specified fade time.
static FadeType CROSS_FADE_CR
          Like CROSS_FADE with "constant rate" option.
static FadeType FADE_IN
          Increasing channel values are changed gradually during the specified fade time, while channel values that decrease are set to their target value immediately.
static FadeType FADE_IN_CR
          Like FADE_IN, except that channel values are changed at a constant rate for smoother movements in moving light fixtures, while sacrificing the accuracy of the specified fade time.
static FadeType FADE_OUT
          Decreasing channel values are changed gradually during the specified fade time, while channel values that increase are set to their target value immediately.
static FadeType FADE_OUT_CR
          Like FADE_OUT with "constant rate" option.
static FadeType OFF
          No fading is done; channel values change immediately to their target value.
static FadeType SPLIT_FADE_IN
          Increasing channel values are changed gradually during the specified fade time, while channel values that decrease do not change.
static FadeType SPLIT_FADE_IN_CR
          Like SPLIT_FADE_IN with "constant rate" option.
static FadeType SPLIT_FADE_OUT
          Decreasing channel values are changed gradually during the specified fade time, while channel values that increase do not change.
static FadeType SPLIT_FADE_OUT_CR
          Like SPLIT_FADE_OUT with "constant rate" option.
 
Method Summary
static FadeType get(int id)
          Gets the fade type for given identifier.
static FadeType get(java.lang.String string)
          Gets the fade type for given type string.
 int getId()
          Gets the identifier for this fade type to be used in messages exchanged with the lanbox.
 java.lang.String getString()
          Gets the string representation of the fade type.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CROSS_FADE

public static final FadeType CROSS_FADE
Both increasing and decreasing channel values change gradually during the specified fade time. Fade times for both increasing and decreasing channel values are the same. Use split fades if that is undesireable.


CROSS_FADE_CR

public static final FadeType CROSS_FADE_CR
Like CROSS_FADE with "constant rate" option.


FADE_IN

public static final FadeType FADE_IN
Increasing channel values are changed gradually during the specified fade time, while channel values that decrease are set to their target value immediately.


FADE_IN_CR

public static final FadeType FADE_IN_CR
Like FADE_IN, except that channel values are changed at a constant rate for smoother movements in moving light fixtures, while sacrificing the accuracy of the specified fade time.


FADE_OUT

public static final FadeType FADE_OUT
Decreasing channel values are changed gradually during the specified fade time, while channel values that increase are set to their target value immediately.


FADE_OUT_CR

public static final FadeType FADE_OUT_CR
Like FADE_OUT with "constant rate" option.


OFF

public static final FadeType OFF
No fading is done; channel values change immediately to their target value.


SPLIT_FADE_IN

public static final FadeType SPLIT_FADE_IN
Increasing channel values are changed gradually during the specified fade time, while channel values that decrease do not change. Use this together with SPLIT_FADE_OUT when you want different fade times for fade in and fade out.


SPLIT_FADE_IN_CR

public static final FadeType SPLIT_FADE_IN_CR
Like SPLIT_FADE_IN with "constant rate" option.


SPLIT_FADE_OUT

public static final FadeType SPLIT_FADE_OUT
Decreasing channel values are changed gradually during the specified fade time, while channel values that increase do not change. Use this together with SPLIT_FADE_IN when you want different fade times for fade in and fade out.


SPLIT_FADE_OUT_CR

public static final FadeType SPLIT_FADE_OUT_CR
Like SPLIT_FADE_OUT with "constant rate" option.

Method Detail

get

public static FadeType get(int id)
Gets the fade type for given identifier.

Parameters:
id - fade type identifier
Returns:
the fade type

get

public static FadeType get(java.lang.String string)
Gets the fade type for given type string.

Parameters:
string - fade type string
Returns:
the fade type

getId

public int getId()
Gets the identifier for this fade type to be used in messages exchanged with the lanbox.

Returns:
the fade type identifier

getString

public java.lang.String getString()
Gets the string representation of the fade type.

Returns:
the string representation of the fade type

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2