|
|
|
|
@ -74,7 +74,7 @@ public class ResizableRaceCanvas extends Canvas {
|
|
|
|
|
*/
|
|
|
|
|
public void displayMark(GraphCoordinate graphCoordinate, Paint paint) {
|
|
|
|
|
gc.setFill(paint);
|
|
|
|
|
gc.fillOval(graphCoordinate.getX(), graphCoordinate.getY(), 15, 15);
|
|
|
|
|
gc.fillOval(graphCoordinate.getX(), graphCoordinate.getY(), 25, 25);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
@ -194,7 +194,7 @@ public class ResizableRaceCanvas extends Canvas {
|
|
|
|
|
for (BoatInRace boat : boats) {
|
|
|
|
|
if (boat != null) {
|
|
|
|
|
// System.out.print("Drawing Boat At: " + boat.getCurrentPosition());
|
|
|
|
|
displayMark(this.map.convertGPS(boat.getCurrentPosition()), boat.getColour());
|
|
|
|
|
displayPoint(this.map.convertGPS(boat.getCurrentPosition()), boat.getColour());
|
|
|
|
|
if (raceAnno){
|
|
|
|
|
displayText(boat.getAbbrev(), boat.getVelocity(), this.map.convertGPS(boat.getCurrentPosition()));}
|
|
|
|
|
}
|
|
|
|
|
|