|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ThumbnailPolicyFilter
This class allow users to customize behaviour of widgets by re-writing call-back methods.
Field Summary | |
---|---|
static String |
REVISION
|
Method Summary | |
---|---|
boolean |
createThumbnail(FileDocument doc,
File dest,
ImageFormat format,
int maxWidth,
int maxHeight,
String background,
boolean done)
This method is a hook called by Thumbnail tag to generate a thumbnail of the given FileDocument. |
boolean |
createThumbnail(File src,
File dest,
ImageFormat format,
int maxWidth,
int maxHeight,
String background,
boolean done)
This method is a hook called by Thumbnail tag to generate a thumbnail of the given source file. |
boolean |
createThumbnail(URL url,
File dest,
ImageFormat format,
int maxWidth,
int maxHeight,
String background,
boolean done)
This method is a hook called by Thumbnail tag to generate a thumbnail of the given URL. |
boolean |
isValidImageSize(File imgFile,
long width,
long height,
boolean jcms)
Checks if the given dimension are below the limit above which we do not generate thumbnails |
boolean |
supportsThumbnail(FileDocument doc,
boolean jcms)
Returns true if a thumbnail can be generated for the given document. |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface com.jalios.jcms.plugin.PluginComponent |
---|
init |
Field Detail |
---|
static final String REVISION
Method Detail |
---|
boolean createThumbnail(File src, File dest, ImageFormat format, int maxWidth, int maxHeight, String background, boolean done)
src
- source file of which to create a thumbnaildest
- destination file (the thumbnail to generate)format
- the format of the file to generate as requested by the ThumbnailTagmaxWidth
- the maximum width of the thumbnail to generatemaxHeight
- the maximum height of the thumbnail to generatedone
- the global plugin createThumbnail() statusbackground
- the background color (eg "FFFFFF") if sets the image dimension will be set maxWidth and maxHeight
ThumbnailTag.createImageThumbnail(File, File, ImageFormat, int, int)
,
ImageUtil.createThumbnail(File, ImageFormat, int, int)
boolean isValidImageSize(File imgFile, long width, long height, boolean jcms)
imgFile
- the image File being checked (only used for logging)width
- the widht of the image (in pixel)height
- the heigth of the image (in pixel)jcms
- the value computed by previous policy filter or the default
jcms value if no filter has been invoked yet
boolean supportsThumbnail(FileDocument doc, boolean jcms)
doc
- the FileDocument to be checkedjcms
- the value computed by previous policy filter or the default
jcms value if no filter has been invoked yet
boolean createThumbnail(FileDocument doc, File dest, ImageFormat format, int maxWidth, int maxHeight, String background, boolean done)
doc
- FileDocument of which to create a thumbnaildest
- destination file (the thumbnail to generate)format
- the format of the file to generate as requested by the ThumbnailTagmaxWidth
- the maximum width of the thumbnail to generatemaxHeight
- the maximum height of the thumbnail to generatedone
- the global plugin createThumbnail() statusbackground
- the background color (eg "FFFFFF") if sets the image dimension will be set maxWidth and maxHeight
ThumbnailTag.createImageThumbnail(File, File, ImageFormat, int, int)
,
ImageUtil.createThumbnail(File, ImageFormat, int, int)
boolean createThumbnail(URL url, File dest, ImageFormat format, int maxWidth, int maxHeight, String background, boolean done)
url
- the URL of which to create a thumbnaildest
- destination file (the thumbnail to generate)format
- the format of the file to generate as requested by the ThumbnailTagmaxWidth
- the maximum width of the thumbnail to generatemaxHeight
- the maximum height of the thumbnail to generatedone
- the global plugin createThumbnail() statusbackground
- the background color (eg "FFFFFF") if sets the image dimension will be set maxWidth and maxHeight
ThumbnailTag.createImageThumbnail(File, File, ImageFormat, int, int)
,
ImageUtil.createThumbnail(File, ImageFormat, int, int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |