Class DefaultPlaceholderImageFactory
- java.lang.Object
-
- com.atlassian.confluence.tinymceplugin.placeholder.DefaultPlaceholderImageFactory
-
- All Implemented Interfaces:
PlaceholderImageFactory
public class DefaultPlaceholderImageFactory extends Object implements PlaceholderImageFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultPlaceholderImageFactory(FontProvider fontProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(StyledString styledString, InputStream iconStream, Color backgroundColor)
Generate placeholder image.BufferedImage
getPlaceholderImage(StyledString styledString, InputStream iconStream, Color backgroundColor, Color borderColor, boolean roundedCorner)
Generate placeholder image.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.
-
-
-
Constructor Detail
-
DefaultPlaceholderImageFactory
public DefaultPlaceholderImageFactory(FontProvider fontProvider)
-
-
Method Detail
-
getPlaceholderImage
public BufferedImage getPlaceholderImage(StyledString styledString, InputStream iconStream, Color backgroundColor)
Description copied from interface:PlaceholderImageFactory
Generate placeholder image.- Specified by:
getPlaceholderImage
in interfacePlaceholderImageFactory
- Parameters:
styledString
- a styled stringiconStream
- stream of placeholder iconbackgroundColor
- background color- Returns:
- a placeholder image
-
getPlaceholderImage
public BufferedImage getPlaceholderImage(StyledString styledString, InputStream iconStream, Color backgroundColor, Color borderColor, boolean roundedCorner)
Description copied from interface:PlaceholderImageFactory
Generate placeholder image.- Specified by:
getPlaceholderImage
in interfacePlaceholderImageFactory
- 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
public BufferedImage getPlaceholderImage(List<StyledString> styledStrings, InputStream iconStream, Color backgroundColor)
Description copied from interface:PlaceholderImageFactory
Generate placeholder image.- Specified by:
getPlaceholderImage
in interfacePlaceholderImageFactory
- Parameters:
styledStrings
- an ordered list of styled stringsiconStream
- stream of placeholder iconbackgroundColor
- background color- Returns:
- a placeholder image
-
getPlaceholderImage
public BufferedImage getPlaceholderImage(List<StyledString> styledStrings, InputStream iconStream, Color backgroundColor, Color borderColor, boolean roundedCorner)
Description copied from interface:PlaceholderImageFactory
Generate placeholder image.- Specified by:
getPlaceholderImage
in interfacePlaceholderImageFactory
- 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
-
getPlaceholderImage
public BufferedImage getPlaceholderImage(InputStream iconStream, int sizeInPixels)
- Specified by:
getPlaceholderImage
in interfacePlaceholderImageFactory
-
getPlaceholderHeading
public BufferedImage getPlaceholderHeading(List<StyledString> styledStrings, InputStream iconStream, Color backgroundColor)
Description copied from interface:PlaceholderImageFactory
Generate a placeholder image that is suitable for use as a header in a body macro.- Specified by:
getPlaceholderHeading
in interfacePlaceholderImageFactory
- Parameters:
styledStrings
- an ordered list of styled stringsiconStream
- stream of placeholder iconbackgroundColor
- background color- Returns:
- a placeholder image
-
-