Module ij
Package ij.plugin

Class 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

    Modifier and Type Field Description
    static int IN_PLACE  
    static int SCALE_T  
  • Constructor Summary

    Constructor Description
  • Method Summary

    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)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • 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
    • setAverageWhenDownsizing

      public void setAverageWhenDownsizing​(boolean averageWhenDownsizing)