java.lang.Object
org.fluidsynth.api.settings.Setting
org.fluidsynth.api.settings.AbstractNumberSetting
org.fluidsynth.api.settings.NumberSetting
- public class NumberSetting
- extends AbstractNumberSetting
|
Field Summary |
(package private) double |
maxValue
|
(package private) double |
minValue
|
| Fields inherited from class org.fluidsynth.api.settings.Setting |
|
| Methods inherited from class org.fluidsynth.api.settings.Setting |
commandLineArg, dirty, getCommandLineOption, getDefaultValue, getName, getRealtime, getValue, isRealtime, isUserModified, setCommandLineOption, setDefaultValue, setName, setRealtime, setSettings, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
minValue
double minValue
maxValue
double maxValue
NumberSetting
public NumberSetting()
minValueSetImpl
protected void minValueSetImpl(java.lang.String minValueStr)
- Description copied from class:
AbstractNumberSetting
- Subclasses override this to set the min value internally as a number.
- Specified by:
minValueSetImpl in class AbstractNumberSetting
maxValueSetImpl
protected void maxValueSetImpl(java.lang.String maxValueStr)
- Description copied from class:
AbstractNumberSetting
- Subclasses override this to set the max value internally as a number.
- Specified by:
maxValueSetImpl in class AbstractNumberSetting
objectGet
public java.lang.Object objectGet()
- Description copied from class:
Setting
- Returns an object which represents the current value as a java
object. For example, a BooleanSetting.objectGet() returns a
java.lang.Boolean, IntegerSetting.objectGet() returns a
java.lang.Integer, etc.
- Specified by:
objectGet in class Setting
objectSet
public void objectSet(java.lang.Object value)
throws java.lang.IllegalArgumentException
- Description copied from class:
Setting
- Given a java object, set the value of this option.
- Specified by:
objectSet in class Setting
validate
public java.lang.Object validate(java.lang.Object value)
throws java.lang.IllegalArgumentException
- Description copied from class:
Setting
- Validates the value and if valid, returns it unaltered. Throws
IllegalArgumentException if the object is not valid.
- Specified by:
validate in class Setting