com.atlassian.confluence.tinymceplugin.placeholder
Class DefaultPlaceholderImageFactory

java.lang.Object
  extended by com.atlassian.confluence.tinymceplugin.placeholder.DefaultPlaceholderImageFactory
All Implemented Interfaces:
PlaceholderImageFactory

public class DefaultPlaceholderImageFactory
extends Object
implements PlaceholderImageFactory


Constructor Summary
DefaultPlaceholderImageFactory(FontProvider fontProvider)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface PlaceholderImageFactory
Parameters:
styledString - a styled string
iconStream - stream of placeholder icon
backgroundColor - 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 interface PlaceholderImageFactory
Parameters:
styledString - a styled string
iconStream - stream of placeholder icon
backgroundColor - background color
borderColor - border color
roundedCorner - 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 interface PlaceholderImageFactory
Parameters:
styledStrings - an ordered list of styled strings
iconStream - stream of placeholder icon
backgroundColor - 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 interface PlaceholderImageFactory
Parameters:
styledStrings - an ordered list of styled strings
iconStream - stream of placeholder icon
backgroundColor - background color
borderColor - border color
roundedCorner - true if image should have rounded corner
Returns:
a placeholder image

getPlaceholderImage

public BufferedImage getPlaceholderImage(InputStream iconStream,
                                         int sizeInPixels)
Specified by:
getPlaceholderImage in interface PlaceholderImageFactory

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 interface PlaceholderImageFactory
Parameters:
styledStrings - an ordered list of styled strings
iconStream - stream of placeholder icon
backgroundColor - background color
Returns:
a placeholder image


Copyright © 2003–2015 Atlassian. All rights reserved.