Package org.cytoscape.ClusterViz.internal

Examples of org.cytoscape.ClusterViz.internal.ResultPanel$MCODEClusterBrowserPanel


    this.mcodeUtil = mcodeUtil;
  }

  public void actionPerformed(java.awt.event.ActionEvent event)
  {
    ResultPanel panel = getResultPanel(this.resultId);
    if (panel != null)
    {
      int resultId = panel.getResultId();
      Integer confirmed = Integer.valueOf(0);
      boolean requestUserConfirmation = Boolean.valueOf(getValue("requestUserConfirmation").toString()).booleanValue();
      if (requestUserConfirmation)
      {
        String message = (new StringBuilder("You are about to dispose of Result ")).append(resultId).append(".\nDo you wish to continue?").toString();
        confirmed = Integer.valueOf(JOptionPane.showOptionDialog(swingApplication.getJFrame(), ((Object) (new Object[] {
          message
        })), "Confirm", 0, 3, null, null, null));
      }
      if (confirmed.intValue() == 0)
      {
        List clusters = panel.getClusters();
        registrar.unregisterService(panel, CytoPanelComponent.class);
        mcodeUtil.removeNetworkResult(resultId);
        if (clusters != null)
        {
          Cluster c;
View Full Code Here


  public void handleEvent(CytoPanelComponentSelectedEvent event)
  {
    Component component = event.getCytoPanel().getSelectedComponent();

    if ((component instanceof ResultPanel)) {
      ResultPanel resultsPanel = (ResultPanel)component;

      double maxScore = resultsPanel.setNodeAttributesAndGetMaxScore();

      resultsPanel.selectCluster(null);

      VisualStyle appStyle = this.mcodeUtil.getAppStyle(maxScore);

      this.mcodeUtil.registerVisualStyle(appStyle);

      CyNetworkView netView = resultsPanel.getNetworkView();

      if ((netView != null) &&
        (this.visualMappingMgr.getVisualStyle(netView) == appStyle)) {
        appStyle.apply(netView);
        netView.updateView();
View Full Code Here

  protected ResultPanel getResultPanel(int resultId)
  {
    for (Iterator iterator = getResultPanels().iterator(); iterator.hasNext();)
    {
      ResultPanel panel = (ResultPanel)iterator.next();
      if (panel.getResultId() == resultId)
        return panel;
    }

    return null;
  }
View Full Code Here

    if (this.mcodeUtil.isOpened()) {
      CyNetwork network = e.getNetwork();
      Set resultIds = this.mcodeUtil.getNetworkResults(network.getSUID().longValue());

      for (Iterator localIterator = resultIds.iterator(); localIterator.hasNext(); ) { int id = ((Integer)localIterator.next()).intValue();
       ResultPanel panel = this.mcodeUtil.getResultPanel(id);
        if (panel != null) panel.discard(false);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.cytoscape.ClusterViz.internal.ResultPanel$MCODEClusterBrowserPanel

Copyright © 2018 www.massapicom. 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.