aboutsummaryrefslogtreecommitdiffstats
path: root/src/jcgp/gui/population
diff options
context:
space:
mode:
Diffstat (limited to 'src/jcgp/gui/population')
-rw-r--r--src/jcgp/gui/population/FunctionSelector.java2
-rw-r--r--src/jcgp/gui/population/GUINode.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/jcgp/gui/population/FunctionSelector.java b/src/jcgp/gui/population/FunctionSelector.java
index 28eb54d..69d0d31 100644
--- a/src/jcgp/gui/population/FunctionSelector.java
+++ b/src/jcgp/gui/population/FunctionSelector.java
@@ -31,7 +31,7 @@ public class FunctionSelector extends VBox {
for (int i = 0; i < fs.getAllowedFunctionCount(); i++) {
final int index = i;
- Label l = new Label(fs.getAllowedFunction(i).getName());
+ Label l = new Label(fs.getAllowedFunction(i).toString());
l.setMaxWidth(Double.MAX_VALUE);
l.setStyle("-fx-background-color: #FFFFFF; -fx-border-color: #A0A0A0; -fx-border-width: 0 0 1 0; -fx-padding: 2");
diff --git a/src/jcgp/gui/population/GUINode.java b/src/jcgp/gui/population/GUINode.java
index f50edd3..731db8f 100644
--- a/src/jcgp/gui/population/GUINode.java
+++ b/src/jcgp/gui/population/GUINode.java
@@ -454,9 +454,9 @@ public class GUINode extends GUIGene {
public void updateText() {
if (parent.isEvaluating()) {
- text.setText(node.getFunction().getName() + "\n" + value.toString());
+ text.setText(node.getFunction() + "\n" + value.toString());
} else {
- text.setText(node.getFunction().getName());
+ text.setText(node.getFunction().toString());
}
}