Package ij.text

Examples of ij.text.TextWindow


        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 a supported format, a reader\n"+
            "plugin is not available, or it was not found.";
View Full Code Here


          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

          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

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.