Example usage for org.apache.poi.ss.usermodel Font getStrikeout

List of usage examples for org.apache.poi.ss.usermodel Font getStrikeout

Introduction

In this page you can find the example usage for org.apache.poi.ss.usermodel Font getStrikeout.

Prototype


boolean getStrikeout();

Source Link

Document

get whether to use a strikeout horizontal line through the text or not

Usage

From source file:ru.icc.cells.ssdc.DataLoader.java

License:Apache License

private void fillFont(CFont font, Font excelFont) {
    font.setName(excelFont.getFontName());

    // TODO    CFont font
    //font.setColor( excelFont.getColor() );

    font.setHeight(excelFont.getFontHeight());
    font.setHeightInPoints(excelFont.getFontHeightInPoints());

    // TODO ?  ? Boldweight, ?? ? ? 
    short boldWeight = excelFont.getBoldweight();
    if (boldWeight >= 700)
        font.setBold(true);/*ww  w.  jav a 2  s  .c o m*/

    font.setItalic(excelFont.getItalic());
    font.setStrikeout(excelFont.getStrikeout());

    byte underline = excelFont.getUnderline();
    if (underline != Font.U_NONE)
        font.setUnderline(true);
    if (underline == Font.U_DOUBLE || underline == Font.U_DOUBLE_ACCOUNTING)
        font.setDoubleUnderline(true);
}