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 square,
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 square,
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 square,
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, createThumbnail, createThumbnail, createThumbnail, init, isValidImageSize, supportsThumbnailcompareTo, equals, getOrder, setOrderpublic 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 square,
boolean done)
ThumbnailPolicyFiltercreateThumbnail in interface ThumbnailPolicyFiltercreateThumbnail in class BasicThumbnailPolicyFiltersrc - 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 maxHeightsquare - set to true to crop image into a square using the specified width during thumbnail creation.done - the global plugin createThumbnail() statusThumbnailPolicyFilter.createThumbnail(File, File, ImageFormat, int, int, String, boolean, 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 square, boolean done)
ThumbnailPolicyFiltercreateThumbnail in interface ThumbnailPolicyFiltercreateThumbnail in class BasicThumbnailPolicyFilterdoc - 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 maxHeightsquare - set to true to crop image into a square using the specified width during thumbnail creation.done - the global plugin createThumbnail() statusThumbnailPolicyFilter.createThumbnail(FileDocument, File, ImageFormat, int, int, String, boolean, boolean)public boolean createThumbnail(java.net.URL url,
java.io.File dest,
ImageFormat format,
int maxWidth,
int maxHeight,
java.lang.String background,
boolean square,
boolean done)
ThumbnailPolicyFiltercreateThumbnail in interface ThumbnailPolicyFiltercreateThumbnail in class BasicThumbnailPolicyFilterurl - 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 maxHeightsquare - set to true to crop image into a square using the specified width during thumbnail creation.done - the global plugin createThumbnail() statusThumbnailPolicyFilter.createThumbnail(URL, File, ImageFormat, int, int, String, boolean, boolean)Copyright © 2001-2017 Jalios SA. All Rights Reserved.