public class Save_Image_MTB extends Object implements ij.plugin.filter.PlugInFilter, PropertyChangeListener, loci.common.StatusListener, FocusListener
| Modifier and Type | Field and Description |
|---|---|
protected int |
codec
codec option if available
|
protected String |
compression
compression option if available
|
protected JFileChooser |
fc |
protected JTextField |
fctf |
protected int |
fps
frames per second option if available
|
protected MTBImage |
img |
protected ij.ImagePlus |
imp |
protected ImageWriterOptionsPane |
iwop
a panel for image writer options (set as accessory of a JFileChooser)
|
protected int |
quality
quality option if available
|
private static long |
serialVersionUID |
CONVERT_TO_FLOAT, DOES_16, DOES_32, DOES_8C, DOES_8G, DOES_ALL, DOES_RGB, DOES_STACKS, DONE, FINAL_PROCESSING, KEEP_THRESHOLD, NO_CHANGES, NO_IMAGE_REQUIRED, NO_UNDO, NO_UNDO_RESET, PARALLELIZE_IMAGES, PARALLELIZE_STACKS, ROI_REQUIRED, SNAPSHOT, STACK_REQUIRED, SUPPORTS_MASKING| Constructor and Description |
|---|
Save_Image_MTB() |
| Modifier and Type | Method and Description |
|---|---|
JFileChooser |
createFileChooser()
Create a file chooser configured for image writing, adding a panel for
image writer options
|
void |
focusGained(FocusEvent evt) |
void |
focusLost(FocusEvent evt) |
private void |
getChooserTextField(Component[] comp)
Finds the text field component in the JFileChooser's component hierarchy.
|
void |
propertyChange(PropertyChangeEvent evt)
Process the
WRITER_OPTIONS_APPROVED_PROPERTY event of the ImageWriterOptionsPane
to assign the writer options when the file chooser closed by approving the file selection (and thereby writer options). |
void |
run(ij.process.ImageProcessor arg0) |
int |
setup(String arg,
ij.ImagePlus imP) |
void |
statusUpdated(loci.common.StatusEvent evt) |
protected MTBImage img
protected ij.ImagePlus imp
protected JFileChooser fc
protected JTextField fctf
protected ImageWriterOptionsPane iwop
protected String compression
protected int fps
protected int quality
protected int codec
private static final long serialVersionUID
public void run(ij.process.ImageProcessor arg0)
run in interface ij.plugin.filter.PlugInFilterpublic int setup(String arg, ij.ImagePlus imP)
setup in interface ij.plugin.filter.PlugInFilterpublic JFileChooser createFileChooser()
private void getChooserTextField(Component[] comp)
comp - List of components to search in a recursive fashion.public void propertyChange(PropertyChangeEvent evt)
WRITER_OPTIONS_APPROVED_PROPERTY event of the ImageWriterOptionsPane
to assign the writer options when the file chooser closed by approving the file selection (and thereby writer options).propertyChange in interface PropertyChangeListenerpublic void statusUpdated(loci.common.StatusEvent evt)
statusUpdated in interface loci.common.StatusListenerpublic void focusGained(FocusEvent evt)
focusGained in interface FocusListenerpublic void focusLost(FocusEvent evt)
focusLost in interface FocusListenerCopyright © 2010–2025 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.