Class DefaultMultiLevelSource

java.lang.Object
com.bc.ceres.glevel.support.AbstractMultiLevelSource
com.bc.ceres.glevel.support.DefaultMultiLevelSource
All Implemented Interfaces:
MultiLevelSource

@Deprecated public class DefaultMultiLevelSource extends AbstractMultiLevelSource
Deprecated.
A default implementation for the MultiLevelSource interface.
  • Field Details

    • DEFAULT_INTERPOLATION

      public static final javax.media.jai.Interpolation DEFAULT_INTERPOLATION
      Deprecated.
      Default interpolation is "Nearest Neighbour".
    • NULL

      public static final MultiLevelSource NULL
      Deprecated.
  • Constructor Details

    • DefaultMultiLevelSource

      public DefaultMultiLevelSource(RenderedImage sourceImage, int levelCount)
      Deprecated.
      Constructs a new instance with DEFAULT_INTERPOLATION.
      Parameters:
      sourceImage - The source image.
      levelCount - The level count.
    • DefaultMultiLevelSource

      public DefaultMultiLevelSource(RenderedImage sourceImage, int levelCount, javax.media.jai.Interpolation interpolation)
      Deprecated.
      Constructs a new instance.
      Parameters:
      sourceImage - The source image.
      levelCount - The level count.
      interpolation - The interpolation.
    • DefaultMultiLevelSource

      public DefaultMultiLevelSource(RenderedImage sourceImage, MultiLevelModel multiLevelModel)
      Deprecated.
      Constructs a new instance with DEFAULT_INTERPOLATION.
      Parameters:
      sourceImage - The source image.
      multiLevelModel - The multi level model.
    • DefaultMultiLevelSource

      public DefaultMultiLevelSource(RenderedImage sourceImage, MultiLevelModel multiLevelModel, javax.media.jai.Interpolation interpolation)
      Deprecated.
      Constructs a new instance with DEFAULT_INTERPOLATION.
      Parameters:
      sourceImage - The source image.
      multiLevelModel - The multi level model.
      interpolation - The interpolation.
  • Method Details

    • getSourceImage

      public RenderedImage getSourceImage()
      Deprecated.
    • getInterpolation

      public javax.media.jai.Interpolation getInterpolation()
      Deprecated.
    • getImage

      public RenderedImage getImage(int level)
      Deprecated.
      Returns the level-0 image if level equals zero, otherwise calls super.getLevelImage(level). This override prevents the base class from storing a reference to the source image (the level-0 image). See AbstractMultiLevelSource.createImage(int).
      Specified by:
      getImage in interface MultiLevelSource
      Overrides:
      getImage in class AbstractMultiLevelSource
      Parameters:
      level - The level.
      Returns:
      The image.
    • createImage

      protected RenderedImage createImage(int level)
      Deprecated.
      Creates a scaled version of the level-0 image for the given level. See getImage(int) and super.createImage(int).
      Specified by:
      createImage in class AbstractMultiLevelSource
      Parameters:
      level - The level.
      Returns:
      The image.
    • reset

      public void reset()
      Deprecated.
      Description copied from class: AbstractMultiLevelSource
      Removes all cached level images and also disposes any PlanarImages among them.

      Overrides should always call super.reset().

      Specified by:
      reset in interface MultiLevelSource
      Overrides:
      reset in class AbstractMultiLevelSource
    • createDefaultMultiLevelModel

      public static MultiLevelModel createDefaultMultiLevelModel(RenderedImage sourceImage, int levelCount)
      Deprecated.
    • getLevelImageBounds

      public static Rectangle getLevelImageBounds(Rectangle sourceBounds, double scale)
      Deprecated.
      Computes the boundaries of an image at a given resolution scaling from the given source image boundaries (at level zero).
      Parameters:
      sourceBounds - The image boundaries of the level zero image.
      scale - The scale at a given level as returned by MultiLevelModel.getScale(int).
      Returns:
      The level image boundaries in pixel coordinates.
      Since:
      BEAM 5