plugins.adufour.ezplug
Class EzVarDouble

java.lang.Object
  extended by plugins.adufour.ezplug.EzComponent
      extended by plugins.adufour.ezplug.EzVar<N>
          extended by plugins.adufour.ezplug.EzVarNumeric<java.lang.Double>
              extended by plugins.adufour.ezplug.EzVarDouble
All Implemented Interfaces:
VarListener<java.lang.Double>

public class EzVarDouble
extends EzVarNumeric<java.lang.Double>

Specialized implementation of EzVarNumeric for variables of type double

Author:
Alexandre Dufour

Field Summary
 
Fields inherited from class plugins.adufour.ezplug.EzComponent
name, visible
 
Constructor Summary
EzVarDouble(java.lang.String varName)
          Creates a new integer variable with default minimum and maximum values, and a default step size of 0.01
EzVarDouble(java.lang.String varName, java.lang.Double[] defaultValues, boolean allowUserInput)
          Creates a new integer variable with a given array of possible values
EzVarDouble(java.lang.String varName, java.lang.Double[] defaultValues, int defaultValueIndex, boolean allowUserInput)
          Creates a new integer variable with a given array of possible values
EzVarDouble(java.lang.String varName, double min, double max, double step)
          Creates a new integer variable with specified minimum and maximum values
EzVarDouble(java.lang.String varName, double value, double min, double max, double step)
          Creates a new integer variable with specified default, minimum and maximum values
EzVarDouble(java.lang.String varName, double value, double min, double max, double step, RangeModel.RangeEditorType editorType, java.util.HashMap<java.lang.Double,java.lang.String> labels)
          Creates a new integer variable with specified default, minimum and maximum values
 
Method Summary
 
Methods inherited from class plugins.adufour.ezplug.EzVarNumeric
getMaxValue, getMinValue, getStep, setMaxValue, setMinValue, setStep, setValues
 
Methods inherited from class plugins.adufour.ezplug.EzVar
addTo, addVarChangeListener, addVisibilityTriggerTo, dispose, fireVariableChanged, getDefaultValues, getValue, getValue, getVarEditor, getVariable, isEnabled, referenceChanged, removeAllVarChangeListeners, removeVarChangeListener, setDefaultValues, setEnabled, setOptional, setToolTipText, setValue, setVisible, toString, updateVisibilityChain, valueChanged
 
Methods inherited from class plugins.adufour.ezplug.EzComponent
getGroup, getVisible, isVisible, setGroup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EzVarDouble

public EzVarDouble(java.lang.String varName)
Creates a new integer variable with default minimum and maximum values, and a default step size of 0.01


EzVarDouble

public EzVarDouble(java.lang.String varName,
                   double min,
                   double max,
                   double step)
Creates a new integer variable with specified minimum and maximum values

Parameters:
varName - the name of the variable (as it will appear on the interface)
min - the minimum allowed value
max - the maximum allowed value
step - the step between consecutive values

EzVarDouble

public EzVarDouble(java.lang.String varName,
                   double value,
                   double min,
                   double max,
                   double step)
Creates a new integer variable with specified default, minimum and maximum values

Parameters:
varName - the name of the variable (as it will appear on the interface)
value - the default value
min - the minimum allowed value
max - the maximum allowed value
step - the step between consecutive values

EzVarDouble

public EzVarDouble(java.lang.String varName,
                   double value,
                   double min,
                   double max,
                   double step,
                   RangeModel.RangeEditorType editorType,
                   java.util.HashMap<java.lang.Double,java.lang.String> labels)
Creates a new integer variable with specified default, minimum and maximum values

Parameters:
varName - the name of the variable (as it will appear on the interface)
value - the default value
min - the minimum allowed value
max - the maximum allowed value
step - the step between consecutive values
editorType - the type of editor to use

EzVarDouble

public EzVarDouble(java.lang.String varName,
                   java.lang.Double[] defaultValues,
                   boolean allowUserInput)
            throws java.lang.NullPointerException
Creates a new integer variable with a given array of possible values

Parameters:
varName - the name of the variable (as it will appear on the interface)
defaultValues - the list of possible values the user may choose from
allowUserInput - set to true to allow the user to input its own value manually, false otherwise
Throws:
java.lang.NullPointerException - if the defaultValues parameter is null

EzVarDouble

public EzVarDouble(java.lang.String varName,
                   java.lang.Double[] defaultValues,
                   int defaultValueIndex,
                   boolean allowUserInput)
            throws java.lang.NullPointerException
Creates a new integer variable with a given array of possible values

Parameters:
varName - the name of the variable (as it will appear on the interface)
defaultValues - the list of possible values the user may choose from
defaultValueIndex - the index of the default selected value
allowUserInput - set to true to allow the user to input its own value manually, false otherwise
Throws:
java.lang.NullPointerException - if the defaultValues parameter is null