public class FileMultiLevelSource extends AbstractMultiLevelSource
<basename>.<level>.<extension>
is ecpected to exist in
the directory given by location
.NULL
Constructor and Description |
---|
FileMultiLevelSource(File location,
String basename,
String extension,
MultiLevelModel multiLevelModel) |
Modifier and Type | Method and Description |
---|---|
static FileMultiLevelSource |
create(File location,
String extension,
AffineTransform imageToModelTransform,
int levelCount) |
RenderedImage |
createImage(int level)
Called by
AbstractMultiLevelSource.getImage(int) if a level image is requested for the first time. |
String |
getBasename() |
String |
getExtension() |
File |
getLocation() |
checkLevel, getImage, getImageDimension, getImageRectangle, getImageShape, getModel, reset
public FileMultiLevelSource(File location, String basename, String extension, MultiLevelModel multiLevelModel)
public File getLocation()
public String getBasename()
public String getExtension()
public 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.public static FileMultiLevelSource create(File location, String extension, AffineTransform imageToModelTransform, int levelCount)
Copyright © 2014–2016 European Space Agency (ESA). All rights reserved.