|
Watchmaker Framework for Evolutionary Computation API (Version 0.7.1) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.uncommons.watchmaker.swing.NumericParameterControl<T>
T - The numeric type of this control (e.g. Integer, Double).public class NumericParameterControl<T extends Number & Comparable<T>>
A GUI control that allows the user to set/update the value of a numeric parameter.
| Constructor Summary | |
|---|---|
NumericParameterControl(T minimum,
T maximum,
T stepSize,
T initialValue)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NumericParameterControl(T minimum,
T maximum,
T stepSize,
T initialValue)
| Method Detail |
|---|
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.
|
Watchmaker Framework for Evolutionary Computation API (Version 0.7.1) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||