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)
PlaceholderImageFactory
getPlaceholderImage
in interface PlaceholderImageFactory
styledString
- a styled stringiconStream
- stream of placeholder iconbackgroundColor
- background colorpublic BufferedImage getPlaceholderImage(StyledString styledString, InputStream iconStream, Color backgroundColor, Color borderColor, boolean roundedCorner)
PlaceholderImageFactory
getPlaceholderImage
in interface PlaceholderImageFactory
styledString
- 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)
PlaceholderImageFactory
getPlaceholderImage
in interface PlaceholderImageFactory
styledStrings
- 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)
PlaceholderImageFactory
getPlaceholderImage
in interface PlaceholderImageFactory
styledStrings
- 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 PlaceholderImageFactory
public BufferedImage getPlaceholderHeading(List<StyledString> styledStrings, InputStream iconStream, Color backgroundColor)
PlaceholderImageFactory
getPlaceholderHeading
in interface PlaceholderImageFactory
styledStrings
- an ordered list of styled stringsiconStream
- stream of placeholder iconbackgroundColor
- background colorCopyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences