public abstract class FunctionalParameter extends Object implements LXParameter
LXParameter.Formatter, LXParameter.Polarity, LXParameter.Units
Modifier and Type | Field and Description |
---|---|
protected String |
description |
Modifier | Constructor and Description |
---|---|
protected |
FunctionalParameter() |
protected |
FunctionalParameter(String label) |
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.
|
abstract double |
getValue()
Retrieves the value of the parameter, subclass must implement.
|
float |
getValuef()
Utility helper function to get the value of the parameter as a float.
|
FunctionalParameter |
reset()
Does nothing, subclass may override.
|
LXParameter |
setComponent(LXComponent parent,
String path)
Sets the component that owns this parameter
|
FunctionalParameter |
setDescription(String description) |
LXParameter |
setValue(double value)
Not supported for this parameter type unless subclass overrides.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isMappable, setMappable
get, get, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getComponent, getComponent, getParameter, getParameter
protected String description
protected FunctionalParameter()
protected FunctionalParameter(String label)
public String getDescription()
LXParameter
getDescription
in interface LXParameter
public FunctionalParameter setDescription(String description)
public LXParameter setComponent(LXComponent parent, String path)
LXParameter
setComponent
in interface LXParameter
parent
- Componentpath
- Path name for parameterpublic LXComponent getParent()
LXPath
public String getPath()
LXPath
public LXParameter.Polarity getPolarity()
LXParameter
getPolarity
in interface LXParameter
public LXParameter.Formatter getFormatter()
LXParameter
getFormatter
in interface LXParameter
public LXParameter.Units getUnits()
LXParameter
getUnits
in interface LXParameter
public void dispose()
LXParameter
dispose
in interface LXParameter
public FunctionalParameter reset()
reset
in interface LXParameter
public LXParameter setValue(double value)
setValue
in interface LXParameter
value
- The valuepublic abstract double getValue()
getValue
in interface LXParameter
public float getValuef()
getValuef
in interface LXParameter
public final String getLabel()
getLabel
in interface LXPath
getLabel
in interface LXParameter
LX library by Mark C. Slee. © 2012-2020