public class DefaultThumbnailPolicyFilter extends BasicThumbnailPolicyFilter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
order
Constructor and Description |
---|
DefaultThumbnailPolicyFilter() |
Modifier and Type | Method and Description |
---|---|
boolean |
createThumbnail(FileDocument doc,
java.io.File dest,
ImageFormat format,
int maxWidth,
int maxHeight,
java.lang.String background,
boolean done)
This method is a hook called by Thumbnail tag to generate a
thumbnail of the given FileDocument.
|
boolean |
createThumbnail(java.io.File src,
java.io.File dest,
ImageFormat format,
int maxWidth,
int maxHeight,
java.lang.String background,
boolean done)
This method is a hook called by Thumbnail tag to generate a
thumbnail of the given source file.
|
boolean |
createThumbnail(java.net.URL url,
java.io.File dest,
ImageFormat format,
int maxWidth,
int maxHeight,
java.lang.String background,
boolean done)
This method is a hook called by Thumbnail tag to generate a
thumbnail of the given URL.
|
boolean |
isValidImageSize(java.io.File imgFile,
long width,
long height) |
boolean |
supportsThumbnail(FileDocument doc) |
createThumbnail, createThumbnail, createThumbnail, init, isValidImageSize, supportsThumbnail
compareTo, equals, getOrder, setOrder
public static final java.lang.String REVISION
public boolean createThumbnail(java.io.File src, java.io.File dest, ImageFormat format, int maxWidth, int maxHeight, java.lang.String background, boolean done)
ThumbnailPolicyFilter
createThumbnail
in interface ThumbnailPolicyFilter
createThumbnail
in class BasicThumbnailPolicyFilter
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 generatebackground
- the background color (eg "FFFFFF") if sets the image dimension will be set maxWidth and maxHeightdone
- the global plugin createThumbnail() statusThumbnailPolicyFilter.createThumbnail(File, File, ImageFormat, int, int, String, boolean)
public boolean isValidImageSize(java.io.File imgFile, long width, long height)
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)ThumbnailPolicyFilter.isValidImageSize(File, long, long, boolean)
public boolean supportsThumbnail(FileDocument doc)
doc
- the FileDocument to be checkedThumbnailPolicyFilter.supportsThumbnail(FileDocument, boolean)
public boolean createThumbnail(FileDocument doc, java.io.File dest, ImageFormat format, int maxWidth, int maxHeight, java.lang.String background, boolean done)
ThumbnailPolicyFilter
createThumbnail
in interface ThumbnailPolicyFilter
createThumbnail
in class BasicThumbnailPolicyFilter
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 generatebackground
- the background color (eg "FFFFFF") if sets the image dimension will be set maxWidth and maxHeightdone
- the global plugin createThumbnail() statusThumbnailPolicyFilter.createThumbnail(FileDocument, File, ImageFormat, int, int, String, boolean)
public boolean createThumbnail(java.net.URL url, java.io.File dest, ImageFormat format, int maxWidth, int maxHeight, java.lang.String background, boolean done)
ThumbnailPolicyFilter
createThumbnail
in interface ThumbnailPolicyFilter
createThumbnail
in class BasicThumbnailPolicyFilter
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 generatebackground
- the background color (eg "FFFFFF") if sets the image dimension will be set maxWidth and maxHeightdone
- the global plugin createThumbnail() statusThumbnailPolicyFilter.createThumbnail(URL, File, ImageFormat, int, int, String, boolean)
Copyright © 2001-2010 Jalios SA. All Rights Reserved.