Package ij.plugin.frame

Examples of ij.plugin.frame.Editor.create()


                path = "/macros/"+label;
        if (IJ.shiftKeyDown()) {
          String macros = mi.openFromIJJar(path);
                    Editor ed = new Editor();
                    ed.setSize(350, 300);
                    ed.create(label, macros);
                  IJ.setKeyUp(KeyEvent.VK_SHIFT);
        } else
          mi.installFromIJJar(path);
            } else {
                // load from ImageJ/macros/toolsets
View Full Code Here


        new ImagePlus("Clipboard", bi).show();
      } else if (textSupported) {
        String text = (String)transferable.getTransferData(DataFlavor.stringFlavor);
        Editor ed = new Editor();
        ed.setSize(600, 300);
        ed.create("Clipboard", text);
        IJ.showStatus("");
      } else
        IJ.error("Unable to find an image on the system clipboard");
    } catch (Throwable t) {
      IJ.showStatus(""+t);
View Full Code Here

        String text = (String)transferable.getTransferData(DataFlavor.stringFlavor);
        if (IJ.isMacintosh())
          text = Tools.fixNewLines(text);
        Editor ed = new Editor();
        ed.setSize(600, 300);
        ed.create("Clipboard", text);
        IJ.showStatus("");
      } else
        IJ.error("Unable to find an image on the system clipboard");
    } catch (Throwable e) {
      IJ.handleException(e);
View Full Code Here

                path = "/macros/"+label;
        if (IJ.shiftKeyDown()) {
          String macros = mi.openFromIJJar(path);
                    Editor ed = new Editor();
                    ed.setSize(350, 300);
                    ed.create(label, macros);
                  IJ.setKeyUp(KeyEvent.VK_SHIFT);
        } else
          mi.installFromIJJar(path);
            } else {
                // load from ImageJ/macros/toolsets
View Full Code Here

        new ImagePlus("Clipboard", bi).show();
      } else if (textSupported) {
        String text = (String)transferable.getTransferData(DataFlavor.stringFlavor);
        Editor ed = new Editor();
        ed.setSize(600, 300);
        ed.create("Clipboard", text);
        IJ.showStatus("");
      } else
        IJ.error("Unable to find an image on the system clipboard");
    } catch (Throwable e) {
      CharArrayWriter caw = new CharArrayWriter();
View Full Code Here

                path = "/macros/"+label;
        if (IJ.shiftKeyDown()) {
          String macros = mi.openFromIJJar(path);
                    Editor ed = new Editor();
                    ed.setSize(350, 300);
                    ed.create(label, macros);
                  IJ.setKeyUp(KeyEvent.VK_SHIFT);
        } else
          mi.installFromIJJar(path);
            } else {
                // load from ImageJ/macros/toolsets
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.