Package com.bc.ceres.glevel
Interface MultiLevelSource
- All Known Implementing Classes:
AbstractMultiLevelSource
,DefaultMultiLevelImage
,DefaultMultiLevelSource
,FileMultiLevelSource
,GenericMultiLevelSource
,MultiLevelImage
Deprecated.
A source for images at a given resolution level. The layout of the
MultiLevelSource
is given by a MultiLevelModel
which also provides the number of available resolution
levels.- Version:
- $revision$ $date$
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetImage
(int level) Deprecated.Gets the scaled image for the given resolution level.getImageShape
(int level) Deprecated.Gets the shape of the area where this image's raster data contains valid pixels at the given resolution level.getModel()
Deprecated.Gets the layout model for the multi-resolution image supported by thisLevelImageSource
.void
reset()
Deprecated.Provides a hint that the level images provided so far will no longer be accessed from a reference in user space.
-
Field Details
-
NULL
Deprecated.
-
-
Method Details
-
getModel
MultiLevelModel getModel()Deprecated.Gets the layout model for the multi-resolution image supported by thisLevelImageSource
.- Returns:
- the multi-resolution image model.
-
getImage
Deprecated.Gets the scaled image for the given resolution level. The width and height of an image returned for a givenlevel
isscale
times smaller than the dimensions of the image atlevel=0
.- Parameters:
level
- The resolution level.- Returns:
- The scaled image, must be in the range 0 to
MultiLevelModel.getLevelCount()
-1.
-
getImageShape
Deprecated.Gets the shape of the area where this image's raster data contains valid pixels at the given resolution level. The method returnsnull
, if the entire image raster contains valid pixels.- Parameters:
level
- The resolution level.- Returns:
- The shape of the area where the image has data, can be
null
.
-
reset
void reset()Deprecated.Provides a hint that the level images provided so far will no longer be accessed from a reference in user space.
Therefore implementations of this method might also dispose any cached level images that have been provided so far.
After calling this method, a call to
getImage(int)
} for the same level may return a new level image instance.This method is particularly useful if properties have changed that affect the appearance of the returned images at all levels, e.g. after a new color palette has been assigned or the contrast range has changed.
-