Examples of GraphPanel


Examples of graphmatcher.gui.GraphPanel

    GraphListPanel listPanel = new GraphListPanel("");
    listPanel.setInitialData(graphs);
    frame.add(listPanel, BorderLayout.WEST);

    final GraphPanel graphPanel = new GraphPanel(Color.BLACK, Color.GREEN);
    frame.add(graphPanel, BorderLayout.CENTER);

    listPanel.addListSelectionListener(new ListSelectionListener() {
      public void valueChanged(ListSelectionEvent e) {
        JList list = (JList) e.getSource();
        Graph graph = (Graph) list.getSelectedValue();
        graphPanel.setGraph(graph);
      }
    });

    frame.pack();
    frame.setVisible(true);
View Full Code Here

Examples of info.aduna.clustermap.GraphPanel

      }     
    });     
  }

  private void registerDoubleClickListener(ClusterMapMediator mediator) {
    final GraphPanel panel = mediator.getGraphPanel();

    // a hack to disable the default double-click listener
    // that comes with the clustermap API, which is impl
    // for a Java Application not an Applet
    MouseListener[] listeners = panel.getMouseListeners();
    //for (int i = 0; i < listeners.length; i++) {
    if(listeners != null && listeners.length == 2)
      panel.removeMouseListener(listeners[1]);
    //}

    // adds our own MouseListener for opening
    // URL in applet context.
    panel.addMouseListener(new MouseAdapter() {
      public void mouseClicked(MouseEvent e) {
        if (e.getClickCount() == 1) {
          // the coord where the user has double-clicked
          int x = e.getX();
          int y = e.getY();
          // resolve the object if the user double-clicked on
          // a cluster object.
          Object obj = panel.resolveObject(x, y);
          if (obj != null && (obj instanceof DefaultObject)) {
            DefaultObject defObj = (DefaultObject) obj;
            if (defObj.getLocation() != null) {
              URL url;
              try {
View Full Code Here

Examples of it.freedomotic.jfrontend.extras.GraphPanel

            // get related object from address
            EnvObjectLogic obj = (EnvObjectLogic) getApi().getObjectByAddress("harvester", c.getProperty("event.object.address")).toArray()[0];
            // open GraphWindow related to the object
            if (obj.getBehavior("data") != null) { // has a 'data' behavior
                if (!obj.getBehavior("data").getValueAsString().isEmpty()) {
                    GraphPanel gw = graphs.get(obj.getPojo().getUUID());
                    if (gw != null) {
                        gw.reDraw();
                    } else {
                        gw = new GraphPanel(this, obj);
                        graphs.put(obj.getPojo().getUUID(), gw);
                    }
                }

                //sendBack(c);
View Full Code Here

Examples of jmt.gui.exact.panels.GraphPanel

    solutionWindow.getContentPane().add(jtp);
    solutionWindow.setIconImage(this.getIconImage());
    IterationSelector selector = null;
    if (data.isWhatIf()) {
      // Graphic panel (Bertoli Marco)
      jtp.add(new GraphPanel(data));
      selector = new IterationSelector(data);
    }
    /* EDITED by Abhimanyu Chugh */
    if (selector != null && data.isClosed() && data.isWhatifAlgorithms()) {
      for (SolverAlgorithm algorithm : data.getWhatifAlgorithms()) {
View Full Code Here

Examples of jmt.gui.jwat.trafficAnalysis.panels.GraphPanel

    p = new TextualPanel(this);
    JWatPanels.add(p);
    this.addPanel(p);

    p = new GraphPanel(this);
    JWatPanels.add(p);
    this.addPanel(p);

    p = new GraphArrivalPanel(this);
    JWatPanels.add(p);
View Full Code Here

Examples of net.sf.soundcomp.ide.grapheditor.panel.GraphPanel

        javaHelp.setup(helpContextMenuItem);
       
        textPanel = new TextPanel();
        audioPanel = new AudioPanel();
        audioPanel.setPopupMenu(audioPopupMenu);
        graphPanel = new GraphPanel();
        graphPanel.setComponentPopupMenu(graphPopupMenu);
        addFramePanel(textPanel, textPanel.getPanelName());
        addFramePanel(audioPanel, audioPanel.getPanelName());
        addFramePanel(graphPanel, graphPanel.getPanelName());
        addStatusPanel(textEditorStatusPanel, textPanel.getPanelName());
View Full Code Here

Examples of org.gephi.visualization.swing.GraphPanel

        GraphCanvas canvas = new GraphCanvas();
        return canvas;
    }

    public GraphPanel createPanel() {
        GraphPanel panel = new GraphPanel();
        return panel;
    }
View Full Code Here

Examples of org.gephi.visualization.swing.GraphPanel

        GraphCanvas canvas = new GraphCanvas();
        return canvas;
    }

    public GraphPanel createPanel() {
        GraphPanel panel = new GraphPanel();
        return panel;
    }
View Full Code Here

Examples of uk.ac.cranfield.thesis.client.view.GraphPanel

    public ThesisAE()
    {
        mainPanel = new VerticalPanel();
        inputPanel = new InputPanel(this);
        equationPanel = new EquationPanel();
        graphPanel = new GraphPanel(inputPanel);
        rootPanel = RootPanel.get();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.