summaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorBen Burwell <ben.burwell@trifecta.com>2016-11-20 19:16:42 -0500
committerBen Burwell <ben.burwell@trifecta.com>2016-11-20 19:16:42 -0500
commit169e2b57413c823a7e974208b5edc83941ed06de (patch)
tree7a84ee80ffa41d240e860fde5ff018b7c7b27ad4 /src/main/java
parentcd7f72a250a1ea3d33a716e4877131215600098a (diff)
Show plane history beneath current location
Diffstat (limited to 'src/main/java')
-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);