Package org.esa.snap.core.image
Class TiledFileMultiLevelSource
- java.lang.Object
-
- com.bc.ceres.glevel.support.AbstractMultiLevelSource
-
- org.esa.snap.core.image.TiledFileMultiLevelSource
-
- All Implemented Interfaces:
MultiLevelSource
public class TiledFileMultiLevelSource extends AbstractMultiLevelSource
-
-
Field Summary
-
Fields inherited from interface com.bc.ceres.glevel.MultiLevelSource
NULL
-
-
Constructor Summary
Constructors Constructor Description TiledFileMultiLevelSource(MultiLevelModel model, Path imageDir, Properties imageProperties)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TiledFileMultiLevelSource
create(File imageDir)
static TiledFileMultiLevelSource
create(Path imageDir)
RenderedImage
createImage(int level)
Called byAbstractMultiLevelSource.getImage(int)
if a level image is requested for the first time.-
Methods inherited from class com.bc.ceres.glevel.support.AbstractMultiLevelSource
checkLevel, getImage, getImageShape, getModel, reset
-
-
-
-
Constructor Detail
-
TiledFileMultiLevelSource
public TiledFileMultiLevelSource(MultiLevelModel model, Path imageDir, Properties imageProperties)
-
-
Method Detail
-
create
public static TiledFileMultiLevelSource create(File imageDir) throws IOException
- Throws:
IOException
-
create
public static TiledFileMultiLevelSource create(Path imageDir) throws IOException
- Throws:
IOException
-
createImage
public 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.
-
-