public class DefaultPlaceholderImageFactory extends Object implements PlaceholderImageFactory
| Constructor and Description |
|---|
DefaultPlaceholderImageFactory(FontProvider fontProvider) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
BufferedImage |
getPlaceholderImage(InputStream iconStream,
int sizeInPixels) |
BufferedImage |
getPlaceholderImage(List<StyledString> styledStrings,
InputStream iconStream,
Color backgroundColor)
Generate placeholder image.
|
BufferedImage |
getPlaceholderImage(List<StyledString> styledStrings,
InputStream iconStream,
Color backgroundColor,
Color borderColor,
boolean roundedCorner)
Generate placeholder image.
|
BufferedImage |
getPlaceholderImage(StyledString styledString,
InputStream iconStream,
Color backgroundColor)
Generate placeholder image.
|
BufferedImage |
getPlaceholderImage(StyledString styledString,
InputStream iconStream,
Color backgroundColor,
Color borderColor,
boolean roundedCorner)
Generate placeholder image.
|
public DefaultPlaceholderImageFactory(FontProvider fontProvider)
public BufferedImage getPlaceholderImage(StyledString styledString, InputStream iconStream, Color backgroundColor)
PlaceholderImageFactorygetPlaceholderImage in interface PlaceholderImageFactorystyledString - a styled stringiconStream - stream of placeholder iconbackgroundColor - background colorpublic BufferedImage getPlaceholderImage(StyledString styledString, InputStream iconStream, Color backgroundColor, Color borderColor, boolean roundedCorner)
PlaceholderImageFactorygetPlaceholderImage in interface PlaceholderImageFactorystyledString - a styled stringiconStream - stream of placeholder iconbackgroundColor - background colorborderColor - border colorroundedCorner - true if image should have rounded cornerpublic BufferedImage getPlaceholderImage(List<StyledString> styledStrings, InputStream iconStream, Color backgroundColor)
PlaceholderImageFactorygetPlaceholderImage in interface PlaceholderImageFactorystyledStrings - an ordered list of styled stringsiconStream - stream of placeholder iconbackgroundColor - background colorpublic BufferedImage getPlaceholderImage(List<StyledString> styledStrings, InputStream iconStream, Color backgroundColor, Color borderColor, boolean roundedCorner)
PlaceholderImageFactorygetPlaceholderImage in interface PlaceholderImageFactorystyledStrings - an ordered list of styled stringsiconStream - stream of placeholder iconbackgroundColor - background colorborderColor - border colorroundedCorner - true if image should have rounded cornerpublic BufferedImage getPlaceholderImage(InputStream iconStream, int sizeInPixels)
getPlaceholderImage in interface PlaceholderImageFactorypublic BufferedImage getPlaceholderHeading(List<StyledString> styledStrings, InputStream iconStream, Color backgroundColor)
PlaceholderImageFactorygetPlaceholderHeading in interface PlaceholderImageFactorystyledStrings - an ordered list of styled stringsiconStream - stream of placeholder iconbackgroundColor - background colorCopyright © 2003–2021 Atlassian. All rights reserved.