public interface LXParameter extends LXPath
Modifier and Type | Interface and Description |
---|---|
static interface |
LXParameter.Formatter |
static class |
LXParameter.Polarity |
static class |
LXParameter.Units |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Invoked when the parameter is done being used and none of its resources
are needed anymore.
|
String |
getDescription()
Returns a contextual help message explaining the purpose of this parameter to the user, or null if
none is available.
|
LXParameter.Formatter |
getFormatter()
Gets the formatter to be used for printing this parameter's value
|
String |
getLabel()
Gets the label for this parameter
|
LXParameter.Polarity |
getPolarity()
Gets the polarity of this parameter.
|
LXParameter.Units |
getUnits()
Gets the unit format that this parameter's value stores.
|
double |
getValue()
Retrieves the value of the parameter
|
float |
getValuef()
Utility helper function to get the value of the parameter as a float.
|
default boolean |
isMappable()
Whether this parameter should be eligible for mapping via MIDI or
modulation control.
|
Object |
reset()
A method to reset the value of the parameter, if a default is available.
|
LXParameter |
setComponent(LXComponent component,
String path)
Sets the component that owns this parameter
|
default LXParameter |
setMappable(boolean mappable)
Sets whether this parameter should be eligible for MIDI/modulation mapping
or not.
|
LXParameter |
setValue(double value)
Sets the value of the parameter.
|
get, get, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getComponent, getComponent, getParameter, getParameter, getParent, getPath
LXParameter setComponent(LXComponent component, String path)
component
- Componentpath
- Path name for parameterString getDescription()
LXParameter.Units getUnits()
LXParameter.Formatter getFormatter()
LXParameter.Polarity getPolarity()
void dispose()
Object reset()
LXParameter setValue(double value)
value
- The valuedouble getValue()
float getValuef()
String getLabel()
default LXParameter setMappable(boolean mappable)
mappable
- Whether parameter should be available for mappingdefault boolean isMappable()
true
if mappable, false if otherwiseLX library by Mark C. Slee. © 2012-2020