public class PictureTilesImpl extends Object implements PictureTiles, Serializable
Modifier and Type | Field and Description |
---|---|
static String |
LAST_MODIFICATION_DATE_KEY |
static String |
MAX_TILES_KEY |
static String |
PROGRESSIVE_TILING_KEY |
static String |
TILE_INPUT_FILE_KEY |
static String |
TILE_OUTPUT_DIR_KEY |
static String |
TILES_HEIGHT_KEY |
static String |
TILES_PREFIX_KEY |
static String |
TILES_SUFFIX_KEY |
static String |
TILES_WIDTH_KEY |
static String |
X_TILES_KEY |
static String |
Y_TILES_KEY |
Constructor and Description |
---|
PictureTilesImpl(Map<String,String> info) |
PictureTilesImpl(String tilesDirPath) |
Modifier and Type | Method and Description |
---|---|
String |
getCacheKey() |
Map<String,String> |
getInfo() |
int |
getMaxTiles() |
ImageInfo |
getOriginalImageInfo() |
ImageInfo |
getSourceImageInfo() |
Blob |
getTile(int x,
int y) |
String |
getTileFilePath(int x,
int y) |
String |
getTileFormatCacheKey() |
int |
getTilesHeight() |
String |
getTilesPath() |
int |
getTilesWidth() |
int |
getXTiles() |
int |
getYTiles() |
float |
getZoomfactor() |
boolean |
isTileComputed(int x,
int y) |
void |
release() |
void |
setCacheKey(String cacheKey) |
void |
setOriginalImageInfo(ImageInfo imageInfo) |
void |
setSourceImageInfo(ImageInfo imageInfo) |
public static String TILE_OUTPUT_DIR_KEY
public static String TILE_INPUT_FILE_KEY
public static String X_TILES_KEY
public static String Y_TILES_KEY
public static String LAST_MODIFICATION_DATE_KEY
public static String TILES_PREFIX_KEY
public static String TILES_SUFFIX_KEY
public static String TILES_WIDTH_KEY
public static String TILES_HEIGHT_KEY
public static String MAX_TILES_KEY
public static String PROGRESSIVE_TILING_KEY
public PictureTilesImpl(String tilesDirPath)
public String getCacheKey()
getCacheKey
in interface PictureTiles
public void setCacheKey(String cacheKey)
setCacheKey
in interface PictureTiles
public Map<String,String> getInfo()
getInfo
in interface PictureTiles
public boolean isTileComputed(int x, int y)
isTileComputed
in interface PictureTiles
public Blob getTile(int x, int y) throws Exception
getTile
in interface PictureTiles
Exception
public String getTileFilePath(int x, int y)
public int getMaxTiles()
getMaxTiles
in interface PictureTiles
public int getTilesWidth()
getTilesWidth
in interface PictureTiles
public int getTilesHeight()
getTilesHeight
in interface PictureTiles
public String getTilesPath()
getTilesPath
in interface PictureTiles
public int getXTiles()
getXTiles
in interface PictureTiles
public int getYTiles()
getYTiles
in interface PictureTiles
public float getZoomfactor()
getZoomfactor
in interface PictureTiles
public void release()
release
in interface PictureTiles
public ImageInfo getSourceImageInfo()
getSourceImageInfo
in interface PictureTiles
public void setSourceImageInfo(ImageInfo imageInfo)
setSourceImageInfo
in interface PictureTiles
public String getTileFormatCacheKey()
getTileFormatCacheKey
in interface PictureTiles
public ImageInfo getOriginalImageInfo()
getOriginalImageInfo
in interface PictureTiles
public void setOriginalImageInfo(ImageInfo imageInfo)
setOriginalImageInfo
in interface PictureTiles
Copyright © 2013 Nuxeo SA. All Rights Reserved.