Package com.jalios.jcms.thumbnail
Class DefaultOpenOfficeThumbnailPolicyFilter
- java.lang.Object
-
- com.jalios.jcms.policy.AbstractPolicyFilter
-
- com.jalios.jcms.policy.BasicThumbnailPolicyFilter
-
- com.jalios.jcms.thumbnail.AbstractThumbnailPolicyFilterImpl
-
- com.jalios.jcms.thumbnail.DefaultOpenOfficeThumbnailPolicyFilter
-
- All Implemented Interfaces:
GenericProvider
,PluginComponent
,PolicyFilter
,ThumbnailPolicyFilter
,java.lang.Comparable
public class DefaultOpenOfficeThumbnailPolicyFilter extends AbstractThumbnailPolicyFilterImpl
-
-
Field Summary
-
Fields inherited from class com.jalios.jcms.thumbnail.AbstractThumbnailPolicyFilterImpl
REVISION
-
Fields inherited from class com.jalios.jcms.policy.AbstractPolicyFilter
order
-
-
Constructor Summary
Constructors Constructor Description DefaultOpenOfficeThumbnailPolicyFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class com.jalios.jcms.thumbnail.AbstractThumbnailPolicyFilterImpl
createThumbnail, createThumbnail, isValidImageSize, supportsThumbnail
-
Methods inherited from class com.jalios.jcms.policy.BasicThumbnailPolicyFilter
createThumbnail, createThumbnail, createThumbnail, createThumbnail, createThumbnail, createThumbnail, init, init, isValidImageSize, supportsThumbnail
-
Methods inherited from class com.jalios.jcms.policy.AbstractPolicyFilter
compareTo, equals, getOrder, setOrder
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.jalios.jcms.GenericProvider
getLabel, getName, isInitialized
-
-
-
-
Method Detail
-
createThumbnail
public boolean createThumbnail(FileDocument doc, java.io.File dest, ImageFormat format, int maxWidth, int maxHeight, java.lang.String background, boolean square, boolean done)
Description copied from interface:ThumbnailPolicyFilter
This method is a hook called by Thumbnail tag to generate a thumbnail of the given FileDocument.- Specified by:
createThumbnail
in interfaceThumbnailPolicyFilter
- Specified by:
createThumbnail
in classAbstractThumbnailPolicyFilterImpl
- Parameters:
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 maxHeightsquare
- set to true to crop image into a square using the specified width during thumbnail creation.done
- the global plugin createThumbnail() status- Returns:
- true on success, or false if the thumbnail could not be created
- See Also:
ThumbnailPolicyFilter.createThumbnail(FileDocument, File, ImageFormat, int, int, String, boolean, boolean)
-
-