ThreeB 1.1
Public Member Functions
LoadTestData Class Reference

Plugin class to load the standard test data from the JAR file. More...

List of all members.

Public Member Functions

void run (String arg)

Detailed Description

Plugin class to load the standard test data from the JAR file.

Definition at line 27 of file LoadTestData.java.


Member Function Documentation

void LoadTestData::run ( String  arg) [inline]

Definition at line 29 of file LoadTestData.java.

    {
        Opener o = new Opener();
        InputStream s = getClass().getClassLoader().getResourceAsStream("test_data.tif");
        ImagePlus im = o.openTiff(s, "test_data.tiff");


        try{
                s.close();
        }
        catch(IOException close_err){
            Toolkit.getDefaultToolkit().beep();
            ij.IJ.showStatus("Error reading image.");
            return;
        }

        im.show();
        im.updateAndDraw();


        System.out.println(getClass().getResource("").toString() + "\n");
        System.out.println(getClass().getResource("").getPath().toString() + "\n");
        System.out.println(getClass().getResource("").getFile().toString() + "\n");

    }

The documentation for this class was generated from the following file: