public class FixedParameter extends Object implements LXParameter
LXParameter.Formatter, LXParameter.Polarity, LXParameter.Units| Constructor and Description |
|---|
FixedParameter(double value) |
| 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
|
LXComponent |
getParent()
Returns the component that this object belongs to
|
String |
getPath()
Returns the immediate path of this component, relative to its parent
|
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.
|
LXParameter |
reset()
A method to reset the value of the parameter, if a default is available.
|
LXParameter |
setComponent(LXComponent parent,
String path)
Sets the component that owns this parameter
|
LXParameter |
setValue(double value)
Sets the value of the parameter.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisMappable, setMappableget, get, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getComponent, getComponent, getParameter, getParameterpublic String getDescription()
LXParametergetDescription in interface LXParameterpublic LXParameter setComponent(LXComponent parent, String path)
LXParametersetComponent in interface LXParameterparent - Componentpath - Path name for parameterpublic LXComponent getParent()
LXPathpublic String getPath()
LXPathpublic LXParameter.Formatter getFormatter()
LXParametergetFormatter in interface LXParameterpublic LXParameter.Units getUnits()
LXParametergetUnits in interface LXParameterpublic LXParameter.Polarity getPolarity()
LXParametergetPolarity in interface LXParameterpublic void dispose()
LXParameterdispose in interface LXParameterpublic LXParameter reset()
LXParameterreset in interface LXParameterpublic LXParameter setValue(double value)
LXParametersetValue in interface LXParametervalue - The valuepublic double getValue()
LXParametergetValue in interface LXParameterpublic float getValuef()
LXParametergetValuef in interface LXParameterpublic String getLabel()
LXParametergetLabel in interface LXPathgetLabel in interface LXParameterLX library by Mark C. Slee. © 2012-2020