Package org.imagearchive.lsm.toolbox

Examples of org.imagearchive.lsm.toolbox.Reader


    Reader reader;

    public ImagePreview(MasterModel masterModel, JFileChooser fc) {
        setPreferredSize(new Dimension(138, 50));
        fc.addPropertyChangeListener(this);
        reader = new Reader(masterModel);
    }
View Full Code Here


  }

  private void addOpenListener(final JButton button, final JFrame parent) {
    button.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        final Reader reader = new Reader(masterModel);
        SwingUtilities.invokeLater(new Runnable() {
          ImageWindow iwc = null;

          public void run() {
            try {
              IJ.showStatus("Loading image");
              ImagePlus[] imp = reader.open("", true);
              IJ.showStatus("Image loaded");
              if (imp == null)
                return;
              for (int i = 0; i < imp.length; i++) {
                imp[i].show();
View Full Code Here

                  LsmFileInfo openLSM = (LsmFileInfo) ((ImagePlus) WindowManager
                      .getImage(imageVals[i]))
                      .getOriginalFileInfo();
                  CZ_LSMInfo cz = (CZ_LSMInfo) ((ImageDirectory) openLSM.imageDirectories
                      .get(0)).TIF_CZ_LSMINFO;
                  Reader reader = new Reader(masterModel);
                  ImagePlus[] imp = reader
                      .open(openLSM.directory,
                          openLSM.fileName, true,
                          true, false);
                  Class i5Dc = null;
                  if (imp == null || imp.length == 0) {
View Full Code Here

        Iterator iterator = ((List)data).iterator();
        //IJ.log("drop");
        while(iterator.hasNext()) {
          final File file = (File)iterator.next();
          //IJ.log("dopen: "+file.getAbsolutePath());
          final Reader reader = new Reader(masterModel);
          SwingUtilities.invokeLater(new Runnable() {
            ImageWindow iwc = null;
            public void run() {
              try {
          IJ.showStatus("Loading image");
          ImagePlus[] imp = reader.open(file.getAbsolutePath(), true);
          IJ.showStatus("Image loaded");
          if (imp == null)
            return;
          for (int i = 0; i < imp.length; i++) {
            imp[i].show();
View Full Code Here

TOP

Related Classes of org.imagearchive.lsm.toolbox.Reader

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.