RaceClock no has run(), or is runnable, as it wasn't needed.
Refactored Sparkline a bit. Now listens to our data model instead of being manually updated. Boat position labels don't work currently, though. VisualiserRace now also tracks the order in which boats pass each leg.
This commit is contained in:
@@ -241,6 +241,7 @@ public class StartController extends Controller implements Observer {
|
||||
@Override
|
||||
public void handle(long arg0) {
|
||||
|
||||
//TODO instead of having an AnimationTimer checking the race status, we could provide a Property<RaceStatusEnum>, and connect a listener to that.
|
||||
//Get the current race status.
|
||||
RaceStatusEnum raceStatus = visualiserRace.getRaceStatusEnum();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user