question: public void selectCellsForEvent ( Object [ ] cells , MouseEvent event ) { if ( isToggleEvent ( event ) ) { graph . addSelectionCells ( cells ) ; } else { graph . setSelectionCells ( cells ) ; } }
target:  Selects the cells for the given event.