Example usage for com.itextpdf.kernel.pdf.canvas PdfCanvas setLineCapStyle

List of usage examples for com.itextpdf.kernel.pdf.canvas PdfCanvas setLineCapStyle

Introduction

In this page you can find the example usage for com.itextpdf.kernel.pdf.canvas PdfCanvas setLineCapStyle.

Prototype

public PdfCanvas setLineCapStyle(int lineCapStyle) 

Source Link

Document

Sets the line cap style, the shape to be used at the ends of open subpaths when they are stroked.

Usage

From source file:cl.a2r.wsmicampov2.pdf.Dotted.java

public void applyLineDash(PdfCanvas canvas) {
    canvas.setLineCapStyle(PdfCanvasConstants.LineCapStyle.ROUND);
    canvas.setLineDash(0, 4, 2);
}