-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug_nodemapper.txt
More file actions
26 lines (18 loc) · 1.11 KB
/
debug_nodemapper.txt
File metadata and controls
26 lines (18 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
// Debug and checking coordinate locations
// \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Circle circle = new Circle(rightLaneTop.getXCoordinate(), rightLaneTop.getYCoordinate(), 2.0f);
circle.setFill(Color.RED);
circle.setTranslateX(rightLaneTop.getXCoordinate());
circle.setTranslateY(rightLaneTop.getYCoordinate());
System.out.println(rightLaneTop);
System.out.println("X coord: " + rightLaneTop.getXCoordinate());
System.out.println("Y coord: " + rightLaneTop.getYCoordinate());
tseep.getChildren().add(circle); // display the circle in the editor pane to identify the location of the node, comment this line before pressing "finish" in //editor mode to disable it
// \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
or simplified version here, assumes debugDisplayNodeLocation(GraphNode n) method is defined.
// \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
// Debug and checking coordinate locations
// \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
debugDisplayNodeLocation(<insert GraphNode here>);
// \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\