public class PictureTilingComponent extends DefaultComponent implements PictureTilingService
Modifier and Type | Field and Description |
---|---|
static String |
BLOB_PROPERTY_EP |
static String |
ENV_PARAMETERS_EP |
static String |
IMAGES_TO_CONVERT_EP |
Constructor and Description |
---|
PictureTilingComponent() |
Modifier and Type | Method and Description |
---|---|
void |
activate(ComponentContext context)
Activates the component.
|
PictureTiles |
completeTiles(PictureTiles existingTiles,
int xCenter,
int yCenter) |
void |
deactivate(ComponentContext context)
Deactivates the component.
|
static void |
endGC() |
Map<String,String> |
getBlobProperties() |
String |
getBlobProperty(String docType) |
String |
getBlobProperty(String docType,
String defaultValue) |
static Map<String,PictureTilingCacheInfo> |
getCache() |
static Map<String,String> |
getEnv() |
static String |
getEnvValue(String paramName) |
static String |
getEnvValue(String paramName,
String defaultValue) |
PictureTiles |
getTiles(ImageResource resource,
int tileWidth,
int tileHeight,
int maxTiles) |
PictureTiles |
getTiles(ImageResource resource,
int tileWidth,
int tileHeight,
int maxTiles,
int xCenter,
int yCenter,
boolean fullGeneration) |
PictureTiles |
getTilesFromBlob(Blob blob,
int tileWidth,
int tileHeight,
int maxTiles)
Deprecated.
|
PictureTiles |
getTilesFromBlob(Blob blob,
int tileWidth,
int tileHeight,
int maxTiles,
int xCenter,
int yCenter,
boolean fullGeneration)
Deprecated.
|
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
removeCacheEntry(ImageResource resource) |
static void |
setDefaultTiler(PictureTiler tiler) |
static void |
setEnvValue(String paramName,
String paramValue) |
void |
setWorkingDirPath(String path) |
static void |
startGC() |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
applicationStarted, getAdapter, registerExtension, unregisterExtension
public static final String ENV_PARAMETERS_EP
public static final String BLOB_PROPERTY_EP
public static final String IMAGES_TO_CONVERT_EP
public void activate(ComponentContext context) throws Exception
Component
This method is called by the runtime when a component is activated.
activate
in interface Component
activate
in class DefaultComponent
context
- the runtime contextException
- if an error occurs during activationpublic static void startGC()
public static void endGC()
public void deactivate(ComponentContext context) throws Exception
Component
This method is called by the runtime when a component is deactivated.
deactivate
in interface Component
deactivate
in class DefaultComponent
context
- the runtime contextException
- if an error occurs during activationpublic static Map<String,PictureTilingCacheInfo> getCache()
public void setWorkingDirPath(String path)
setWorkingDirPath
in interface PictureTilingService
@Deprecated public PictureTiles getTilesFromBlob(Blob blob, int tileWidth, int tileHeight, int maxTiles) throws ClientException
PictureTilingService
getTilesFromBlob
in interface PictureTilingService
ClientException
public PictureTiles getTiles(ImageResource resource, int tileWidth, int tileHeight, int maxTiles) throws ClientException
getTiles
in interface PictureTilingService
ClientException
public PictureTiles completeTiles(PictureTiles existingTiles, int xCenter, int yCenter) throws ClientException
completeTiles
in interface PictureTilingService
ClientException
@Deprecated public PictureTiles getTilesFromBlob(Blob blob, int tileWidth, int tileHeight, int maxTiles, int xCenter, int yCenter, boolean fullGeneration) throws ClientException
PictureTilingService
getTilesFromBlob
in interface PictureTilingService
ClientException
public PictureTiles getTiles(ImageResource resource, int tileWidth, int tileHeight, int maxTiles, int xCenter, int yCenter, boolean fullGeneration) throws ClientException
getTiles
in interface PictureTilingService
ClientException
public static void setDefaultTiler(PictureTiler tiler)
public Map<String,String> getBlobProperties()
getBlobProperties
in interface PictureTilingService
public String getBlobProperty(String docType)
getBlobProperty
in interface PictureTilingService
public String getBlobProperty(String docType, String defaultValue)
getBlobProperty
in interface PictureTilingService
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
registerContribution
in class DefaultComponent
Exception
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
unregisterContribution
in class DefaultComponent
Exception
public void removeCacheEntry(ImageResource resource) throws ClientException
removeCacheEntry
in interface PictureTilingService
ClientException
Copyright © 2011 Nuxeo SA. All Rights Reserved.