|
|
|
|
@ -210,9 +210,11 @@ public class ResizableRaceCanvas extends Canvas {
|
|
|
|
|
if (this.raceBoundaries == null) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
gc.setFill(Color.AQUA);
|
|
|
|
|
//gc.setFill(Color.AQUA);
|
|
|
|
|
setRaceBoundCoordinates();
|
|
|
|
|
gc.fillPolygon(xpoints, ypoints, xpoints.length);
|
|
|
|
|
|
|
|
|
|
gc.setLineWidth(1);
|
|
|
|
|
gc.strokePolygon(xpoints, ypoints, xpoints.length);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
@ -248,10 +250,9 @@ public class ResizableRaceCanvas extends Canvas {
|
|
|
|
|
this.map.setWidth((int) width);
|
|
|
|
|
|
|
|
|
|
gc.setLineWidth(2);
|
|
|
|
|
drawBoundaries();
|
|
|
|
|
drawMarkers();
|
|
|
|
|
|
|
|
|
|
updateBoats();
|
|
|
|
|
drawMarkers();
|
|
|
|
|
drawBoundaries();
|
|
|
|
|
|
|
|
|
|
//display wind direction arrow - specify origin point and angle - angle now set to random angle
|
|
|
|
|
displayArrow(new GraphCoordinate((int) getWidth() - 40, 40), 150);
|
|
|
|
|
|