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: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
- 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
-