Ejemplo n.º 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;
  }
Ejemplo n.º 2
0
 public int getVisibleHeight() {
   TrackPanel dataTrackView = (TrackPanel) getParent();
   return dataTrackView.getVisibleRect().height;
 }
Ejemplo n.º 3
0
 public Collection<TrackGroup> getTrackGroups() {
   TrackPanel dataTrackView = (TrackPanel) getParent();
   return dataTrackView.getGroups();
 }
Ejemplo n.º 4
0
 public List<Track> getAllTracks() {
   TrackPanel dataTrackView = (TrackPanel) getParent();
   return dataTrackView.getTracks();
 }