summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/benburwell/planes/gui/aircraftmap/symbols/PlaneSymbol.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/main/java/com/benburwell/planes/gui/aircraftmap/symbols/PlaneSymbol.java b/src/main/java/com/benburwell/planes/gui/aircraftmap/symbols/PlaneSymbol.java
index fdf9737..6b51da6 100644
--- a/src/main/java/com/benburwell/planes/gui/aircraftmap/symbols/PlaneSymbol.java
+++ b/src/main/java/com/benburwell/planes/gui/aircraftmap/symbols/PlaneSymbol.java
@@ -117,13 +117,6 @@ public class PlaneSymbol extends GeoPoint implements Drawable {
int x = this.getX(map);
int y = this.getY(map);
- // draw the plane dot
- Graphics2D g2d = (Graphics2D) g.create();
- g2d.setColor(this.getPlaneColor());
- int predictedTrack = this.getPredictionLength(map.getPixelsPerNauticalMile());
- this.drawTriangle(g2d, x, y, predictedTrack);
- g2d.dispose();
-
// draw the history track
g.setColor(GraphicsTheme.Styles.MAP_PLANE_TRACK_COLOR);
this.historyTrack.forEach(pos -> {
@@ -131,6 +124,13 @@ public class PlaneSymbol extends GeoPoint implements Drawable {
g.fillRect(p.getX(map) - 2, p.getY(map) - 2, 4, 4);
});
+ // draw the plane dot
+ Graphics2D g2d = (Graphics2D) g.create();
+ g2d.setColor(this.getPlaneColor());
+ int predictedTrack = this.getPredictionLength(map.getPixelsPerNauticalMile());
+ this.drawTriangle(g2d, x, y, predictedTrack);
+ g2d.dispose();
+
// draw the name of the plane
if (displayMode.equals(DisplayMode.DETAILED)) {
g.setColor(GraphicsTheme.Styles.MAP_LABEL_COLOR);