diff options
author | Ben Burwell <ben.burwell@trifecta.com> | 2016-11-19 16:50:33 -0500 |
---|---|---|
committer | Ben Burwell <ben.burwell@trifecta.com> | 2016-11-19 16:50:33 -0500 |
commit | 4a7ae2831563622ebb4a1d893764afd0e0e0dfbe (patch) | |
tree | 15c0d0501bb49d95840513cd404c63eadcf295b4 /src/com/benburwell/planes/gui/aircraftmap/AircraftMapComponent.java | |
parent | 7dc095c87ae62e02b1e36edabd5da8123766c6d3 (diff) |
Add prediction
Diffstat (limited to 'src/com/benburwell/planes/gui/aircraftmap/AircraftMapComponent.java')
-rw-r--r-- | src/com/benburwell/planes/gui/aircraftmap/AircraftMapComponent.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/com/benburwell/planes/gui/aircraftmap/AircraftMapComponent.java b/src/com/benburwell/planes/gui/aircraftmap/AircraftMapComponent.java index 50ddb13..e490dae 100644 --- a/src/com/benburwell/planes/gui/aircraftmap/AircraftMapComponent.java +++ b/src/com/benburwell/planes/gui/aircraftmap/AircraftMapComponent.java @@ -85,10 +85,7 @@ public class AircraftMapComponent implements ViewComponent { @Override public void aircraftStoreChanged() { List<Drawable> planes = new ArrayList<>(); - store.getAircraft().values().forEach(aircraft -> { - String name = !aircraft.getCallsign().isEmpty() ? aircraft.getCallsign() : aircraft.getHexIdent(); - planes.add(new Plane(name, aircraft.getCurrentPosition(), aircraft.getTrack())); - }); + store.getAircraft().values().forEach(aircraft -> planes.add(new Plane(aircraft))); mapPanel.setPlanes(planes); mapPanel.validate(); mapPanel.repaint(); |