T - The numeric type of this control (e.g. Integer, Double).public class NumericParameterControl<T extends Number & Comparable<T>> extends Object implements EvolutionControl
| Constructor and Description |
|---|
NumericParameterControl(T minimum,
T maximum,
T stepSize,
T initialValue) |
| Modifier and Type | Method and Description |
|---|---|
JSpinner |
getControl() |
NumberGenerator<T> |
getNumberGenerator()
Returns a number generator that simply returns the current value contained
in the spinner field.
|
void |
reset()
Resets the control to its initial configuration.
|
void |
setDescription(String description)
Provides a textual description of the purpose of the control.
|
public JSpinner getControl()
getControl in interface EvolutionControlpublic void reset()
reset in interface EvolutionControlpublic NumberGenerator<T> getNumberGenerator()
public void setDescription(String description)
setDescription in interface EvolutionControldescription - The description of the control.