Skip to content

Commit 598ea08

Browse files
committed
Commenting
1 parent 46982aa commit 598ea08

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

nbproject/private/private.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
<group>
66
<file>file:/F:/Java%20Workspace/FXSimulator/src/fxsimulator/CanvasController.java</file>
77
<file>file:/F:/Java%20Workspace/FXSimulator/src/fxsimulator/Node.java</file>
8+
<file>file:/F:/Java%20Workspace/FXSimulator/src/fxsimulator/Edge.java</file>
9+
<file>file:/F:/Java%20Workspace/FXSimulator/src/fxsimulator/Arrow.java</file>
810
</group>
911
</open-files>
1012
</project-private>

src/fxsimulator/CanvasController.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ public void initialize(URL url, ResourceBundle rb) {
218218
hiddenPane.setPinnedSide(null);
219219
e.consume();
220220
});
221+
hiddenPane.setTriggerDistance(60);
221222

222223
}
223224

@@ -749,12 +750,13 @@ class BFS {
749750
q.push(source);
750751
while (!q.isEmpty()) {
751752
Node u = q.removeLast();
752-
//<editor-fold defaultstate="collapsed" desc="Animation Control">
753+
//<editor-fold defaultstate="collapsed" desc="Node Popped Animation">
753754
FillTransition ft = new FillTransition(Duration.millis(time), u.circle);
754755
if (u.circle.getFill() == Color.BLACK) {
755756
ft.setToValue(Color.CHOCOLATE);
756757
}
757758
st.getChildren().add(ft);
759+
758760
String str = "";
759761
str = str.concat("Popped : Node(" + u.name + ")\n");
760762
final String str2 = str;
@@ -776,7 +778,7 @@ class BFS {
776778
q.push(v);
777779
v.previous = u;
778780

779-
//<editor-fold defaultstate="collapsed" desc="Animation Control">
781+
//<editor-fold defaultstate="collapsed" desc="Node visiting animation">
780782
//<editor-fold defaultstate="collapsed" desc="Change Edge colors">
781783
if (undirected) {
782784
StrokeTransition ftEdge = new StrokeTransition(Duration.millis(time), e.line);
@@ -795,6 +797,7 @@ class BFS {
795797
});
796798
ft1.onFinishedProperty();
797799
st.getChildren().add(ft1);
800+
798801
str = "\t";
799802
str = str.concat("Pushing : Node(" + v.name + ")\n");
800803
final String str1 = str;
@@ -917,6 +920,7 @@ public void DFSRecursion(Node source, int level) {
917920
ft.setToValue(Color.FORESTGREEN);
918921
}
919922
st.getChildren().add(ft);
923+
920924
String str = "";
921925
for(int i=0; i<level; i++)
922926
str = str.concat("\t");

0 commit comments

Comments
 (0)