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 TextStylecreateStyle(MarkupRenderer renderer, java.lang.String[] parameters)static BackgroundColorStyleFactorygetShared()-
Methods inherited from class ca.cgjennings.layout.ForegroundColorStyleFactory
parseColor
-
-
-
-
Method Detail
-
createStyle
public TextStyle createStyle(MarkupRenderer renderer, java.lang.String[] parameters)
- Specified by:
createStylein interfaceParametricStyleFactory- Overrides:
createStylein classForegroundColorStyleFactory
-
getShared
public static final BackgroundColorStyleFactory getShared()
-
-