Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.fluidsynth.api.settings
Class NumberSetting  view NumberSetting download NumberSetting.java

java.lang.Object
  extended byorg.fluidsynth.api.settings.Setting
      extended byorg.fluidsynth.api.settings.AbstractNumberSetting
          extended byorg.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.AbstractNumberSetting
maxValueStr, minValueStr
 
Fields inherited from class org.fluidsynth.api.settings.Setting
 
Constructor Summary
NumberSetting()
           
 
Method Summary
protected  void maxValueSetImpl(java.lang.String maxValueStr)
          Subclasses override this to set the max value internally as a number.
protected  void minValueSetImpl(java.lang.String minValueStr)
          Subclasses override this to set the min value internally as a number.
 java.lang.Object objectGet()
          Returns an object which represents the current value as a java object.
 void objectSet(java.lang.Object value)
          Given a java object, set the value of this option.
 java.lang.Object validate(java.lang.Object value)
          Validates the value and if valid, returns it unaltered.
 
Methods inherited from class org.fluidsynth.api.settings.AbstractNumberSetting
getMaxValue, getMinValue, merge, setMaxValue, setMinValue
 
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
 

Field Detail

minValue

double minValue

maxValue

double maxValue
Constructor Detail

NumberSetting

public NumberSetting()
Method Detail

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