ij.plugin
Class ListVirtualStack

java.lang.Object
  extended by ij.ImageStack
      extended by ij.VirtualStack
          extended by ij.plugin.ListVirtualStack
All Implemented Interfaces:
PlugIn

public class ListVirtualStack
extends VirtualStack
implements PlugIn

This plugin opens images specified by list of file paths as a virtual stack. It implements the File/Import/Stack From List command.


Constructor Summary
ListVirtualStack()
           
 
Method Summary
 void deleteSlice(int n)
          Deletes the specified image, were 1<=n<=nslices.
 int getHeight()
           
 ImageProcessor getProcessor(int n)
          Returns an ImageProcessor for the specified slice, were 1<=n<=nslices.
 int getSize()
          Returns the number of images in this stack.
 java.lang.String getSliceLabel(int n)
          Returns the name of the specified image.
 int getWidth()
           
 void run(java.lang.String arg)
          This method is called when the plugin is loaded.
 
Methods inherited from class ij.VirtualStack
addSlice, addSlice, addSlice, addSlice, deleteLastSlice, getBitDepth, getDirectory, getFileName, getImageArray, getPixels, isVirtual, saveChanges, setBitDepth, setPixels, setSliceLabel, trim
 
Methods inherited from class ij.ImageStack
addUnsignedShortSlice, getColorModel, getRoi, getShortSliceLabel, getSliceLabels, isHSB, isRGB, setColorModel, setRoi, toString, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ListVirtualStack

public ListVirtualStack()
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

deleteSlice

public void deleteSlice(int n)
Deletes the specified image, were 1<=n<=nslices.

Overrides:
deleteSlice in class VirtualStack

getProcessor

public ImageProcessor getProcessor(int n)
Returns an ImageProcessor for the specified slice, were 1<=n<=nslices. Returns null if the stack is empty.

Overrides:
getProcessor in class VirtualStack

getSize

public int getSize()
Returns the number of images in this stack.

Overrides:
getSize in class VirtualStack

getSliceLabel

public java.lang.String getSliceLabel(int n)
Returns the name of the specified image.

Overrides:
getSliceLabel in class VirtualStack

getWidth

public int getWidth()
Overrides:
getWidth in class ImageStack

getHeight

public int getHeight()
Overrides:
getHeight in class ImageStack