ThreeB 1.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Hierarchy
- Class Members

Public Member Functions
LoadTestData Class Reference
Classes related to the ImageJ Plugin

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:

- LoadTestData.java