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

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

Introduction

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

Prototype

public void setBorderColor(BaseColor borderColor) 

Source Link

Document

Sets the border color.

Usage

From source file:com.vectorprint.report.itext.style.stylers.FieldBorder.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.setBorderColor(itextHelper.fromColor(getValue(COLOR_PARAM, Color.class)));
        bf.setBorderWidth(getValue(BORDERWIDTH, Float.class));
        bf.setBorderStyle(getValue(BORDERSTYLEPARAM, BORDERSTYLE.class).getStyle());
    }//from www .  j a  v a  2s. c  om
    return element;
}