|
|
|
|
@ -317,9 +317,6 @@ public class ResizableRaceCanvas extends ResizableCanvas {
|
|
|
|
|
*/
|
|
|
|
|
private void drawBoat(VisualiserBoat boat) {
|
|
|
|
|
|
|
|
|
|
//The position may be null if we haven't received any BoatLocation messages yet.
|
|
|
|
|
if (boat.getCurrentPosition() != null) {
|
|
|
|
|
|
|
|
|
|
if (boat.isClientBoat()) {
|
|
|
|
|
drawClientBoat(boat);
|
|
|
|
|
}
|
|
|
|
|
@ -349,7 +346,6 @@ public class ResizableRaceCanvas extends ResizableCanvas {
|
|
|
|
|
gc.fillPolygon(x, y, 3);
|
|
|
|
|
gc.restore();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -521,7 +517,7 @@ public class ResizableRaceCanvas extends ResizableCanvas {
|
|
|
|
|
* draws a transparent line around the course that shows the paths boats must travel
|
|
|
|
|
*/
|
|
|
|
|
public void drawRaceLine(){
|
|
|
|
|
List<Leg> legs = this.visualiserRace.getLegs();
|
|
|
|
|
List<Leg> legs = this.visualiserRace.getVisualiserRaceState().getLegs();
|
|
|
|
|
GPSCoordinate legStartPoint = legs.get(0).getStartCompoundMark().getAverageGPSCoordinate();
|
|
|
|
|
GPSCoordinate nextStartPoint;
|
|
|
|
|
for (int i = 0; i < legs.size() -1; i++) {
|
|
|
|
|
|