diff options
author | Ben Burwell <ben.burwell@trifecta.com> | 2016-11-20 03:07:14 -0500 |
---|---|---|
committer | Ben Burwell <ben.burwell@trifecta.com> | 2016-11-20 03:07:14 -0500 |
commit | 46f3cb1df2d24180b9bfddf008798cd695554e28 (patch) | |
tree | e44ae61788a05ba941b9502dc33a3dfb63a99f08 /src/main/java/com/benburwell/planes/gui/aircraftmap/symbols/VORDMESymbol.java | |
parent | 7411558abf4aba7d600bb9fc713d36032e4a6df3 (diff) |
Implement flexible display modes
Diffstat (limited to 'src/main/java/com/benburwell/planes/gui/aircraftmap/symbols/VORDMESymbol.java')
-rw-r--r-- | src/main/java/com/benburwell/planes/gui/aircraftmap/symbols/VORDMESymbol.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/com/benburwell/planes/gui/aircraftmap/symbols/VORDMESymbol.java b/src/main/java/com/benburwell/planes/gui/aircraftmap/symbols/VORDMESymbol.java index 6b12260..b8a754c 100644 --- a/src/main/java/com/benburwell/planes/gui/aircraftmap/symbols/VORDMESymbol.java +++ b/src/main/java/com/benburwell/planes/gui/aircraftmap/symbols/VORDMESymbol.java @@ -3,6 +3,7 @@ package com.benburwell.planes.gui.aircraftmap.symbols; import com.benburwell.planes.data.Position; import com.benburwell.planes.gui.GraphicsTheme; import com.benburwell.planes.gui.aircraftmap.AircraftMap; +import com.benburwell.planes.gui.aircraftmap.DisplayMode; import com.benburwell.planes.gui.aircraftmap.Drawable; import java.awt.Graphics; @@ -16,9 +17,9 @@ public class VORDMESymbol extends VORSymbol implements Drawable { } @Override - public void drawOn(Graphics graphicsContext, AircraftMap map) { - super.drawOn(graphicsContext, map); - if (this.shouldDrawOn(map)) { + public void drawOn(Graphics graphicsContext, AircraftMap map, DisplayMode displayMode) { + super.drawOn(graphicsContext, map, displayMode); + if (this.shouldDrawOn(map) && !displayMode.equals(DisplayMode.HIDDEN)) { int x = this.getX(map); int y = this.getY(map); graphicsContext.setColor(GraphicsTheme.Styles.MAP_NAVAID_COLOR); |