Interface PlaceholderImageFactory
-
- All Known Implementing Classes:
DefaultPlaceholderImageFactory
public interface PlaceholderImageFactoryGenerates placeholder images.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BufferedImagegetPlaceholderHeading(List<StyledString> styledStrings, InputStream iconStream, Color backgroundColor)Generate a placeholder image that is suitable for use as a header in a body macro.BufferedImagegetPlaceholderImage(StyledString styledString, InputStream iconStream, Color backgroundColor)Generate placeholder image.BufferedImagegetPlaceholderImage(StyledString styledString, InputStream iconStream, Color backgroundColor, Color borderColor, boolean roundedCorner)Generate placeholder image.BufferedImagegetPlaceholderImage(InputStream iconStream, int sizeInPixels)BufferedImagegetPlaceholderImage(List<StyledString> styledStrings, InputStream iconStream, Color backgroundColor)Generate placeholder image.BufferedImagegetPlaceholderImage(List<StyledString> styledStrings, InputStream iconStream, Color backgroundColor, Color borderColor, boolean roundedCorner)Generate placeholder image.
-
-
-
Method Detail
-
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
BufferedImage getPlaceholderImage(InputStream iconStream, int sizeInPixels)
-
-