public static enum LXParameter.Units extends Enum<LXParameter.Units> implements LXParameter.Formatter
Enum Constant and Description |
---|
DECIBELS |
DEGREES |
HERTZ |
INTEGER |
MIDI_NOTE |
MILLISECONDS |
NONE |
PERCENT |
RADIANS |
SECONDS |
Modifier and Type | Method and Description |
---|---|
String |
format(double value) |
static String |
format(LXParameter.Units units,
double value) |
static LXParameter.Units |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LXParameter.Units[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LXParameter.Units NONE
public static final LXParameter.Units INTEGER
public static final LXParameter.Units SECONDS
public static final LXParameter.Units MILLISECONDS
public static final LXParameter.Units DECIBELS
public static final LXParameter.Units HERTZ
public static final LXParameter.Units MIDI_NOTE
public static final LXParameter.Units DEGREES
public static final LXParameter.Units RADIANS
public static final LXParameter.Units PERCENT
public static LXParameter.Units[] values()
for (LXParameter.Units c : LXParameter.Units.values()) System.out.println(c);
public static LXParameter.Units valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String format(double value)
format
in interface LXParameter.Formatter
public static String format(LXParameter.Units units, double value)
LX library by Mark C. Slee. © 2012-2020