From 169e2b57413c823a7e974208b5edc83941ed06de Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Sun, 20 Nov 2016 19:16:42 -0500 Subject: Show plane history beneath current location --- .../planes/gui/aircraftmap/symbols/PlaneSymbol.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src') 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); -- cgit v1.2.3