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