added knots beside boat name #story[447]

This commit is contained in:
Peter
2017-03-24 11:51:07 +13:00
parent e19f110f19
commit 50ab481b18
2 changed files with 2 additions and 2 deletions
@@ -39,7 +39,7 @@ public class BoatPositionController {
positionVbox.getChildren().removeAll();
for (Boat boat: boatOrder){
positionVbox.getChildren().add(new Text(boat.getTeamName() + " " + boat.getVelocity()));
positionVbox.getChildren().add(new Text(boat.getTeamName() + " " + boat.getSpeedInKnots() + " Knots"));
}
}
@@ -271,7 +271,7 @@ public class CanvasController {
gc.setFill(color);
gc.setLineWidth(3);
gc.setFontSmoothingType(FontSmoothingType.GRAY);
gc.fillText(name + ", " + speed + " knots",x+15,y+15);
gc.fillText(name + ", " + speed + " knots", x+15, y+15);
gc.fillOval(x, y, diameter, diameter);
}