Example usage for org.apache.poi.hssf.record ExtendedFormatRecord getDiag

List of usage examples for org.apache.poi.hssf.record ExtendedFormatRecord getDiag

Introduction

In this page you can find the example usage for org.apache.poi.hssf.record ExtendedFormatRecord getDiag.

Prototype


public short getDiag() 

Source Link

Document

Not sure what this is for (maybe fill lines?) 1 = down, 2 = up, 3 = both, 0 for none..

Usage

From source file:fr.amapj.service.engine.generator.excel.samples.DiagonalBorder.java

License:Open Source License

private void displayCell(Cell cell) throws Exception {

    CellStyle style = cell.getCellStyle();

    Field f = HSSFCellStyle.class.getDeclaredField("_format");
    f.setAccessible(true);/* ww w.  ja v  a2  s  .c o  m*/

    ExtendedFormatRecord efr = (ExtendedFormatRecord) f.get(style);

    System.out.println("getAdtlDiag=" + efr.getAdtlDiag());
    System.out.println("getDiag=" + efr.getDiag());
    System.out.println("getAdtlDiagLineStyle=" + efr.getAdtlDiagLineStyle());
    System.out.println("isIndentNotParentBorder=" + efr.isIndentNotParentBorder());
}