Exemple #1
0
  public boolean scrollTo(String trackName) {
    Track t = findNextTrackMatching(trackName);
    if (t != null) {
      IGV.getInstance().clearSelections();
      t.setSelected(true);
      if (trackPanel.getScrollPane().getVerticalScrollBar().isShowing()) {
        trackPanel.getScrollPane().getVerticalScrollBar().setValue(t.getY());
      }
      return true;
    }

    return false;
  }
 public int getVisibleHeight() {
   TrackPanel dataTrackView = (TrackPanel) getParent();
   return dataTrackView.getVisibleRect().height;
 }
 public Collection<TrackGroup> getTrackGroups() {
   TrackPanel dataTrackView = (TrackPanel) getParent();
   return dataTrackView.getGroups();
 }
Exemple #4
0
 public List<Track> getAllTracks() {
   TrackPanel dataTrackView = (TrackPanel) getParent();
   return dataTrackView.getTracks();
 }