public class ProbDistPanel
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
ProbDistPanel() |
|
ProbDistPanel(ProbDistribution pdf)
Creates a panel within this class that is globally accessible
representing an editor for a randomizer with a specific probability
distribution.
|
Modifier and Type | Method and Description |
---|---|
void |
addFocusListenerToFields(java.awt.event.FocusListener fl) |
void |
addPropertyChangeListenerToFields(java.beans.PropertyChangeListener pc) |
void |
checkBounds()
Enable or disable the upper and lower bounds fields depending on state of
rounding button.
|
void |
commitRandom(Randomizer rand)
Called externally when dialog is being closed.
|
void |
fillDefaultValues()
Fills fields with default values.
|
void |
fillFieldValues(java.util.ArrayList<Randomizer> randomizers)
Populates the fields with current values.
|
void |
fillFieldValues(Randomizer rand)
Fills fields with values from a Random Source.
|
javax.swing.JPanel |
getPanel() |
double |
getParam1FieldVal() |
double |
getParam2FieldVal() |
ProbDistribution |
getPdf() |
javax.swing.JTextField |
getTfLowBound() |
javax.swing.JTextField |
getTfUpBound() |
TristateDropDown |
getTsClipping() |
void |
setEnabled(boolean enabled)
Sets all the components of this panel to the desired enabled/disabled
state.
|
public ProbDistPanel(ProbDistribution pdf)
pdf
- the probability distribution the main panel will representprotected ProbDistPanel()
public void fillFieldValues(java.util.ArrayList<Randomizer> randomizers)
randomizers
- List of randomizerspublic void fillFieldValues(Randomizer rand)
rand
- public void fillDefaultValues()
public void commitRandom(Randomizer rand)
rand
- Random sourcepublic void checkBounds()
public double getParam1FieldVal()
public double getParam2FieldVal()
public void setEnabled(boolean enabled)
enabled
- public ProbDistribution getPdf()
public TristateDropDown getTsClipping()
public javax.swing.JTextField getTfLowBound()
public javax.swing.JTextField getTfUpBound()
public javax.swing.JPanel getPanel()
public void addPropertyChangeListenerToFields(java.beans.PropertyChangeListener pc)
pc
- public void addFocusListenerToFields(java.awt.event.FocusListener fl)
fl
-