Package com.bc.ceres.glevel.support
Class GenericMultiLevelSource
- java.lang.Object
-
- com.bc.ceres.glevel.support.AbstractMultiLevelSource
-
- com.bc.ceres.glevel.support.GenericMultiLevelSource
-
- All Implemented Interfaces:
MultiLevelSource
public abstract class GenericMultiLevelSource extends AbstractMultiLevelSource
AGenericMultiLevelSource
is aMultiLevelSource
computing its images at a given resolution level from a number of source images of the same level.Subclasses will have to to implement
createImage(java.awt.image.RenderedImage[], int)
.- Version:
- $revision$ $date$
-
-
Field Summary
-
Fields inherited from interface com.bc.ceres.glevel.MultiLevelSource
NULL
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GenericMultiLevelSource(MultiLevelSource multiLevelSource)
protected
GenericMultiLevelSource(MultiLevelSource[] multiLevelSources)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected RenderedImage
createImage(int level)
Called byAbstractMultiLevelSource.getImage(int)
if a level image is requested for the first time.protected abstract RenderedImage
createImage(RenderedImage[] sourceImages, int level)
MultiLevelSource[]
getMultiLevelSources()
-
Methods inherited from class com.bc.ceres.glevel.support.AbstractMultiLevelSource
checkLevel, getImage, getImageShape, getModel, reset
-
-
-
-
Constructor Detail
-
GenericMultiLevelSource
protected GenericMultiLevelSource(MultiLevelSource multiLevelSource)
-
GenericMultiLevelSource
protected GenericMultiLevelSource(MultiLevelSource[] multiLevelSources)
-
-
Method Detail
-
getMultiLevelSources
public MultiLevelSource[] getMultiLevelSources()
-
createImage
protected RenderedImage createImage(int level)
Description copied from class:AbstractMultiLevelSource
Called byAbstractMultiLevelSource.getImage(int)
if a level image is requested for the first time. Note that images created via this method will bedisposed
whenAbstractMultiLevelSource.reset()
is called on this multi-level image source. SeeAbstractMultiLevelSource.getImage(int)
.The dimension of the level image created must be the same as that obtained from {DefaultMultiLevelSource.getLevelImageBounds(Rectangle sourceBounds, double scale)} for the scale associated with the given resolution level.
- Specified by:
createImage
in classAbstractMultiLevelSource
- Parameters:
level
- The resolution level.- Returns:
- An instance of a
RenderedImage
for the given resolution level.
-
createImage
protected abstract RenderedImage createImage(RenderedImage[] sourceImages, int level)
-
-