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

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

Introduction

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

Prototype

public void setBackgroundColor(Color backgroundColor) 

Source Link

Document

Sets the background color.

Usage

From source file:buckley.compile.BackgroundColorModifier.java

License:Apache License

public void modify(BaseField iTextField, Field field, Document document) {
    if (field.getBackgroundColor() != null) {
        iTextField.setBackgroundColor(field.getBackgroundColor());
    }/* ww w  .j  a v a2 s  .  c  o  m*/
}