Package ca.cgjennings.layout
Class BackgroundColorStyleFactory
- java.lang.Object
-
- ca.cgjennings.layout.ForegroundColorStyleFactory
-
- ca.cgjennings.layout.BackgroundColorStyleFactory
-
- All Implemented Interfaces:
ParametricStyleFactory
public class BackgroundColorStyleFactory extends ForegroundColorStyleFactory
Create a text style that colours the text background according to the value of the first parameter. It is parsed similarly to colours in HTML, using a parameter of the form #rrggbb or #aarrggbb.- Author:
- Chris Jennings
-
-
Constructor Summary
Constructors Constructor Description BackgroundColorStyleFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TextStyle
createStyle(MarkupRenderer renderer, java.lang.String[] parameters)
static BackgroundColorStyleFactory
getShared()
-
Methods inherited from class ca.cgjennings.layout.ForegroundColorStyleFactory
parseColor
-
-
-
-
Method Detail
-
createStyle
public TextStyle createStyle(MarkupRenderer renderer, java.lang.String[] parameters)
- Specified by:
createStyle
in interfaceParametricStyleFactory
- Overrides:
createStyle
in classForegroundColorStyleFactory
-
getShared
public static final BackgroundColorStyleFactory getShared()
-
-