aboutsummaryrefslogtreecommitdiffstats
path: root/src/jcgp/gui/settings
diff options
context:
space:
mode:
authorEduardo Pedroni <ep625@york.ac.uk>2014-03-30 21:07:37 +0100
committerEduardo Pedroni <ep625@york.ac.uk>2014-03-30 21:07:37 +0100
commit04b35ccdad6e18701ede823e333118b0b22907c2 (patch)
tree0e993a5ffee4e63c4a2a6eca137da72b2453f868 /src/jcgp/gui/settings
parent2bf2d3ac2c578de481ecfd545d58be73c5628996 (diff)
Running into some issues with running the CGP loop in the background with bindings.
Diffstat (limited to 'src/jcgp/gui/settings')
-rw-r--r--src/jcgp/gui/settings/GUIBooleanParameter.java24
-rw-r--r--src/jcgp/gui/settings/GUIDoubleParameter.java33
-rw-r--r--src/jcgp/gui/settings/GUIIntegerParameter.java31
-rw-r--r--src/jcgp/gui/settings/GUIParameter.java14
4 files changed, 0 insertions, 102 deletions
diff --git a/src/jcgp/gui/settings/GUIBooleanParameter.java b/src/jcgp/gui/settings/GUIBooleanParameter.java
deleted file mode 100644
index 7b20c3b..0000000
--- a/src/jcgp/gui/settings/GUIBooleanParameter.java
+++ /dev/null
@@ -1,24 +0,0 @@
-package jcgp.gui.settings;
-
-import javafx.geometry.Pos;
-import javafx.scene.control.CheckBox;
-import jcgp.parameters.BooleanParameter;
-
-public class GUIBooleanParameter extends GUIParameter {
-
- public GUIBooleanParameter(BooleanParameter parameter) {
- setAlignment(Pos.CENTER_LEFT);
- setSpacing(5);
-
- this.parameter = parameter;
-
- value = new CheckBox(parameter.getName());
- ((CheckBox) value).setSelected(parameter.getValue());
-
- value.setDisable(parameter.isManaged());
-
- getChildren().add(value);
-
- }
-
-}
diff --git a/src/jcgp/gui/settings/GUIDoubleParameter.java b/src/jcgp/gui/settings/GUIDoubleParameter.java
deleted file mode 100644
index d61899b..0000000
--- a/src/jcgp/gui/settings/GUIDoubleParameter.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package jcgp.gui.settings;
-
-import javafx.geometry.Pos;
-import javafx.scene.control.TextField;
-import javafx.scene.layout.Priority;
-import javafx.scene.text.Text;
-import jcgp.GUI;
-import jcgp.parameters.DoubleParameter;
-
-public class GUIDoubleParameter extends GUIParameter {
-
- public GUIDoubleParameter(DoubleParameter parameter) {
- setAlignment(Pos.CENTER_LEFT);
- setSpacing(5);
-
- this.parameter = parameter;
-
- name = new Text(parameter.getName());
- value = new TextField(String.valueOf(parameter.getValue()));
-
- ((TextField) value).setAlignment(Pos.CENTER_RIGHT);
-
- setHgrow(value, Priority.ALWAYS);
-
- name.setWrappingWidth(GUI.WRAP_WIDTH);
-
- value.setDisable(parameter.isManaged());
-
- getChildren().addAll(name, value);
-
- }
-
-}
diff --git a/src/jcgp/gui/settings/GUIIntegerParameter.java b/src/jcgp/gui/settings/GUIIntegerParameter.java
deleted file mode 100644
index b7a23a4..0000000
--- a/src/jcgp/gui/settings/GUIIntegerParameter.java
+++ /dev/null
@@ -1,31 +0,0 @@
-package jcgp.gui.settings;
-
-import javafx.geometry.Pos;
-import javafx.scene.control.TextField;
-import javafx.scene.layout.Priority;
-import javafx.scene.text.Text;
-import jcgp.GUI;
-import jcgp.parameters.IntegerParameter;
-
-public class GUIIntegerParameter extends GUIParameter {
-
- public GUIIntegerParameter(IntegerParameter parameter) {
- setAlignment(Pos.CENTER_LEFT);
- setSpacing(5);
-
- this.parameter = parameter;
-
- name = new Text(parameter.getName());
- value = new TextField(String.valueOf(parameter.getValue()));
-
- ((TextField) value).setAlignment(Pos.CENTER_RIGHT);
-
- setHgrow(value, Priority.ALWAYS);
-
- name.setWrappingWidth(GUI.WRAP_WIDTH);
-
- value.setDisable(parameter.isManaged());
-
- getChildren().addAll(name, value);
- }
-}
diff --git a/src/jcgp/gui/settings/GUIParameter.java b/src/jcgp/gui/settings/GUIParameter.java
deleted file mode 100644
index 0547758..0000000
--- a/src/jcgp/gui/settings/GUIParameter.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package jcgp.gui.settings;
-
-import javafx.scene.control.Control;
-import javafx.scene.layout.HBox;
-import javafx.scene.text.Text;
-import jcgp.parameters.Parameter;
-
-public abstract class GUIParameter extends HBox {
-
- protected Parameter parameter;
- protected Text name;
- protected Control value;
-
-}