private void removeSynapseGroupNodes(SynapseGroup group){
  SynapseNode node;
  for (  Synapse synapse : group.getExcitatorySynapses()) {
    node=(SynapseNode)objectNodeMap.get(synapse);
    if (node != null) {
      selectionModel.remove(node);
      objectNodeMap.remove(synapse);
      node.removeFromParent();
    }
  }
  for (  Synapse synapse : group.getInhibitorySynapses()) {
    node=(SynapseNode)objectNodeMap.get(synapse);
    if (node != null) {
      selectionModel.remove(node);
      objectNodeMap.remove(synapse);
      node.removeFromParent();
    }
  }
  repaint();
}

private void removeSynapseGroupNodes ( SynapseGroup group ) { SynapseNode node ; for ( Synapse synapse : group . getExcitatorySynapses ( ) ) { node = ( SynapseNode ) objectNodeMap . get ( synapse ) ; if ( node != null ) { selectionModel . remove ( node ) ; objectNodeMap . remove ( synapse ) ; node . removeFromParent ( ) ; } } for ( Synapse synapse : group . getInhibitorySynapses ( ) ) { node = ( SynapseNode ) objectNodeMap . get ( synapse ) ; if ( node != null ) { selectionModel . remove ( node ) ; objectNodeMap . remove ( synapse ) ; node . removeFromParent ( ) ; } } repaint ( ) ; }
remove all synapse group nodes associated with a synapse group . used when toggling the visibility of synapses in a synapse group node .
