Package se.datadosen.jalbum
Class ThemeImageProcessor
java.lang.Object
se.datadosen.jalbum.ThemeImageProcessor
Default implementation of theme image generation
- Since:
- 15
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetFinalThemeImageDim
(AlbumObject folder) Calculate the width and height of the to-be-generated theme image file or null if no theme image presentgetThemePath
(AlbumObject folder) void
processThemeImage
(AlbumObject folder, File outputDir) Creates a theme image for the specified folder.void
-
Field Details
-
THEME_FILE_NAME
Default name for generated theme images- See Also:
-
engine
-
-
Constructor Details
-
ThemeImageProcessor
public ThemeImageProcessor()
-
-
Method Details
-
setEngine
-
getThemePath
- Returns:
- Path to generated theme image file, relative to current output directory (not URL encoded) or null if no theme image present
-
getFinalThemeImageDim
Calculate the width and height of the to-be-generated theme image file or null if no theme image present- Parameters:
folder
-- Returns:
-
processThemeImage
Creates a theme image for the specified folder. Avoids re-generating theme images unless changes has been made- Parameters:
folder
-outputDir
-- Throws:
IOException
-