java.lang.Object
org.maloi.evolvo.gui.SettingsDialog
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.util.EventListener
- public class SettingsDialog
- extends java.lang.Object
- implements java.awt.event.ActionListener
Generates a standard dialog box for adjusting the settings found in the
globalSettings object, and updates the globalSettings object to reflect
user input.
This dialog box is really horrible, and I invite anyone to please, please
make it better. Please.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_instance
static SettingsDialog _instance
dialogTabbedPane
javax.swing.JTabbedPane dialogTabbedPane
settings
static org.maloi.evolvo.settings.GlobalSettings settings
fields
DoubleFieldSlider[] fields
x
DoubleFieldSlider x
y
DoubleFieldSlider y
r
DoubleFieldSlider r
theta
DoubleFieldSlider theta
complexity
DoubleFieldSlider complexity
depreciation
DoubleFieldSlider depreciation
variableProb
DoubleFieldSlider variableProb
widthField
IntegerField widthField
heightField
IntegerField heightField
mutate_change
DoubleFieldSlider mutate_change
mutate_new_expression
DoubleFieldSlider mutate_new_expression
mutate_scalar_change_value
DoubleFieldSlider mutate_scalar_change_value
mutate_to_variable
DoubleFieldSlider mutate_to_variable
mutate_to_scalar
DoubleFieldSlider mutate_to_scalar
mutate_change_function
DoubleFieldSlider mutate_change_function
mutate_new_expression_arg
DoubleFieldSlider mutate_new_expression_arg
mutate_become_arg
DoubleFieldSlider mutate_become_arg
mutate_arg_to_child_arg
DoubleFieldSlider mutate_arg_to_child_arg
preferredPlugin
javax.swing.JComboBox preferredPlugin
plugins
javax.swing.JTextField plugins
SettingsDialog
protected SettingsDialog()
getInstance
public static SettingsDialog getInstance()
createStandardOptions
javax.swing.Box createStandardOptions()
createOperatorOptions
javax.swing.JComponent createOperatorOptions()
createMutateOptions
javax.swing.JComponent createMutateOptions()
createAdvancedOptions
javax.swing.Box createAdvancedOptions()
showDialog
public void showDialog(javax.swing.JFrame f)
- Creates the settings dialog box.
Returns the updated globalSettings object. If the user presses
cancel, the globalSettings object is returned unchanged.
getOperatorControls
static DoubleFieldSlider[] getOperatorControls()
- Utility method to generate a set of JDoubleFieldSlider controls for all
the operators listed in the operators list stored in globalSettings.
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Description copied from interface:
java.awt.event.ActionListener
- This method is invoked when an action occurs.
- Specified by:
actionPerformed in interface java.awt.event.ActionListener