Esempio n. 1
0
 private boolean selectedNodesReady(CyNetwork network) {
   List<CyNode> selectedNodes = CyTableUtil.getNodesInState(network, CyNetwork.SELECTED, true);
   if (selectedNodes != null && selectedNodes.size() > 0) {
     if (settings.hasNodeCompounds(selectedNodes)) return true;
   }
   return false;
 }
Esempio n. 2
0
  public boolean isReady(CyNetwork network) {
    if (scope == Scope.ALLNODES && settings.hasNodeCompounds(network.getNodeList())) return true;

    if (scope == Scope.SELECTEDNODES) return selectedNodesReady(network);

    return false;
  }
Esempio n. 3
0
  public boolean isReady(View<CyNode> nView, CyNetworkView netView) {
    if (nView != null && settings.hasNodeCompounds(Collections.singletonList(nView.getModel())))
      return true;

    return selectedNodesReady(netView.getModel());
  }