Package ij.io

Examples of ij.io.OpenDialog


    /***************************************************************
     * method : run(), opens a dialog box for the batch conversion *
     **************************************************************/
   
    public void run(String arg) {
        OpenDialog od = new OpenDialog("Select a file in source folder...", "");
        if (od.getFileName()==null) return;
        String dir1 = od.getDirectory();
        GenericDialog gd = new GenericDialog("LSM Batch Converter", IJ.getInstance());
        gd.addChoice("Convert to: ", choices, format);
        gd.showDialog();
        if (gd.wasCanceled())
            return;
View Full Code Here


  }

  public ImagePlus[] open(String arg, boolean verbose) {
    File file = null;
    ImagePlus[] imp = null;
    OpenDialog od = new OpenDialog("Open LSM image... ", arg);
    String name = od.getFileName();
    if (name==null)
      return null;
    file = new File(od.getDirectory(), name);
    if (file != null)
      imp = open(file.getParent(), file.getName(), true, false);
    if (imp != null) {
      for (int i = 0; i < imp.length; i++) {
        imp[i].show();
View Full Code Here

TOP

Related Classes of ij.io.OpenDialog

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.