Module ij
Package ij.gui

Class PlotVirtualStack


  • public class PlotVirtualStack
    extends VirtualStack
    This is a virtual stack of frozen plots.
    • Constructor Detail

      • PlotVirtualStack

        public PlotVirtualStack​(int width,
                                int height)
    • Method Detail

      • addPlot

        public void addPlot​(Plot plot)
        Adds a plot to the end of the stack.
      • getPixels

        public java.lang.Object getPixels​(int n)
        Returns the pixel array for the specified slice, where 1<=n<=nslices.
        Overrides:
        getPixels in class VirtualStack
      • getProcessor

        public ImageProcessor getProcessor​(int n)
        Returns an ImageProcessor for the specified slice, where 1<=n<=nslices. Returns null if the stack is empty.
        Overrides:
        getProcessor in class VirtualStack
      • getSize

        public int getSize()
        Returns the number of slices in this stack.
        Overrides:
        getSize in class VirtualStack
      • getBitDepth

        public int getBitDepth()
        Returns either 24 (RGB) or 8 (grayscale).
        Overrides:
        getBitDepth in class VirtualStack
      • setBitDepth

        public void setBitDepth​(int bitDepth)
        Description copied from class: VirtualStack
        Sets the bit depth (8, 16, 24 or 32).
        Overrides:
        setBitDepth in class VirtualStack
      • getSliceLabel

        public java.lang.String getSliceLabel​(int n)
        Description copied from class: VirtualStack
        Returns the label of the Nth image.
        Overrides:
        getSliceLabel in class VirtualStack
      • setPixels

        public void setPixels​(java.lang.Object pixels,
                              int n)
        Description copied from class: VirtualStack
        Assigns a pixel array to the specified slice, where 1<=n<=nslices.
        Overrides:
        setPixels in class VirtualStack
      • deleteSlice

        public void deleteSlice​(int n)
        Deletes the specified slice, where 1<=n<=nslices.
        Overrides:
        deleteSlice in class VirtualStack