ij.plugin
Class Resizer

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

public class Resizer
extends java.lang.Object
implements PlugIn, java.awt.event.TextListener, 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 itemStateChanged(java.awt.event.ItemEvent e)
           
 void run(java.lang.String arg)
          This method is called when the plugin is loaded.
 void textValueChanged(java.awt.event.TextEvent 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(java.awt.event.TextEvent e)
Specified by:
textValueChanged in interface java.awt.event.TextListener

itemStateChanged

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