Example usage for com.lowagie.text.pdf PdfBorderDictionary PdfBorderDictionary

List of usage examples for com.lowagie.text.pdf PdfBorderDictionary PdfBorderDictionary

Introduction

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

Prototype


public PdfBorderDictionary(float borderWidth, int borderStyle, PdfDashPattern dashes) 

Source Link

Document

Constructs a PdfBorderDictionary.

Usage

From source file:org.eclipse.birt.report.engine.emitter.pdf.PDFPage.java

License:Open Source License

protected void showHelpText(float x, float y, float width, float height, String helpText) {
    Rectangle rectangle = new Rectangle(x, y, x + width, y + height);
    PdfAnnotation annotation = PdfAnnotation.createSquareCircle(writer, rectangle, helpText, true);
    PdfBorderDictionary borderStyle = new PdfBorderDictionary(0, PdfBorderDictionary.STYLE_SOLID, null);
    annotation.setBorderStyle(borderStyle);
    annotation.setFlags(288);/*from w w w .  j  ava2s .  co m*/
    writer.addAnnotation(annotation);
}