diff options
author | Eduardo Pedroni <e.pedroni91@gmail.com> | 2014-11-22 22:08:29 +0000 |
---|---|---|
committer | Eduardo Pedroni <e.pedroni91@gmail.com> | 2014-11-22 22:08:29 +0000 |
commit | 80ed9dc59ece5913f7403dd669f74074080a3867 (patch) | |
tree | 33d9875e6d3bac9d8679c69e06fda53131653c69 /src/jcgp/gui/constants | |
parent | 9d24ea7759c58e7b1fd4b8c37acc7d16cb7e55fa (diff) |
Steps 1-4 complete, generic handlers for inputs, nodes and outputs are working well. Output locking is next, also need to comment things.
Diffstat (limited to 'src/jcgp/gui/constants')
-rw-r--r-- | src/jcgp/gui/constants/Position.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jcgp/gui/constants/Position.java b/src/jcgp/gui/constants/Position.java index 0ea1299..a13d21e 100644 --- a/src/jcgp/gui/constants/Position.java +++ b/src/jcgp/gui/constants/Position.java @@ -29,6 +29,8 @@ public final class Position { public static void place(GUIOutput output) { output.relocate(((GUI.resources.columns() + 1) * (2 * Constants.NODE_RADIUS + Constants.SPACING)), output.getOutput().getIndex() * (2 * Constants.NODE_RADIUS + Constants.SPACING)); + output.getLine().setStartX(output.getLayoutX() - Constants.NODE_RADIUS); + output.getLine().setStartY(output.getLayoutY()); } public static void connect(Line line, GUIGene target) { |