Class DefaultHeaderSeparatorService
java.lang.Object
com.atlassian.jira.image.separator.DefaultHeaderSeparatorService
- All Implemented Interfaces:
HeaderSeparatorService
Default implementation that uses raws the image on a created buffered image.
This is not cached so consumers should look after their own caching.
- Since:
- v4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getSeparator
(String colorHex, String backgroundColorHex) Get the bytes for a separator image for the given colours.
-
Constructor Details
-
DefaultHeaderSeparatorService
-
-
Method Details
-
getSeparator
Description copied from interface:HeaderSeparatorService
Get the bytes for a separator image for the given colours. Allows for easy streaming.Input strings can ontain a leading hash (#) and can be a 3 char or 6 char hex string. See any web tutorial for what colour the string represents. If hex colors are wrong, default colours are returned. Black arrow and a transparent white background.
- Specified by:
getSeparator
in interfaceHeaderSeparatorService
- Parameters:
colorHex
- The main color of the separatorbackgroundColorHex
- The background colour of the separator. This will also be transparent. Useful for IE6- Returns:
- An array of bytes representing an image.
-