From 7411558abf4aba7d600bb9fc713d36032e4a6df3 Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Sun, 20 Nov 2016 02:38:23 -0500 Subject: Show routes --- .../benburwell/planes/gui/aircraftmap/symbols/PlaneSymbol.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main/java/com/benburwell/planes/gui/aircraftmap/symbols/PlaneSymbol.java') 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 3e6b51c..a522b04 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 @@ -50,8 +50,8 @@ public class PlaneSymbol extends GeoPoint implements Drawable { } public Color getPlaneColor() { - Color minColor = GraphicsTheme.Colors.RED; - Color maxColor = GraphicsTheme.Colors.GREEN; + Color minColor = GraphicsTheme.Styles.MAP_PLANE_MIN_COLOR; + Color maxColor = GraphicsTheme.Styles.MAP_PLANE_MAX_COLOR; float[] minHsb = Color.RGBtoHSB(minColor.getRed(), minColor.getGreen(), minColor.getBlue(), null); float[] maxHsb = Color.RGBtoHSB(maxColor.getRed(), maxColor.getGreen(), maxColor.getBlue(), null); @@ -123,14 +123,14 @@ public class PlaneSymbol extends GeoPoint implements Drawable { g2d.dispose(); // draw the history track - g.setColor(GraphicsTheme.Colors.BASE_4); + g.setColor(GraphicsTheme.Styles.MAP_PLANE_TRACK_COLOR); this.historyTrack.forEach(pos -> { GeoPoint p = new GeoPoint(pos); g.fillRect(p.getX(map) - 2, p.getY(map) - 2, 4, 4); }); // draw the name of the plane - g.setColor(GraphicsTheme.Colors.BASE_5); + g.setColor(GraphicsTheme.Styles.MAP_LABEL_COLOR); g.drawString(this.getDisplayName(), x + TEXT_OFFSET_X, y + TEXT_OFFSET_Y); String infoString = String.format("%d%s %.1f", this.getFlightLevel(), this.getVerticalRateIndicator(), this.getSpeed()); g.drawString(infoString, x + TEXT_OFFSET_X, y + TEXT_OFFSET_Y + g.getFontMetrics().getHeight()); -- cgit v1.2.3