Interface PlaceholderImageFactory
- All Known Implementing Classes:
DefaultPlaceholderImageFactory
public interface PlaceholderImageFactory
Generates placeholder images.
-
Method Summary
Modifier and TypeMethodDescriptiongetPlaceholderHeading
(List<StyledString> styledStrings, InputStream iconStream, Color backgroundColor) Generate a placeholder image that is suitable for use as a header in a body macro.getPlaceholderImage
(StyledString styledString, InputStream iconStream, Color backgroundColor) Generate placeholder image.getPlaceholderImage
(StyledString styledString, InputStream iconStream, Color backgroundColor, Color borderColor, boolean roundedCorner) Generate placeholder image.getPlaceholderImage
(InputStream iconStream, int sizeInPixels) getPlaceholderImage
(List<StyledString> styledStrings, InputStream iconStream, Color backgroundColor) Generate placeholder image.getPlaceholderImage
(List<StyledString> styledStrings, InputStream iconStream, Color backgroundColor, Color borderColor, boolean roundedCorner) Generate placeholder image.
-
Method Details
-
getPlaceholderImage
BufferedImage getPlaceholderImage(StyledString styledString, InputStream iconStream, Color backgroundColor) Generate placeholder image.- Parameters:
styledString
- a styled stringiconStream
- stream of placeholder iconbackgroundColor
- background color- Returns:
- a placeholder image
-
getPlaceholderImage
BufferedImage getPlaceholderImage(StyledString styledString, InputStream iconStream, Color backgroundColor, Color borderColor, boolean roundedCorner) Generate placeholder image.- Parameters:
styledString
- a styled stringiconStream
- stream of placeholder iconbackgroundColor
- background colorborderColor
- border colorroundedCorner
- true if image should have rounded corner- Returns:
- a placeholder image
-
getPlaceholderImage
BufferedImage getPlaceholderImage(List<StyledString> styledStrings, InputStream iconStream, Color backgroundColor) Generate placeholder image.- Parameters:
styledStrings
- an ordered list of styled stringsiconStream
- stream of placeholder iconbackgroundColor
- background color- Returns:
- a placeholder image
-
getPlaceholderImage
BufferedImage getPlaceholderImage(List<StyledString> styledStrings, InputStream iconStream, Color backgroundColor, Color borderColor, boolean roundedCorner) Generate placeholder image.- Parameters:
styledStrings
- an ordered list of styled stringsiconStream
- stream of placeholder iconbackgroundColor
- background colorborderColor
- border colorroundedCorner
- true if image should have rounded corner- Returns:
- a placeholder image
-
getPlaceholderHeading
BufferedImage getPlaceholderHeading(List<StyledString> styledStrings, InputStream iconStream, Color backgroundColor) Generate a placeholder image that is suitable for use as a header in a body macro.- Parameters:
styledStrings
- an ordered list of styled stringsiconStream
- stream of placeholder iconbackgroundColor
- background color- Returns:
- a placeholder image
-
getPlaceholderImage
-