summaryrefslogtreecommitdiff
path: root/src/com/benburwell/planes/gui/aircraftmap/AircraftMapComponent.java
diff options
context:
space:
mode:
authorBen Burwell <ben.burwell@trifecta.com>2016-11-19 16:50:33 -0500
committerBen Burwell <ben.burwell@trifecta.com>2016-11-19 16:50:33 -0500
commit4a7ae2831563622ebb4a1d893764afd0e0e0dfbe (patch)
tree15c0d0501bb49d95840513cd404c63eadcf295b4 /src/com/benburwell/planes/gui/aircraftmap/AircraftMapComponent.java
parent7dc095c87ae62e02b1e36edabd5da8123766c6d3 (diff)
Add prediction
Diffstat (limited to 'src/com/benburwell/planes/gui/aircraftmap/AircraftMapComponent.java')
-rw-r--r--src/com/benburwell/planes/gui/aircraftmap/AircraftMapComponent.java5
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();