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

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

Introduction

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

Prototype


public short getAdtlDiag() 

Source Link

Document

get for diagonal borders?

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);/*  w  w  w  .  j  a  va  2  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());
}