Example usage for com.lowagie.text.rtf.table RtfBorder BORDER_ENGRAVE

List of usage examples for com.lowagie.text.rtf.table RtfBorder BORDER_ENGRAVE

Introduction

In this page you can find the example usage for com.lowagie.text.rtf.table RtfBorder BORDER_ENGRAVE.

Prototype

int BORDER_ENGRAVE

To view the source code for com.lowagie.text.rtf.table RtfBorder BORDER_ENGRAVE.

Click Source Link

Document

Constant for an engraved border

Usage

From source file:org.pentaho.reporting.engine.classic.core.modules.output.table.rtf.helper.RTFPrinter.java

License:Open Source License

private int translateBorderStyle(final BorderStyle borderStyle) {
    if (BorderStyle.DASHED.equals(borderStyle)) {
        return RtfBorder.BORDER_DASHED;
    }//ww  w. ja va  2s.  com
    if (BorderStyle.DOT_DASH.equals(borderStyle)) {
        return RtfBorder.BORDER_DOT_DASH;
    }
    if (BorderStyle.DOT_DOT_DASH.equals(borderStyle)) {
        return RtfBorder.BORDER_DOT_DOT_DASH;
    }
    if (BorderStyle.DOTTED.equals(borderStyle)) {
        return RtfBorder.BORDER_DOTTED;
    }
    if (BorderStyle.DOUBLE.equals(borderStyle)) {
        return RtfBorder.BORDER_DOUBLE;
    }
    if (BorderStyle.HIDDEN.equals(borderStyle)) {
        return RtfBorder.BORDER_NONE;
    }
    if (BorderStyle.NONE.equals(borderStyle)) {
        return RtfBorder.BORDER_NONE;
    }
    if (BorderStyle.GROOVE.equals(borderStyle)) {
        return RtfBorder.BORDER_ENGRAVE;
    }
    if (BorderStyle.RIDGE.equals(borderStyle)) {
        return RtfBorder.BORDER_EMBOSS;
    }
    if (BorderStyle.INSET.equals(borderStyle)) {
        return RtfBorder.BORDER_SINGLE;
    }
    if (BorderStyle.OUTSET.equals(borderStyle)) {
        return RtfBorder.BORDER_SINGLE;
    }
    if (BorderStyle.SOLID.equals(borderStyle)) {
        return RtfBorder.BORDER_SINGLE;
    }
    if (BorderStyle.WAVE.equals(borderStyle)) {
        return RtfBorder.BORDER_WAVY;
    }
    return RtfBorder.BORDER_NONE;
}