Class DefaultPlaceholderImageFactory
java.lang.Object
com.atlassian.confluence.tinymceplugin.placeholder.DefaultPlaceholderImageFactory
- All Implemented Interfaces:
PlaceholderImageFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPlaceholderHeading(List<StyledString> styledStrings, InputStream iconStream, Color backgroundColor) Generate a placeholder image that is suitable for use as a header in a body macro.getPlaceholderImage(StyledString styledString, InputStream iconStream, Color backgroundColor) Generate placeholder image.getPlaceholderImage(StyledString styledString, InputStream iconStream, Color backgroundColor, Color borderColor, boolean roundedCorner) Generate placeholder image.getPlaceholderImage(InputStream iconStream, int sizeInPixels) getPlaceholderImage(List<StyledString> styledStrings, InputStream iconStream, Color backgroundColor) Generate placeholder image.getPlaceholderImage(List<StyledString> styledStrings, InputStream iconStream, Color backgroundColor, Color borderColor, boolean roundedCorner) Generate placeholder image.
-
Constructor Details
-
DefaultPlaceholderImageFactory
-
-
Method Details
-
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
- 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
-