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 SummaryFieldsModifier and TypeFieldDescriptionstatic final javax.media.jai.InterpolationDeprecated.Default interpolation is "Nearest Neighbour".static final MultiLevelSourceDeprecated.
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultMultiLevelSource(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 SummaryModifier 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.AbstractMultiLevelSourcecheckLevel, getImageShape, getModel
- 
Field Details- 
DEFAULT_INTERPOLATIONpublic static final javax.media.jai.Interpolation DEFAULT_INTERPOLATIONDeprecated.Default interpolation is "Nearest Neighbour".
- 
NULLDeprecated.
 
- 
- 
Constructor Details- 
DefaultMultiLevelSourceDeprecated.Constructs a new instance withDEFAULT_INTERPOLATION.- Parameters:
- sourceImage- The source image.
- levelCount- The level count.
 
- 
DefaultMultiLevelSourcepublic 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.
 
- 
DefaultMultiLevelSourceDeprecated.Constructs a new instance withDEFAULT_INTERPOLATION.- Parameters:
- sourceImage- The source image.
- multiLevelModel- The multi level model.
 
- 
DefaultMultiLevelSourcepublic 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- 
getSourceImageDeprecated.
- 
getInterpolationpublic javax.media.jai.Interpolation getInterpolation()Deprecated.
- 
getImageDeprecated.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 interface- MultiLevelSource
- Overrides:
- getImagein class- AbstractMultiLevelSource
- Parameters:
- level- The level.
- Returns:
- The image.
 
- 
createImageDeprecated.Creates a scaled version of the level-0 image for the given level. SeegetImage(int)andsuper.createImage(int).- Specified by:
- createImagein class- AbstractMultiLevelSource
- Parameters:
- level- The level.
- Returns:
- The image.
 
- 
resetpublic 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 interface- MultiLevelSource
- Overrides:
- resetin class- AbstractMultiLevelSource
 
- 
createDefaultMultiLevelModelpublic static MultiLevelModel createDefaultMultiLevelModel(RenderedImage sourceImage, int levelCount) Deprecated.
- 
getLevelImageBoundsDeprecated.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
 
 
-