|
@@ -3,7 +3,16 @@ package de.tu_darmstadt.informatik.tk.scopviz.ui;
|
|
import java.net.URL;
|
|
import java.net.URL;
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
import java.util.ResourceBundle;
|
|
import java.util.ResourceBundle;
|
|
|
|
+
|
|
|
|
+import javax.swing.JFrame;
|
|
import javax.swing.JPanel;
|
|
import javax.swing.JPanel;
|
|
|
|
+
|
|
|
|
+import org.jxmapviewer.JXMapViewer;
|
|
|
|
+import org.jxmapviewer.OSMTileFactoryInfo;
|
|
|
|
+import org.jxmapviewer.viewer.DefaultTileFactory;
|
|
|
|
+import org.jxmapviewer.viewer.GeoPosition;
|
|
|
|
+import org.jxmapviewer.viewer.TileFactoryInfo;
|
|
|
|
+
|
|
import de.tu_darmstadt.informatik.tk.scopviz.main.Main;
|
|
import de.tu_darmstadt.informatik.tk.scopviz.main.Main;
|
|
import de.tu_darmstadt.informatik.tk.scopviz.ui.handlers.KeyboardShortcuts;
|
|
import de.tu_darmstadt.informatik.tk.scopviz.ui.handlers.KeyboardShortcuts;
|
|
import de.tu_darmstadt.informatik.tk.scopviz.ui.handlers.MyAnimationTimer;
|
|
import de.tu_darmstadt.informatik.tk.scopviz.ui.handlers.MyAnimationTimer;
|
|
@@ -14,7 +23,9 @@ import javafx.beans.value.ObservableValue;
|
|
import javafx.embed.swing.SwingNode;
|
|
import javafx.embed.swing.SwingNode;
|
|
import javafx.fxml.FXML;
|
|
import javafx.fxml.FXML;
|
|
import javafx.fxml.Initializable;
|
|
import javafx.fxml.Initializable;
|
|
|
|
+import javafx.geometry.Insets;
|
|
import javafx.scene.control.Button;
|
|
import javafx.scene.control.Button;
|
|
|
|
+import javafx.scene.control.CheckBox;
|
|
import javafx.scene.control.Label;
|
|
import javafx.scene.control.Label;
|
|
import javafx.scene.control.ListView;
|
|
import javafx.scene.control.ListView;
|
|
import javafx.scene.control.MenuItem;
|
|
import javafx.scene.control.MenuItem;
|
|
@@ -24,7 +35,9 @@ import javafx.scene.control.TableRow;
|
|
import javafx.scene.control.TableView;
|
|
import javafx.scene.control.TableView;
|
|
import javafx.scene.control.cell.PropertyValueFactory;
|
|
import javafx.scene.control.cell.PropertyValueFactory;
|
|
import javafx.scene.control.cell.TextFieldTableCell;
|
|
import javafx.scene.control.cell.TextFieldTableCell;
|
|
|
|
+import javafx.scene.layout.GridPane;
|
|
import javafx.scene.layout.Pane;
|
|
import javafx.scene.layout.Pane;
|
|
|
|
+import javafx.scene.layout.VBox;
|
|
import javafx.scene.text.Text;
|
|
import javafx.scene.text.Text;
|
|
import javafx.util.Callback;
|
|
import javafx.util.Callback;
|
|
import javafx.util.Pair;
|
|
import javafx.util.Pair;
|
|
@@ -44,6 +57,8 @@ public class GUIController implements Initializable {
|
|
@FXML
|
|
@FXML
|
|
public SwingNode swingNode;
|
|
public SwingNode swingNode;
|
|
@FXML
|
|
@FXML
|
|
|
|
+ public SwingNode swingNodeWorldView;
|
|
|
|
+ @FXML
|
|
public Pane pane;
|
|
public Pane pane;
|
|
|
|
|
|
// The buttons present in the UI
|
|
// The buttons present in the UI
|
|
@@ -116,6 +131,15 @@ public class GUIController implements Initializable {
|
|
public Text selectModusText;
|
|
public Text selectModusText;
|
|
@FXML
|
|
@FXML
|
|
public Text actualLayerText;
|
|
public Text actualLayerText;
|
|
|
|
+
|
|
|
|
+ @FXML
|
|
|
|
+ public VBox symbolToolVBox;
|
|
|
|
+ @FXML
|
|
|
|
+ public CheckBox edgesVisibleCheckbox;
|
|
|
|
+ @FXML
|
|
|
|
+ public CheckBox nodeLabelCheckbox;
|
|
|
|
+ @FXML
|
|
|
|
+ public CheckBox edgeWeightCheckbox;
|
|
|
|
|
|
/**
|
|
/**
|
|
* Initializes all the references to the UI elements specified in the FXML
|
|
* Initializes all the references to the UI elements specified in the FXML
|
|
@@ -146,6 +170,7 @@ public class GUIController implements Initializable {
|
|
initializeLayerButton();
|
|
initializeLayerButton();
|
|
initializeDisplayPane();
|
|
initializeDisplayPane();
|
|
initializeMenuBar();
|
|
initializeMenuBar();
|
|
|
|
+ initializeSymbolRepToolbox();
|
|
|
|
|
|
// Initialize the Text Labels for displaying the current state of the
|
|
// Initialize the Text Labels for displaying the current state of the
|
|
// Application
|
|
// Application
|
|
@@ -183,6 +208,15 @@ public class GUIController implements Initializable {
|
|
zoomIn.setOnAction(ButtonManager.zoomInHandler);
|
|
zoomIn.setOnAction(ButtonManager.zoomInHandler);
|
|
zoomOut.setOnAction(ButtonManager.zoomOutHandler);
|
|
zoomOut.setOnAction(ButtonManager.zoomOutHandler);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ private void initializeSymbolRepToolbox(){
|
|
|
|
+ // Hide SymbolRep Toolbox View
|
|
|
|
+ symbolToolVBox.setVisible(false);
|
|
|
|
+
|
|
|
|
+ edgesVisibleCheckbox.selectedProperty().addListener(ButtonManager.edgeVisibleListener);
|
|
|
|
+ nodeLabelCheckbox.selectedProperty().addListener(ButtonManager.nodeLabelListener);
|
|
|
|
+ edgeWeightCheckbox.selectedProperty().addListener(ButtonManager.edgeWeightListener);
|
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
/**
|
|
* Set the Handlers for the Layer switch Buttons.
|
|
* Set the Handlers for the Layer switch Buttons.
|
|
@@ -198,7 +232,7 @@ public class GUIController implements Initializable {
|
|
layerButtons.add(operatorButton);
|
|
layerButtons.add(operatorButton);
|
|
layerButtons.add(mappingButton);
|
|
layerButtons.add(mappingButton);
|
|
layerButtons.add(symbolRepButton);
|
|
layerButtons.add(symbolRepButton);
|
|
- ButtonManager.initialize(layerButtons);
|
|
|
|
|
|
+ ButtonManager.initialize(layerButtons, this);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -350,5 +384,12 @@ public class GUIController implements Initializable {
|
|
assert createModusText != null : "fx:id=\"createModusText\" was not injected: check your FXML file 'NewBetterCoolerWindowTest.fxml'.";
|
|
assert createModusText != null : "fx:id=\"createModusText\" was not injected: check your FXML file 'NewBetterCoolerWindowTest.fxml'.";
|
|
assert selectModusText != null : "fx:id=\"selectModusText\" was not injected: check your FXML file 'NewBetterCoolerWindowTest.fxml'.";
|
|
assert selectModusText != null : "fx:id=\"selectModusText\" was not injected: check your FXML file 'NewBetterCoolerWindowTest.fxml'.";
|
|
assert actualLayerText != null : "fx:id=\"actualLayerText\" was not injected: check your FXML file 'NewBetterCoolerWindowTest.fxml'.";
|
|
assert actualLayerText != null : "fx:id=\"actualLayerText\" was not injected: check your FXML file 'NewBetterCoolerWindowTest.fxml'.";
|
|
|
|
+
|
|
|
|
+ assert symbolToolVBox != null : "fx:id=\"symbolToolVBox\" was not injected: check your FXML file 'NewBetterCoolerWindowTest.fxml'.";
|
|
|
|
+ assert edgesVisibleCheckbox != null : "fx:id=\"edgesVisibleCheckbox\" was not injected: check your FXML file 'NewBetterCoolerWindowTest.fxml'.";
|
|
|
|
+ assert nodeLabelCheckbox != null : "fx:id=\"nodeLabelCheckbox\" was not injected: check your FXML file 'NewBetterCoolerWindowTest.fxml'.";
|
|
|
|
+ assert edgeWeightCheckbox != null : "fx:id=\"egdeWeightCheckbox\" was not injected: check your FXML file 'NewBetterCoolerWindowTest.fxml'.";
|
|
|
|
+
|
|
|
|
+ assert swingNodeWorldView != null : "fx:id=\"swingNodeWorldView\" was not injected: check your FXML file 'NewBetterCoolerWindowTest.fxml'.";
|
|
}
|
|
}
|
|
}
|
|
}
|