|
Watchmaker Framework API (Version 0.6.2) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.uncommons.watchmaker.swing.ProbabilityParameterControl
public class ProbabilityParameterControl
A GUI control that allows the user to set/update the value of a
Probability parameter.
| Constructor Summary | |
|---|---|
ProbabilityParameterControl(org.uncommons.maths.random.Probability defaultValue)
Creates a control with a default range of 0..1 and a default granularity of 2 decimal places. |
|
ProbabilityParameterControl(org.uncommons.maths.random.Probability minimum,
org.uncommons.maths.random.Probability maximum,
int decimalPlaces,
org.uncommons.maths.random.Probability initialValue)
|
|
| Method Summary | |
|---|---|
JComponent |
getControl()
|
org.uncommons.maths.number.NumberGenerator<org.uncommons.maths.random.Probability> |
getNumberGenerator()
Returns a number generator that simply returns the current probability value represented by the position of the slider control. |
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 ProbabilityParameterControl(org.uncommons.maths.random.Probability defaultValue)
defaultValue - The default probability value.
public ProbabilityParameterControl(org.uncommons.maths.random.Probability minimum,
org.uncommons.maths.random.Probability maximum,
int decimalPlaces,
org.uncommons.maths.random.Probability initialValue)
minimum - The minimum probability that this control will permit.maximum - The maximum probability that this control will permit.decimalPlaces - The granularity of the control.initialValue - The default probability.| Method Detail |
|---|
public JComponent getControl()
getControl in interface EvolutionControlpublic void reset()
reset in interface EvolutionControlpublic org.uncommons.maths.number.NumberGenerator<org.uncommons.maths.random.Probability> getNumberGenerator()
public void setDescription(String description)
setDescription in interface EvolutionControldescription - The description of the control.
|
Watchmaker Framework API (Version 0.6.2) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||