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 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.
-
-
-
Constructor Detail
-
DefaultPlaceholderImageFactory
public DefaultPlaceholderImageFactory(FontProvider fontProvider)
-
-
Method Detail
-
getPlaceholderImage
public BufferedImage getPlaceholderImage(StyledString styledString, InputStream iconStream, Color backgroundColor)
Description copied from interface:PlaceholderImageFactoryGenerate placeholder image.- Specified by:
getPlaceholderImagein 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:PlaceholderImageFactoryGenerate placeholder image.- Specified by:
getPlaceholderImagein 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:PlaceholderImageFactoryGenerate placeholder image.- Specified by:
getPlaceholderImagein 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:PlaceholderImageFactoryGenerate placeholder image.- Specified by:
getPlaceholderImagein 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:
getPlaceholderImagein interfacePlaceholderImageFactory
-
getPlaceholderHeading
public BufferedImage getPlaceholderHeading(List<StyledString> styledStrings, InputStream iconStream, Color backgroundColor)
Description copied from interface:PlaceholderImageFactoryGenerate a placeholder image that is suitable for use as a header in a body macro.- Specified by:
getPlaceholderHeadingin interfacePlaceholderImageFactory- Parameters:
styledStrings- an ordered list of styled stringsiconStream- stream of placeholder iconbackgroundColor- background color- Returns:
- a placeholder image
-
-