Example usage for com.lowagie.text.pdf PdfContentByte eoFillStroke

List of usage examples for com.lowagie.text.pdf PdfContentByte eoFillStroke

Introduction

In this page you can find the example usage for com.lowagie.text.pdf PdfContentByte eoFillStroke.

Prototype


public void eoFillStroke() 

Source Link

Document

Fills the path, using the even-odd rule to determine the region to fill and strokes it.

Usage

From source file:org.mapfish.print.map.renderers.vector.PolygonRenderer.java

License:Open Source License

protected void renderImpl(RenderingContext context, PdfContentByte dc, PJsonObject style, Polygon geometry) {
    PdfGState state = new PdfGState();
    applyStyle(context, dc, style, state);
    dc.setGState(state);/* w  w w.j  a  v  a  2 s  .  co  m*/

    final LineString ring = geometry.getExteriorRing();
    renderRing(dc, ring);
    for (int i = 0; i < geometry.getNumInteriorRing(); ++i) {
        renderRing(dc, geometry.getInteriorRingN(i));
    }
    dc.eoFillStroke();
}