diff options
Diffstat (limited to 'src/jcgp/gui/population/GUIInput.java')
-rw-r--r-- | src/jcgp/gui/population/GUIInput.java | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/jcgp/gui/population/GUIInput.java b/src/jcgp/gui/population/GUIInput.java index 0fdf841..68952f6 100644 --- a/src/jcgp/gui/population/GUIInput.java +++ b/src/jcgp/gui/population/GUIInput.java @@ -11,14 +11,18 @@ import jcgp.gui.constants.Constants; * @author Eduardo Pedroni * */ -public class GUIInput extends GUIConnection { +public class GUIInput extends GUIGene implements GUIConnection { + private Input input; + /** * @param input */ public GUIInput(final Input input) { super(); + this.input = input; + Circle outputSocket = new Circle(Constants.NODE_RADIUS, 0, Constants.SOCKET_RADIUS, Paint.valueOf("white")); outputSocket.setId(String.valueOf(0)); outputSocket.setStroke(Paint.valueOf("black")); @@ -26,19 +30,17 @@ public class GUIInput extends GUIConnection { getChildren().addAll(outputSocket); } - @Override - public void mouseEnter() { - setState(GUIGeneState.HOVER); + public Input getInput() { + return input; } @Override - public void mouseExit() { - setState(GUIGeneState.NEUTRAL); + public void setStateRecursively(GUIGeneState state) { + setState(state); } - + @Override - public void activeHover(boolean value) { - setState(value ? GUIGeneState.EXTENDED_HOVER : GUIGeneState.NEUTRAL); - } - + protected void setLinesVisible(boolean value) { + // blank + } } |