示例#1
0
 // TODO zgire - why iterate through tracksToRemove if you end up calling clearFeatures() at the
 // end?
 public void clearTracksForReloadState() {
   ArrayList<HiCTrack> tracksToRemove = new ArrayList<HiCTrack>(trackManager.getLoadedTracks());
   for (HiCTrack trackToRemove : tracksToRemove) {
     if (trackToRemove.getName().equals(eigString)) {
       eigenvectorTrack = null;
     } else if (trackToRemove.getName().equals(ctrlEigString)) {
       controlEigenvectorTrack = null;
     } else {
       trackManager.removeTrack(trackToRemove);
     }
   }
   clearFeatures();
   superAdapter.updateTrackPanel();
 }
示例#2
0
 public void removeTrack(ResourceLocator locator) {
   if (resourceTree != null) resourceTree.remove(locator);
   if (encodeAction != null) encodeAction.remove(locator);
   trackManager.removeTrack(locator);
 }
示例#3
0
 public void removeTrack(HiCTrack track) {
   if (resourceTree != null) resourceTree.remove(track.getLocator());
   if (encodeAction != null) encodeAction.remove(track.getLocator());
   trackManager.removeTrack(track);
 }