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; }
public boolean isReady(CyNetwork network) { if (scope == Scope.ALLNODES && settings.hasNodeCompounds(network.getNodeList())) return true; if (scope == Scope.SELECTEDNODES) return selectedNodesReady(network); return false; }
public boolean isReady(View<CyNode> nView, CyNetworkView netView) { if (nView != null && settings.hasNodeCompounds(Collections.singletonList(nView.getModel()))) return true; return selectedNodesReady(netView.getModel()); }