Beispiel #1
0
 protected void toggleTrackSelections(MouseEvent e) {
   for (MouseableRegion mouseRegion : mouseRegions) {
     if (mouseRegion.containsPoint(e.getX(), e.getY())) {
       IGV.getInstance().toggleTrackSelections(mouseRegion.getTracks());
       return;
     }
   }
 }
Beispiel #2
0
 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;
 }
Beispiel #3
0
  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;
      }
    }
  }