Example usage for com.lowagie.text.pdf PdfAnnotation setFlags

List of usage examples for com.lowagie.text.pdf PdfAnnotation setFlags

Introduction

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

Prototype

public void setFlags(int flags) 

Source Link

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);
    writer.addAnnotation(annotation);//from www  .jav a  2 s  .com
}