Package ij.text

Examples of ij.text.TextWindow


    CZ_LSMInfo cz = imDir.TIF_CZ_LSMINFO;
    EventList events = cz.eventList;
    if (events != null) {
      String header = new String(
          "Time (sec) \tEvent Type \tEvent Description");
      TextWindow tw = new TextWindow("Time Events for " + info.fileName,
          header, null, 400, 200);
      tw.append(events.Description);
    }
  }
View Full Code Here


    }
    ed.create(name, "");
  }
 
  void createTable() {
      new TextWindow(name, "", tableWidth, tableHeight);
  }
View Full Code Here

  /** shows the data of the backing plot in a Textwindow with columns */
  void showList(){
    initDigits();
    String headings = createHeading();
    String data = createData();
    TextWindow tw = new TextWindow("Plot Values", headings, data, 230, 400);
    if (autoClose)
      {imp.changes=false; close();}
  }
View Full Code Here

      if (IJ.isVista()) {
        msg += vistaHint;
        delay = 8000;
      }
      try {
        new TextWindow("Error Saving Preferences", msg, 500, 200);
        IJ.wait(delay);
      } catch (Throwable t2) {}
    }
  }
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 OJJ:  // ObjectJ project
          IJ.runPlugIn("ObjectJ_", path);
          break;
        case TABLE:  // ImageJ Results table
View Full Code Here

            s = e + "\n \nThis plugin requires Java 1.7 or later.";
            w=700; h=150;
          }
        }
        if (IJ.getInstance()!=null)
          new TextWindow("Exception", s, w, h);
        else
          IJ.log(s);
      }
    }
  }
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"+ResultsTable.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(ResultsTable.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

      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

        IJ.error("Unable to find an image on the system clipboard");
    } catch (Throwable e) {
      CharArrayWriter caw = new CharArrayWriter();
      PrintWriter pw = new PrintWriter(caw);
      e.printStackTrace(pw);
      new TextWindow("Exception", caw.toString(), 350, 250);
    }
  }
View Full Code Here

 
  void createTextWindow() {
    String tableName = name;
    if (tableName.equals("Macro")) tableName = "Table";
    if (columns<128 || rows<75 )
      new TextWindow(tableName, "", 350, 250);
    else
      new TextWindow(tableName, "", columns, rows);
  }
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.