Modified size of mark
-Size of the mark changed to avoid confusion between mark and boats.
This commit is contained in:
@@ -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()));}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user