|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplugins.adufour.ezplug.EzComponent
plugins.adufour.ezplug.EzVar<N>
plugins.adufour.ezplug.EzVarNumeric<N>
N
- the type of number to use in this variablepublic abstract class EzVarNumeric<N extends java.lang.Number>
Superclass of all variables holding a number-type variable. This class provides generic methods and graphical interface elements common to all number-type variables
Field Summary |
---|
Fields inherited from class plugins.adufour.ezplug.EzComponent |
---|
name, visible |
Constructor Summary | |
---|---|
protected |
EzVarNumeric(Var<N> variable,
N[] defaultValues,
int defaultValueIndex,
boolean allowUserInput)
|
protected |
EzVarNumeric(Var<N> variable,
VarEditorModel<N> constraint)
|
Method Summary | |
---|---|
N |
getMaxValue()
Gets the maximum value of this variable |
N |
getMinValue()
Gets the minimum value of this variable |
N |
getStep()
Gets the step value of this variable |
void |
setMaxValue(java.lang.Comparable<N> maxValue)
Sets the minimum value for the JSpinner component |
void |
setMinValue(java.lang.Comparable<N> minValue)
Sets the minimum value for the JSpinner component |
void |
setStep(N step)
Sets the step between consecutive values |
void |
setValues(N value,
java.lang.Comparable<N> min,
java.lang.Comparable<N> max,
N step)
Sets the news value of the variable. |
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 |
---|
protected EzVarNumeric(Var<N> variable, VarEditorModel<N> constraint)
protected EzVarNumeric(Var<N> variable, N[] defaultValues, int defaultValueIndex, boolean allowUserInput)
Method Detail |
---|
public N getMinValue()
java.lang.UnsupportedOperationException
- If the graphical component of this variable is not a JSpinner objectpublic void setMinValue(java.lang.Comparable<N> minValue) throws java.lang.UnsupportedOperationException
minValue
-
java.lang.UnsupportedOperationException
- If the graphical component of this variable is not a JSpinner objectpublic N getStep() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
- If the graphical component of this variable is not a JSpinner objectpublic void setStep(N step) throws java.lang.UnsupportedOperationException
step
-
java.lang.UnsupportedOperationException
- If the graphical component of this variable is not a JSpinner objectpublic N getMaxValue()
java.lang.UnsupportedOperationException
- If the graphical component of this variable is not a JSpinner objectpublic void setMaxValue(java.lang.Comparable<N> maxValue)
maxValue
-
java.lang.UnsupportedOperationException
- If the graphical component of this variable is not a JSpinner objectpublic void setValues(N value, java.lang.Comparable<N> min, java.lang.Comparable<N> max, N step)
value
- the new valuemax
- the new max boundmin
- the new min boundstep
- the new step
java.lang.UnsupportedOperationException
- If the graphical component of this variable is not a JSpinner object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |