|
@@ -2,6 +2,7 @@ package de.tu_darmstadt.informatik.tk.scopviz.ui;
|
|
|
|
|
|
import java.awt.Dimension;
|
|
|
import java.io.IOException;
|
|
|
+import java.util.Collection;
|
|
|
|
|
|
import javax.swing.JButton;
|
|
|
import javax.swing.JComponent;
|
|
@@ -9,8 +10,13 @@ import javax.swing.JLabel;
|
|
|
import javax.swing.JPanel;
|
|
|
|
|
|
import org.graphstream.graph.Graph;
|
|
|
+import org.graphstream.ui.graphicGraph.GraphicElement;
|
|
|
+import org.graphstream.ui.graphicGraph.GraphicGraph;
|
|
|
import org.graphstream.ui.swingViewer.ViewPanel;
|
|
|
+import org.graphstream.ui.view.Camera;
|
|
|
import org.graphstream.ui.view.View;
|
|
|
+import org.graphstream.ui.view.util.MouseManager;
|
|
|
+import org.graphstream.ui.view.util.ShortcutManager;
|
|
|
|
|
|
import javafx.application.Application;
|
|
|
import javafx.embed.swing.SwingNode;
|
|
@@ -54,8 +60,10 @@ public class MainApp extends Application {
|
|
|
AnchorPane anchor = (AnchorPane) rootLayout.getChildren().get(1);
|
|
|
Pane pane = (Pane) anchor.getChildren().get(1);
|
|
|
SwingNode swingNode = (SwingNode) pane.getChildren().get(0);
|
|
|
-
|
|
|
- swingNode.setContent(new JLabel("Graph Anzeige"));
|
|
|
+
|
|
|
+ ViewPanel view = Visualizer.getView(ExampleGraphCreater.getGraph());
|
|
|
+ view.setPreferredSize(new Dimension(300, 200));
|
|
|
+ swingNode.setContent((JPanel) view)/*new JLabel("Graph Anzeige")*/;
|
|
|
|
|
|
primaryStage.setScene(scene);
|
|
|
primaryStage.show();
|