Пример #1
0
 public void displayGraph(Graph graph) {
   clearDisplay();
   this.graph = graph;
   controler = new GraphControler(graph);
   mainScrollArea.setViewportView(controler.getVisualGraph());
   AlgorithmSettingsUI.getInstance().setEagleView(controler.createEagleView());
 }
Пример #2
0
 public void clearDisplay() {
   if (controler != null) {
     mainScrollArea.setViewportView(null);
     controler.dispose();
     AlgorithmSettingsUI.getInstance().clearEagleView();
   }
   graph = null;
   controler = null;
 }
Пример #3
0
  /** Creates new form MainPanel */
  private MainPanel() {
    initComponents();

    explorerPanel.add(new ExplorerPanel(), BorderLayout.CENTER);
    settingsPanel.add(AlgorithmSettingsUI.getInstance());
  }