Modified size of mark

-Size of the mark changed to avoid confusion between mark and boats.
This commit is contained in:
David Wu
2017-03-26 18:47:44 +13:00
parent 073bcaa4a3
commit bd072af0c4
@@ -74,7 +74,7 @@ public class ResizableRaceCanvas extends Canvas {
*/ */
public void displayMark(GraphCoordinate graphCoordinate, Paint paint) { public void displayMark(GraphCoordinate graphCoordinate, Paint paint) {
gc.setFill(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) { for (BoatInRace boat : boats) {
if (boat != null) { if (boat != null) {
// System.out.print("Drawing Boat At: " + boat.getCurrentPosition()); // 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){ if (raceAnno){
displayText(boat.getAbbrev(), boat.getVelocity(), this.map.convertGPS(boat.getCurrentPosition()));} displayText(boat.getAbbrev(), boat.getVelocity(), this.map.convertGPS(boat.getCurrentPosition()));}
} }