Implimented a new way to determine positions

#story[952]
This commit is contained in:
Kusal Ekanayake
2017-05-25 14:06:33 +12:00
parent adbb9ffe3b
commit 53f6a6b8c5
8 changed files with 56 additions and 35 deletions
@@ -67,7 +67,7 @@ public class RaceViewController extends Thread implements ImportantAnnotationDel
@FXML
private CanvasController includedCanvasController;
private ArrayList<Yacht> startingBoats = new ArrayList<>();
private static ArrayList<Yacht> startingBoats = new ArrayList<>();
private boolean displayFps;
private Timeline timerTimeline;
private Stage stage;
@@ -221,7 +221,6 @@ public class RaceViewController extends Thread implements ImportantAnnotationDel
}
});
// Adds the new data series to the sparkline (and set the colour of the series)
raceSparkLine.setCreateSymbols(false);
positions.stream().filter(spark -> !raceSparkLine.getData().contains(spark)).forEach(spark -> {