|
|
|
|
@ -794,18 +794,11 @@ public class ResizableRaceCanvas extends ResizableCanvas {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private Color getLineColor(Leg leg) {
|
|
|
|
|
for (VisualiserBoat boat : raceState.getBoats()) {
|
|
|
|
|
if (boat.isClientBoat()) {
|
|
|
|
|
if (boat.getCurrentLeg().getLegNumber() == leg.getLegNumber()) {
|
|
|
|
|
return Color.ORANGE;
|
|
|
|
|
} else {
|
|
|
|
|
return Color.MEDIUMAQUAMARINE;
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
return Color.MEDIUMAQUAMARINE;
|
|
|
|
|
}
|
|
|
|
|
if(ThisBoat.getInstance().getLegNumber() == leg.getLegNumber()){
|
|
|
|
|
return Color.ORANGE;
|
|
|
|
|
}else{
|
|
|
|
|
return Color.MEDIUMAQUAMARINE;
|
|
|
|
|
}
|
|
|
|
|
return Color.MEDIUMAQUAMARINE;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void drawArrowHead(GPSCoordinate start, GPSCoordinate end){
|
|
|
|
|
|