Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.maloi.evolvo.gui
Class SettingsDialog  view SettingsDialog download SettingsDialog.java

java.lang.Object
  extended byorg.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.


Field Summary
(package private) static SettingsDialog _instance
           
(package private)  DoubleFieldSlider complexity
           
(package private)  DoubleFieldSlider depreciation
           
(package private)  javax.swing.JTabbedPane dialogTabbedPane
           
(package private)  DoubleFieldSlider[] fields
           
(package private)  IntegerField heightField
           
(package private)  DoubleFieldSlider mutate_arg_to_child_arg
           
(package private)  DoubleFieldSlider mutate_become_arg
           
(package private)  DoubleFieldSlider mutate_change
           
(package private)  DoubleFieldSlider mutate_change_function
           
(package private)  DoubleFieldSlider mutate_new_expression
           
(package private)  DoubleFieldSlider mutate_new_expression_arg
           
(package private)  DoubleFieldSlider mutate_scalar_change_value
           
(package private)  DoubleFieldSlider mutate_to_scalar
           
(package private)  DoubleFieldSlider mutate_to_variable
           
(package private)  javax.swing.JTextField plugins
           
(package private)  javax.swing.JComboBox preferredPlugin
           
(package private)  DoubleFieldSlider r
           
(package private) static org.maloi.evolvo.settings.GlobalSettings settings
           
(package private)  DoubleFieldSlider theta
           
(package private)  DoubleFieldSlider variableProb
           
(package private)  IntegerField widthField
           
(package private)  DoubleFieldSlider x
           
(package private)  DoubleFieldSlider y
           
 
Constructor Summary
protected SettingsDialog()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          This method is invoked when an action occurs.
(package private)  javax.swing.Box createAdvancedOptions()
           
(package private)  javax.swing.JComponent createMutateOptions()
           
(package private)  javax.swing.JComponent createOperatorOptions()
           
(package private)  javax.swing.Box createStandardOptions()
           
static SettingsDialog getInstance()
           
(package private) static DoubleFieldSlider[] getOperatorControls()
          Utility method to generate a set of JDoubleFieldSlider controls for all the operators listed in the operators list stored in globalSettings.
 void showDialog(javax.swing.JFrame f)
          Creates the settings dialog box.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_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
Constructor Detail

SettingsDialog

protected SettingsDialog()
Method Detail

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