Package ij.plugin.frame

Examples of ij.plugin.frame.Editor


    }
    if (sb!=null) {
      if (install)
        (new MacroInstaller()).install(new String(sb));
      else
        (new Editor()).create(urlString, new String(sb));
    }
  }
View Full Code Here


        g.dispose();
        WindowManager.checkForDuplicateName = true;
        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

      IJ.register(NewPlugin.class);
    }
   
  public void createMacro(String name) {
    int options = (monospaced?Editor.MONOSPACED:0)+(menuBar?Editor.MENU_BAR:0);
    ed = new Editor(rows, columns, 0, options);
    if (name.endsWith(".java"))
      name = name.substring(0, name.length()-5);
    //if (name.endsWith("_"))
    //  name = name.substring(0, name.length()-1);
    if (type==MACRO && !(name.endsWith(".txt")))
View Full Code Here

                MacroInstaller mi = new MacroInstaller();
                label = label.substring(0, label.length()-1) + ".txt";
                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

Related Classes of ij.plugin.frame.Editor

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.