Package com.bc.ceres.glevel.support
Class DefaultMultiLevelSource
java.lang.Object
com.bc.ceres.glevel.support.AbstractMultiLevelSource
com.bc.ceres.glevel.support.DefaultMultiLevelSource
- All Implemented Interfaces:
MultiLevelSource
Deprecated.
A default implementation for the
MultiLevelSource interface.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final javax.media.jai.InterpolationDeprecated.Default interpolation is "Nearest Neighbour".static final MultiLevelSourceDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionDefaultMultiLevelSource(RenderedImage sourceImage, int levelCount) Deprecated.Constructs a new instance withDEFAULT_INTERPOLATION.DefaultMultiLevelSource(RenderedImage sourceImage, int levelCount, javax.media.jai.Interpolation interpolation) Deprecated.Constructs a new instance.DefaultMultiLevelSource(RenderedImage sourceImage, MultiLevelModel multiLevelModel) Deprecated.Constructs a new instance withDEFAULT_INTERPOLATION.DefaultMultiLevelSource(RenderedImage sourceImage, MultiLevelModel multiLevelModel, javax.media.jai.Interpolation interpolation) Deprecated.Constructs a new instance withDEFAULT_INTERPOLATION. -
Method Summary
Modifier and TypeMethodDescriptionstatic MultiLevelModelcreateDefaultMultiLevelModel(RenderedImage sourceImage, int levelCount) Deprecated.protected RenderedImagecreateImage(int level) Deprecated.Creates a scaled version of the level-0 image for the given level.getImage(int level) Deprecated.Returns the level-0 image iflevelequals zero, otherwise callssuper.getLevelImage(level).javax.media.jai.InterpolationDeprecated.static RectanglegetLevelImageBounds(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).Deprecated.voidreset()Deprecated.Removes all cached level images and also disposes anyPlanarImages among them.Methods inherited from class com.bc.ceres.glevel.support.AbstractMultiLevelSource
checkLevel, getImageShape, getModel
-
Field Details
-
DEFAULT_INTERPOLATION
public static final javax.media.jai.Interpolation DEFAULT_INTERPOLATIONDeprecated.Default interpolation is "Nearest Neighbour". -
NULL
Deprecated.
-
-
Constructor Details
-
DefaultMultiLevelSource
Deprecated.Constructs a new instance withDEFAULT_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
Deprecated.Constructs a new instance withDEFAULT_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 withDEFAULT_INTERPOLATION.- Parameters:
sourceImage- The source image.multiLevelModel- The multi level model.interpolation- The interpolation.
-
-
Method Details
-
getSourceImage
Deprecated. -
getInterpolation
public javax.media.jai.Interpolation getInterpolation()Deprecated. -
getImage
Deprecated.Returns the level-0 image iflevelequals zero, otherwise callssuper.getLevelImage(level). This override prevents the base class from storing a reference to the source image (the level-0 image). SeeAbstractMultiLevelSource.createImage(int).- Specified by:
getImagein interfaceMultiLevelSource- Overrides:
getImagein classAbstractMultiLevelSource- Parameters:
level- The level.- Returns:
- The image.
-
createImage
Deprecated.Creates a scaled version of the level-0 image for the given level. SeegetImage(int)andsuper.createImage(int).- Specified by:
createImagein classAbstractMultiLevelSource- Parameters:
level- The level.- Returns:
- The image.
-
reset
public void reset()Deprecated.Description copied from class:AbstractMultiLevelSourceRemoves all cached level images and also disposes anyPlanarImages among them.Overrides should always call
super.reset().- Specified by:
resetin interfaceMultiLevelSource- Overrides:
resetin classAbstractMultiLevelSource
-
createDefaultMultiLevelModel
public static MultiLevelModel createDefaultMultiLevelModel(RenderedImage sourceImage, int levelCount) Deprecated. -
getLevelImageBounds
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 byMultiLevelModel.getScale(int).- Returns:
- The level image boundaries in pixel coordinates.
- Since:
- BEAM 5
-