protected void toggleTrackSelections(MouseEvent e) { for (MouseableRegion mouseRegion : mouseRegions) { if (mouseRegion.containsPoint(e.getX(), e.getY())) { IGV.getInstance().toggleTrackSelections(mouseRegion.getTracks()); return; } } }
protected boolean isTrackSelected(MouseEvent e) { for (MouseableRegion mouseRegion : mouseRegions) { if (mouseRegion.containsPoint(e.getX(), e.getY())) { for (Track t : mouseRegion.getTracks()) { if (t.isSelected()) { return true; } } } } return false; }
protected void selectTracks(MouseEvent e) { if (log.isDebugEnabled()) { log.debug("Enter selectTracks"); } for (MouseableRegion mouseRegion : mouseRegions) { if (mouseRegion.containsPoint(e.getX(), e.getY())) { IGV.getInstance().setTrackSelections(mouseRegion.getTracks()); return; } } }