|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
be.lassi.util
Class Dmx
java.lang.Object be.lassi.util.Dmx
public class Dmx
- extends java.lang.Object
Utility for conversion of dmx values (0 -> 254) to float level values (0f to 1f).
Field Summary | |
---|---|
static int |
CONTROL_CHANNELS
|
static int |
DMX_MAX
The maximum DMX value. |
static int |
MAX_CHANNELS
The maximum number of channels supported by the program. |
static int |
MAX_DIMMERS
The maximum number of dimmers supported by the program. |
static int |
NEW_MAX
|
static int |
NEW_MAX_CHANNELS
|
Method Summary | |
---|---|
static int |
getDmxValue(float value)
Gets the DMX value converted from a float level value. |
static int |
getIntValue(int dmxValue)
Gets channel level value (0% -> 100%) for a given DMX value. |
static float |
getValue(int dmxValue)
Gets channel level value (0f -> 1f) for a given DMX value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
CONTROL_CHANNELS
public static final int CONTROL_CHANNELS
- See Also:
- Constant Field Values
DMX_MAX
public static final int DMX_MAX
- The maximum DMX value.
TODO: why is max value 254 and not 255 ???
- See Also:
- Constant Field Values
MAX_CHANNELS
public static final int MAX_CHANNELS
- The maximum number of channels supported by the program.
- See Also:
- Constant Field Values
MAX_DIMMERS
public static final int MAX_DIMMERS
- The maximum number of dimmers supported by the program.
- See Also:
- Constant Field Values
NEW_MAX
public static final int NEW_MAX
- See Also:
- Constant Field Values
NEW_MAX_CHANNELS
public static final int NEW_MAX_CHANNELS
- See Also:
- Constant Field Values
Method Detail |
---|
getDmxValue
public static int getDmxValue(float value)
- Gets the DMX value converted from a float level value.
- Parameters:
value
- the float level value- Returns:
- int DMX value (between 0 and 254).
getIntValue
public static int getIntValue(int dmxValue)
- Gets channel level value (0% -> 100%) for a given DMX value.
- Parameters:
dmxValue
- the DMX value to be converted (between 0 and 254)- Returns:
- the level value
getValue
public static float getValue(int dmxValue)
- Gets channel level value (0f -> 1f) for a given DMX value.
- Parameters:
dmxValue
- the DMX value to be converted (between 0 and 254)- Returns:
- the level value
|
Lighting Assistant 1.2 | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |