Exemplo 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;
 }
Exemplo 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;
  }
Exemplo 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());
  }