Example usage for com.itextpdf.text.pdf BaseField setBackgroundColor

List of usage examples for com.itextpdf.text.pdf BaseField setBackgroundColor

Introduction

In this page you can find the example usage for com.itextpdf.text.pdf BaseField setBackgroundColor.

Prototype

public void setBackgroundColor(BaseColor backgroundColor) 

Source Link

Document

Sets the background color.

Usage

From source file:com.vectorprint.report.itext.style.stylers.FieldBackground.java

License:Open Source License

@Override
public <E> E style(E element, Object data) throws VectorPrintException {
    element = super.style(element, data);
    BaseField bf = getFromCell(element);
    if (bf != null) {
        bf.setBackgroundColor(itextHelper.fromColor(getValue(COLOR_PARAM, Color.class)));
    }/*from   www. j a  v a  2s .  co m*/
    return element;
}