示例#1
0
 public void moveTrack(HiCTrack track, boolean thisShouldBeMovedUp) {
   if (thisShouldBeMovedUp) {
     // move the track up
     trackManager.moveTrackUp(track);
   } else {
     // move the track down
     trackManager.moveTrackDown(track);
   }
 }
示例#2
0
 public void loadEigenvectorTrack() {
   if (eigenvectorTrack == null) {
     eigenvectorTrack = new EigenvectorTrack(eigString, eigString, this, false);
   }
   if (controlEigenvectorTrack == null && isControlLoaded()) {
     controlEigenvectorTrack = new EigenvectorTrack(ctrlEigString, ctrlEigString, this, true);
   }
   trackManager.add(eigenvectorTrack);
   if (controlEigenvectorTrack != null && isControlLoaded()) {
     trackManager.add(controlEigenvectorTrack);
   }
 }
示例#3
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();
 }
示例#4
0
 public List<HiCTrack> getLoadedTrackList() {
   return trackManager.getLoadedTracks();
 }
示例#5
0
 public void removeTrack(ResourceLocator locator) {
   if (resourceTree != null) resourceTree.remove(locator);
   if (encodeAction != null) encodeAction.remove(locator);
   trackManager.removeTrack(locator);
 }
示例#6
0
 public void removeTrack(HiCTrack track) {
   if (resourceTree != null) resourceTree.remove(track.getLocator());
   if (encodeAction != null) encodeAction.remove(track.getLocator());
   trackManager.removeTrack(track);
 }
示例#7
0
 public void loadCoverageTrack(NormalizationType no) {
   trackManager.loadCoverageTrack(no);
 }
示例#8
0
 public void loadTrack(String path) {
   trackManager.loadTrack(path);
 }
示例#9
0
 public void unsafeLoadHostedTracks(List<ResourceLocator> locators) {
   trackManager.unsafeTrackLoad(locators);
 }
示例#10
0
 public java.util.List<HiCTrack> getLoadedTracks() {
   return trackManager == null ? new ArrayList<HiCTrack>() : trackManager.getLoadedTracks();
 }
示例#11
0
 private void clearFeatures() {
   trackManager.clearTracks();
   feature2DHandler.clearLists();
 }