Example usage for com.itextpdf.text.pdf.draw DottedLineSeparator setLineColor

List of usage examples for com.itextpdf.text.pdf.draw DottedLineSeparator setLineColor

Introduction

In this page you can find the example usage for com.itextpdf.text.pdf.draw DottedLineSeparator setLineColor.

Prototype

public void setLineColor(BaseColor color) 

Source Link

Document

Setter for the color of the line that will be drawn.

Usage

From source file:se.billes.pdf.renderer.model.text.DottedFillPhrase.java

License:Open Source License

@Override
public void onRender(com.itextpdf.text.Paragraph paragraph) {
    DottedLineSeparator sep = new DottedLineSeparator();
    sep.setAlignment(Element.ALIGN_LEFT);
    sep.setGap(gap);/*w ww .ja va  2 s. c o m*/
    sep.setLineColor(getBaseColor());
    com.itextpdf.text.Font f = new com.itextpdf.text.Font(getBaseFont(), getFontSize());
    f.setColor(getBaseColor());
    Chunk separator = new Chunk(sep);
    separator.setFont(f);
    paragraph.add(separator);
}