From 4a7ae2831563622ebb4a1d893764afd0e0e0dfbe Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Sat, 19 Nov 2016 16:50:33 -0500 Subject: Add prediction --- src/com/benburwell/planes/gui/aircraftmap/AircraftMapComponent.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/com/benburwell/planes/gui/aircraftmap/AircraftMapComponent.java') 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 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(); -- cgit v1.2.3