- java.lang.Object
-
- 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.
-
-
Constructor Summary
Constructors Constructor Description Resizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
itemStateChanged(java.awt.event.ItemEvent e)
void
run(java.lang.String arg)
This method is called when the plugin is loaded.void
setAverageWhenDownsizing(boolean averageWhenDownsizing)
void
textValueChanged(java.awt.event.TextEvent e)
ImagePlus
zScale(ImagePlus imp, int newDepth, int interpolationMethod)
-
-
-
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
-
-
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.
-
textValueChanged
public void textValueChanged(java.awt.event.TextEvent e)
- Specified by:
textValueChanged
in interfacejava.awt.event.TextListener
-
itemStateChanged
public void itemStateChanged(java.awt.event.ItemEvent e)
- Specified by:
itemStateChanged
in interfacejava.awt.event.ItemListener
-
setAverageWhenDownsizing
public void setAverageWhenDownsizing(boolean averageWhenDownsizing)
-
-