List of usage examples for com.itextpdf.text.pdf BaseField setBackgroundColor
public void setBackgroundColor(BaseColor backgroundColor)
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; }