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