Interface ImageRegionRenderer

All Known Implementing Classes:
DefaultImageRegionStore

public interface ImageRegionRenderer
Interface for painting regions of an ImageServer onto a Graphics object.
Author:
Pete Bankhead
  • Method Details

    • paintRegionCompletely

      void paintRegionCompletely(ImageServer<BufferedImage> server, Graphics g, Shape clipShapeVisible, int zPosition, int tPosition, double downsampleFactor, ImageObserver observer, ImageRenderer renderer, long timeoutMilliseconds)
      Similar to paintRegion(ImageServer, Graphics, Shape, int, int, double, BufferedImage, ImageObserver, ImageRenderer), but wait until all the tiles have arrived (or abort if it is taking too long).
      Parameters:
      server - the server representing the image that shown be painted
      g - the graphics object upon which to paint
      clipShapeVisible - the visible shape representing the area of the graphics object that should be filled
      zPosition - the z-stack position
      tPosition - the timepoint position
      downsampleFactor - the downsample factor
      observer - an ImageObserver (often ignored)
      renderer - an ImageRenderer to convert images to RGB
      timeoutMilliseconds - Timeout after which a request is made from the PathImageServer directly, rather than waiting for tile requests.
    • paintRegion

      void paintRegion(ImageServer<BufferedImage> server, Graphics g, Shape clipShapeVisible, int zPosition, int tPosition, double downsampleFactor, BufferedImage imgThumbnail, ImageObserver observer, ImageRenderer renderer)
      Paint an image region.
      Parameters:
      server - the server representing the image that shown be painted
      g - the graphics object upon which to paint
      clipShapeVisible - the visible shape representing the area of the graphics object that should be filled
      zPosition - the z-stack position
      tPosition - the timepoint position
      downsampleFactor - the downsample factor
      imgThumbnail - a thumbnail image; if not null, this will be used to 'fill the gaps'
      observer - an ImageObserver (often ignored)
      renderer - an ImageRenderer to convert images to RGB