Example #1
0
 private boolean safeActuallySetZoomAndLocation(
     final String chrXName,
     final String chrYName,
     final HiCZoom newZoom,
     final int genomeX,
     final int genomeY,
     final double scaleFactor,
     final boolean resetZoom,
     final ZoomCallType zoomCallType,
     String message,
     final boolean allowLocationBroadcast) {
   final boolean[] returnVal = new boolean[1];
   superAdapter.executeLongRunningTask(
       new Runnable() {
         @Override
         public void run() {
           returnVal[0] =
               unsafeActuallySetZoomAndLocation(
                   chrXName,
                   chrYName,
                   newZoom,
                   genomeX,
                   genomeY,
                   scaleFactor,
                   resetZoom,
                   zoomCallType,
                   allowLocationBroadcast);
         }
       },
       message);
   return returnVal[0];
 }
Example #2
0
 private void initializeGeneHashMap(String genomeID) {
   if (genomeID.equals("hg19")
       || genomeID.equals("hg38")
       || genomeID.equals("mm9")
       || genomeID.equals("mm10")) {
     final String gID = genomeID;
     Runnable runnable =
         new Runnable() {
           @Override
           public void run() {
             unsafeInitializeGeneHashMap(gID);
           }
         };
     superAdapter.executeLongRunningTask(runnable, "Initialize Gene Hash Map");
   } else {
     MessageUtils.showErrorMessage("Cannot find genes for " + genomeID, null);
     positionChrTop.setBackground(Color.yellow);
     geneLocationHashMap = null;
   }
 }