ij.plugin
Class Resizer

java.lang.Object
  extended by ij.plugin.Resizer
All Implemented Interfaces:
PlugIn, java.awt.event.ItemListener, java.util.EventListener, javax.swing.event.DocumentListener

public class Resizer
extends java.lang.Object
implements PlugIn, javax.swing.event.DocumentListener, java.awt.event.ItemListener

This plugin implements the Edit/Crop and Image/Adjust/Size commands.


Field Summary
static int IN_PLACE
           
static int SCALE_T
           
 
Constructor Summary
Resizer()
           
 
Method Summary
 void changedUpdate(javax.swing.event.DocumentEvent e)
           
 void insertUpdate(javax.swing.event.DocumentEvent e)
           
 void itemStateChanged(java.awt.event.ItemEvent e)
           
 void removeUpdate(javax.swing.event.DocumentEvent e)
           
 void run(java.lang.String arg)
          This method is called when the plugin is loaded.
 void textValueChanged(javax.swing.event.DocumentEvent e)
           
 ImagePlus zScale(ImagePlus imp, int newDepth, int interpolationMethod)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IN_PLACE

public static final int IN_PLACE
See Also:
Constant Field Values

SCALE_T

public static final int SCALE_T
See Also:
Constant Field Values
Constructor Detail

Resizer

public Resizer()
Method Detail

run

public void run(java.lang.String arg)
Description copied from interface: PlugIn
This method is called when the plugin is loaded. 'arg', which may be blank, is the argument specified for this plugin in IJ_Props.txt.

Specified by:
run in interface PlugIn

zScale

public ImagePlus zScale(ImagePlus imp,
                        int newDepth,
                        int interpolationMethod)

textValueChanged

public void textValueChanged(javax.swing.event.DocumentEvent e)

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
Specified by:
itemStateChanged in interface java.awt.event.ItemListener

insertUpdate

public void insertUpdate(javax.swing.event.DocumentEvent e)
Specified by:
insertUpdate in interface javax.swing.event.DocumentListener

removeUpdate

public void removeUpdate(javax.swing.event.DocumentEvent e)
Specified by:
removeUpdate in interface javax.swing.event.DocumentListener

changedUpdate

public void changedUpdate(javax.swing.event.DocumentEvent e)
Specified by:
changedUpdate in interface javax.swing.event.DocumentListener