package de.tu_darmstadt.informatik.tk.scopviz.ui; import java.io.IOException; import java.util.ArrayList; import java.util.HashSet; import java.util.stream.Collectors; import org.jxmapviewer.viewer.GeoPosition; import org.jxmapviewer.viewer.WaypointPainter; import de.tu_darmstadt.informatik.tk.scopviz.graphs.GraphManager; import de.tu_darmstadt.informatik.tk.scopviz.graphs.MyGraph; import de.tu_darmstadt.informatik.tk.scopviz.main.Layer; import de.tu_darmstadt.informatik.tk.scopviz.main.Main; import de.tu_darmstadt.informatik.tk.scopviz.ui.mapView.CustomMapClickListener; import de.tu_darmstadt.informatik.tk.scopviz.ui.mapView.CustomWaypoint; import de.tu_darmstadt.informatik.tk.scopviz.ui.mapView.CustomWaypointRenderer; import de.tu_darmstadt.informatik.tk.scopviz.ui.mapView.MapViewFunctions; import de.tu_darmstadt.informatik.tk.scopviz.ui.mapView.WorldView; import javafx.application.Platform; import javafx.beans.value.ObservableValue; import javafx.event.ActionEvent; import javafx.scene.control.Alert; import javafx.scene.control.Alert.AlertType; import javafx.scene.control.Button; /** * Manager to contain the various handlers for the buttons of the UI. * * @author Jan Enders (jan.enders@stud.tu-darmstadt.de), Julian Ohl, Dominik * Renkel * @version 1.2 * */ public final class ButtonManager { /** List of the Buttons for Layer switching. */ private static ArrayList