vnt

Class Create_Settings

Implemented Interfaces:
PlugInFilter

public class Create_Settings
extends VascularNetworkToolkit
implements PlugInFilter

This plugin presents a dialog which creates/edits a settings.txt file. The settings file will be used by the other VNT plugins. The basis for this code was taken directly from ImageJ's ScaleDialog.java.
Version:
1.0
Author:
Michael Miller - Truman State University
Since:
1.0

Field Summary

private int
versionMain
The Primary version number for this plugin.
private int
versionSub
The Sub version number for this plugin.

Method Summary

void
run(ImageProcessor bp)
This is called if the setup() was successful.
int
setup(String arg, ImagePlus ip)
Specifies the preconditions for the plug-in.

Field Details

versionMain

private int versionMain
The Primary version number for this plugin. Used in the settings.txt generation.

versionSub

private int versionSub
The Sub version number for this plugin. Used in the settings.txt generation.

Method Details

run

public void run(ImageProcessor bp)
This is called if the setup() was successful.

Pre: The image was cleared to run by the setup() method.
Post: Something operation is performed.

Parameters:
bp - Required by the interface. The access information to the original image.

setup

public int setup(String arg,
                 ImagePlus ip)
Specifies the preconditions for the plug-in. If this method succeeds then run() is called.

Pre: ImageJ is running and an 8-bit grayscale image is open. The plug-in was just activated.
Post: Either an argument was processed, the image was not saved to a local folder, or the plug-in is cleared to run on the image.

Parameters:
arg - Required by the interface. The argument list passed to the plug-in.
Returns:
If DONE is returned, ImageJ quits without run()'ing the plug-in. Otherwise, the plug-in signals to ImageJ that this plugin only handles 8-bit (256 grayscale) and will not change the original image.