Пример #1
0
      @Override
      public void actionPerformed(ActionEvent e) {
        // TODO Auto-generated method stub
        if (pUtil.modifiedNetworkSet != null
            && !pUtil.modifiedNetworkSet.contains(network.getSUID())) {
          for (Protein p : sortResults.get(curalg)) {
            if (p.getSelectGroups() != null && !p.getSelectGroups().isEmpty()) {
              networkView
                  .getNodeView(p.getN())
                  .setVisualProperty(BasicVisualLexicon.NODE_FILL_COLOR, p.getOriginColor());
              networkView
                  .getNodeView(p.getN())
                  .setVisualProperty(BasicVisualLexicon.NODE_TOOLTIP, "");
              p.getSelectGroups().clear();
            }
          }
        } else {
          for (Protein p : sortResults.get(curalg)) {
            if (network.containsNode(p.getN())
                && p.getSelectGroups() != null
                && !p.getSelectGroups().isEmpty()) {
              networkView
                  .getNodeView(p.getN())
                  .setVisualProperty(BasicVisualLexicon.NODE_FILL_COLOR, p.getOriginColor());
              networkView
                  .getNodeView(p.getN())
                  .setVisualProperty(BasicVisualLexicon.NODE_TOOLTIP, "");
              p.getSelectGroups().clear();
            }
          }
        }

        SetColorMap.clear();
        selectedSets.clear();
        labelPanel.removeAll();
        labelPanel.repaint();
        networkView.updateView();
        SETINDEX = 0;
      }