public abstract class GenericMultiLevelSource extends AbstractMultiLevelSource
GenericMultiLevelSource
is a MultiLevelSource
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)
.
NULL
Modifier | Constructor and Description |
---|---|
protected |
GenericMultiLevelSource(MultiLevelSource multiLevelSource) |
protected |
GenericMultiLevelSource(MultiLevelSource[] multiLevelSources) |
Modifier and Type | Method and Description |
---|---|
protected RenderedImage |
createImage(int level)
Called by
AbstractMultiLevelSource.getImage(int) if a level image is requested for the first time. |
protected abstract RenderedImage |
createImage(RenderedImage[] sourceImages,
int level) |
MultiLevelSource[] |
getMultiLevelSources() |
checkLevel, getImage, getImageDimension, getImageRectangle, getImageShape, getModel, reset
protected GenericMultiLevelSource(MultiLevelSource multiLevelSource)
protected GenericMultiLevelSource(MultiLevelSource[] multiLevelSources)
public MultiLevelSource[] getMultiLevelSources()
protected RenderedImage createImage(int level)
AbstractMultiLevelSource
AbstractMultiLevelSource.getImage(int)
if a level image is requested for the first time.
Note that images created via this method will be disposed
when AbstractMultiLevelSource.reset()
is called on this multi-level image source. See AbstractMultiLevelSource.getImage(int)
.
The dimension of the level image created must be the same as that obtained from
AbstractMultiLevelSource.getImageDimension(int, int, double)
for the scale associated with the
given resolution level.
createImage
in class AbstractMultiLevelSource
level
- The resolution level.RenderedImage
for the given resolution level.protected abstract RenderedImage createImage(RenderedImage[] sourceImages, int level)
Copyright © 2014–2015 European Space Agency (ESA). All rights reserved.