Package ij.text

Examples of ij.text.TextWindow


          sb.append(IJ.d2s(plot.xValues[i],xdigits)+"\t"+IJ.d2s(plot.yValues[i],ydigits)+"\n");
        else
          sb.append(IJ.d2s(plot.yValues[i],ydigits)+"\n");
      }
    }
    TextWindow tw = new TextWindow("Plot Values", headings, sb.toString(), 200, 400);
    if (autoClose)
      {imp.changes=false; close();}
  }
View Full Code Here


    StringBuffer sb = new StringBuffer();
        String vheading = stats.binSize==1.0?"value":"bin start";
    if (cal.calibrated() && !cal.isSigned16Bit()) {
      for (int i=0; i<stats.nBins; i++)
        sb.append(i+"\t"+IJ.d2s(cal.getCValue(stats.histMin+i*stats.binSize), digits)+"\t"+histogram[i]+"\n");
      TextWindow tw = new TextWindow(getTitle(), "level\t"+vheading+"\tcount", sb.toString(), 200, 400);
    } else {
      for (int i=0; i<stats.nBins; i++)
        sb.append(IJ.d2s(cal.getCValue(stats.histMin+i*stats.binSize), digits)+"\t"+histogram[i]+"\n");
      TextWindow tw = new TextWindow(getTitle(), vheading+"\tcount", sb.toString(), 200, 400);
    }
  }
View Full Code Here

        case ROI:
          IJ.runPlugIn("ij.plugin.RoiReader", path);
          break;
        case JAVA_OR_TEXT: case TEXT:
          if (IJ.altKeyDown()) { // open in TextWindow if alt key down
            new TextWindow(path,400,450);
            IJ.setKeyUp(KeyEvent.VK_ALT);
            break;
          }
          File file = new File(path);
          int maxSize = 250000;
          long size = file.length();
          if (size>=28000) {
            String osName = System.getProperty("os.name");
            if (osName.equals("Windows 95") || osName.equals("Windows 98") || osName.equals("Windows Me"))
              maxSize = 60000;
          }
          if (size<maxSize) {
            Editor ed = (Editor)IJ.runPlugIn("ij.plugin.frame.Editor", "");
            if (ed!=null) ed.open(getDir(path), getName(path));
          } else
            new TextWindow(path,400,450);
          break;
        case UNKNOWN:
          String msg =
            "File is not in TIFF, JPEG, GIF, BMP, DICOM, FITS, PGM, \n"+
            "ZIP, LUT, ROI or text format, a reader plugin for this\n"+
View Full Code Here

      PrintWriter pw = new PrintWriter(caw);
      e.printStackTrace(pw);
      String s = caw.toString();
      if (IJ.isMacintosh())
        s = Tools.fixNewLines(s);
      new TextWindow("Exception", s, 350, 250);
    }
  }
View Full Code Here

          if (s.indexOf("ThreadDeath")>0)
            return;
          s = Tools.fixNewLines(s);
        }
        if (IJ.getInstance()!=null)
          new TextWindow("Exception", s, 350, 250);
        else
          IJ.log(s);
      }
    }
  }
View Full Code Here

    });
  }

  public void dumpInfo() {
    String header = new String("Parameter\tValue");
    TextWindow tw = new TextWindow("LSM Infos DUMP", header, null, 280, 450);
    String[] Parameters = new String[26];
    Parameters[0] = "File Name";
    Parameters[1] = "User";
    Parameters[2] = "Image Width";
    Parameters[3] = "Image Height";
    Parameters[4] = "Number of channels";
    Parameters[5] = "Z Stack size";
    Parameters[6] = "Time Stack size";
    Parameters[7] = "Scan Type";
    Parameters[8] = "Voxel X size";
    Parameters[9] = "Voxel Y size";
    Parameters[10] = "Voxel Z size";
    Parameters[11] = "Objective";
    Parameters[12] = "X Zoom factor";
    Parameters[13] = "Y Zoom factor";
    Parameters[14] = "Z Zoom factor";
    Parameters[15] = "Plane width";
    Parameters[16] = "Plane height";
    Parameters[17] = "Volume depth";
    Parameters[18] = "Plane spacing";
    String[] infos = masterModel.getInfo();
    for (int i = 0; i < 19; i++)
      tw.append(Parameters[i] + "\t" + infos[i]);
  }
View Full Code Here

                for (int k = 1; i <= cz.DimensionZ; k++) {
                  String s = IJ.d2s(ps, 2) + " "+MasterModel.micrometer;
                  ps += planeSpacing; // moved from line -2
                  twstr = twstr + s + "\n";
                }
                new TextWindow("Z-stamps", "Z-stamps", twstr,
                    200, 400);

              } else {
                applyZSTAMP(imp, (LsmFileInfo) imp
                    .getOriginalFileInfo());
View Full Code Here

                  twstr = twstr
                      + Double
                          .toString(masterModel
                              .getCz().timeStamps.TimeStamps[k])
                      + "\n";
                new TextWindow("Timestamps", "Timestamps",
                    twstr, 200, 400);
              } else {
                applyTSTAMP(imp, (LsmFileInfo) imp
                    .getOriginalFileInfo());
              }
View Full Code Here

                  twstr = twstr
                      + Double
                          .toString(cz.channelWavelength.LambdaStamps[k])
                      + "\n";

                new TextWindow("Lambdastamps", "Lambdastamps",
                    twstr, 200, 400);

              } else {
                applyLSTAMP(imp, (LsmFileInfo) imp
                    .getOriginalFileInfo(),
View Full Code Here

      updateFilteredTree(false);
  }

  public void dumpData() {
    String header = new String("Data dump");
    new TextWindow("SCANINFO DUMP", header,getTreeAsStringBuffer().toString(), 250, 400);
  }
View Full Code Here

TOP

Related Classes of ij.text.TextWindow

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.