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

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

Introduction

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

Prototype


public short getAdtlDiagLineStyle() 

Source Link

Document

get the diagonal border line style?

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);//from w ww  .  j  ava 2 s  . co  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());
}