|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pdfsam.guiclient.business.thumbnails.creators.AbstractThumbnailCreator
public abstract class AbstractThumbnailCreator
Abstract thumbnail creator
Field Summary |
---|
Fields inherited from interface org.pdfsam.guiclient.business.thumbnails.creators.ThumbnailsCreator |
---|
DEFAULT_RESIZE_PERCENTAGE |
Constructor Summary | |
---|---|
AbstractThumbnailCreator()
|
Method Summary | |
---|---|
void |
clean(long id)
clean the thumbnails generation with the given id |
protected abstract void |
finalizeThumbnailsCreation()
generic finalization. |
protected abstract java.util.concurrent.Callable<java.lang.Boolean> |
getCloserTask()
|
protected long |
getCurrentId()
|
protected abstract DocumentInfo |
getDocumentInfo()
|
protected abstract java.util.Vector<VisualPageListItem> |
getDocumentModel(java.util.List<DocumentPage> template)
The model to set on thumbnails list before the thumbnails generation starts. |
protected abstract java.util.Collection<? extends java.util.concurrent.Callable<java.lang.Boolean>> |
getGenerationTasks(java.util.Vector<VisualPageListItem> modelList)
|
protected java.io.File |
getInputFile()
|
java.awt.image.BufferedImage |
getPageImage(java.io.File inputFile,
java.lang.String password,
int page)
|
java.awt.image.BufferedImage |
getPageImage(java.lang.String fileName,
java.lang.String password,
int page)
|
java.awt.image.BufferedImage |
getPageImage(java.lang.String fileName,
java.lang.String password,
int page,
int rotation)
|
protected JVisualPdfPageSelectionPanel |
getPanel()
|
protected java.lang.String |
getProvidedPassword()
|
java.awt.image.BufferedImage |
getThumbnail(java.lang.String fileName,
java.lang.String password,
int page,
float resizePercentage)
|
protected abstract void |
initThumbnailsCreation()
initialization of the thumbnail creation process |
void |
initThumbnailsPanel(java.io.File inputFile,
java.lang.String password,
JVisualPdfPageSelectionPanel panel,
long id,
java.util.List<DocumentPage> template)
Initialize the input panel. |
void |
initThumbnailsPanel(java.lang.String fileName,
java.lang.String password,
JVisualPdfPageSelectionPanel panel,
long id,
java.util.List<DocumentPage> template)
Initialize the input panel. |
protected abstract boolean |
openInputDocument()
Opens the input document |
protected void |
setProvidedPassword(java.lang.String providedPassword)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.pdfsam.guiclient.business.thumbnails.creators.ThumbnailsCreator |
---|
getCreatorIdentifier, getCreatorName, getPageImage, getResolution, getThumbnail |
Constructor Detail |
---|
public AbstractThumbnailCreator()
Method Detail |
---|
public java.awt.image.BufferedImage getPageImage(java.lang.String fileName, java.lang.String password, int page, int rotation) throws ThumbnailCreationException
getPageImage
in interface ThumbnailsCreator
rotation
- page rotation in degrees
ThumbnailCreationException
public java.awt.image.BufferedImage getPageImage(java.lang.String fileName, java.lang.String password, int page) throws ThumbnailCreationException
getPageImage
in interface ThumbnailsCreator
fileName
- pdf documentpassword
- document password or null if no password is needed
ThumbnailCreationException
public java.awt.image.BufferedImage getThumbnail(java.lang.String fileName, java.lang.String password, int page, float resizePercentage) throws ThumbnailCreationException
getThumbnail
in interface ThumbnailsCreator
fileName
- pdf documentpassword
- document password or null if no password is neededpage
- page nmberresizePercentage
- resize level
ThumbnailCreationException
public void clean(long id)
ThumbnailsCreator
clean
in interface ThumbnailsCreator
public void initThumbnailsPanel(java.lang.String fileName, java.lang.String password, JVisualPdfPageSelectionPanel panel, long id, java.util.List<DocumentPage> template) throws ThumbnailCreationException
ThumbnailsCreator
initThumbnailsPanel
in interface ThumbnailsCreator
password
- document password or null if no password is neededid
- Id for this thumbnails generationtemplate
- template for the document pages (order, rotation infos..)
ThumbnailCreationException
public void initThumbnailsPanel(java.io.File inputFile, java.lang.String password, JVisualPdfPageSelectionPanel panel, long id, java.util.List<DocumentPage> template) throws ThumbnailCreationException
ThumbnailsCreator
initThumbnailsPanel
in interface ThumbnailsCreator
inputFile
- pdf documentpassword
- document password or null if no password is neededid
- Id for this thumbnails generationtemplate
- template for the document pages (order, rotation infos..)
ThumbnailCreationException
public java.awt.image.BufferedImage getPageImage(java.io.File inputFile, java.lang.String password, int page) throws ThumbnailCreationException
getPageImage
in interface ThumbnailsCreator
inputFile
- pdf documentpassword
- document password or null if no password is needed
ThumbnailCreationException
protected abstract void initThumbnailsCreation() throws ThumbnailCreationException
ThumbnailCreationException
protected abstract boolean openInputDocument() throws ThumbnailCreationException
ThumbnailCreationException
protected abstract DocumentInfo getDocumentInfo() throws ThumbnailCreationException
ThumbnailCreationException
protected abstract java.util.Vector<VisualPageListItem> getDocumentModel(java.util.List<DocumentPage> template) throws ThumbnailCreationException
template
- Pages template. Used when loading an environment to set rotation and other informations
ThumbnailCreationException
protected abstract java.util.concurrent.Callable<java.lang.Boolean> getCloserTask() throws ThumbnailCreationException
ThumbnailCreationException
protected abstract java.util.Collection<? extends java.util.concurrent.Callable<java.lang.Boolean>> getGenerationTasks(java.util.Vector<VisualPageListItem> modelList) throws ThumbnailCreationException
modelList
- the model list set on the Visual List Component
ThumbnailCreationException
protected abstract void finalizeThumbnailsCreation() throws ThumbnailCreationException
ThumbnailCreationException
protected java.lang.String getProvidedPassword()
protected void setProvidedPassword(java.lang.String providedPassword)
providedPassword
- the providedPassword to setprotected java.io.File getInputFile()
protected JVisualPdfPageSelectionPanel getPanel()
protected long getCurrentId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |