Пример #1
0
  public boolean isFilterShowAllTracks() {
    if (filterTracksAction != null) {
      return filterTracksAction.getShowAllTracksFilterCheckBox().isSelected();
    }

    return false;
  }
Пример #2
0
  public boolean isFilterMatchAll() {
    if (filterTracksAction != null) {
      return filterTracksAction.isFilterMatchAll();
    }

    return false;
  }
Пример #3
0
  private JMenu createTracksMenu() {

    List<JComponent> menuItems = new ArrayList<JComponent>();
    MenuAction menuAction = null;

    // Sort Context
    menuAction = new SortTracksMenuAction("Sort Tracks...", KeyEvent.VK_S, IGV.getInstance());
    menuAction.setToolTipText(SORT_TRACKS_TOOLTIP);
    menuItems.add(MenuAndToolbarUtils.createMenuItem(menuAction));

    menuAction = new GroupTracksMenuAction("Group Tracks... ", KeyEvent.VK_G, IGV.getInstance());
    menuAction.setToolTipText(UIConstants.GROUP_TRACKS_TOOLTIP);
    menuItems.add(MenuAndToolbarUtils.createMenuItem(menuAction));

    // Filter Tracks
    filterTracksAction =
        new FilterTracksMenuAction("Filter Tracks...", KeyEvent.VK_F, IGV.getInstance());
    filterTracksAction.setToolTipText(UIConstants.FILTER_TRACKS_TOOLTIP);
    menuItems.add(MenuAndToolbarUtils.createMenuItem(filterTracksAction));

    menuItems.add(new JSeparator());

    // Reset Tracks
    menuAction =
        new FitDataToWindowMenuAction("Fit Data to Window", KeyEvent.VK_W, IGV.getInstance());
    menuAction.setToolTipText(UIConstants.FIT_DATA_TO_WINDOW_TOOLTIP);
    menuItems.add(MenuAndToolbarUtils.createMenuItem(menuAction));

    // Set track height
    menuAction =
        new SetTrackHeightMenuAction("Set Track Height...", KeyEvent.VK_H, IGV.getInstance());
    menuAction.setToolTipText(UIConstants.SET_DEFAULT_TRACK_HEIGHT_TOOLTIP);
    menuItems.add(MenuAndToolbarUtils.createMenuItem(menuAction));

    MenuAction dataMenuAction = new MenuAction("Tracks", null, KeyEvent.VK_K);

    // menuItems.add(exportData);

    return MenuAndToolbarUtils.createMenu(menuItems, dataMenuAction);
  }
Пример #4
0
 public void setFilterShowAllTracks(boolean value) {
   if (filterTracksAction != null) {
     filterTracksAction.setFilterShowAllTracks(value);
   }
 }
Пример #5
0
 public void setFilterMatchAll(boolean value) {
   if (filterTracksAction != null) {
     filterTracksAction.setFilterMatchAll(value);
   }
 }
Пример #6
0
 public void resetSessionActions() {
   if (filterTracksAction != null) {
     filterTracksAction.resetTrackFilter();
   }
 }