Package io.keikai.api

Interface Range.CellStyleHelper

  • Enclosing interface:
    Range

    public static interface Range.CellStyleHelper
    a cell style helper to create style relative object for cell
    Author:
    dennis
    • Method Detail

      • builder

        CellStyle.Builder builder​(CellStyle src)
        create a new cell style builder and clone attribute from src if it is not null
        Parameters:
        src - the source to clone, could be null
        Returns:
        the new cell style
        Since:
        5.3.0
      • createCellStyle

        @Deprecated
        EditableCellStyle createCellStyle​(CellStyle src)
        Deprecated.
        As if release 5.3.0, replaced by builder(CellStyle) to create an immutable cell style
        create a new cell style and clone attribute from src if it is not null
        Parameters:
        src - the source to clone, could be null
        Returns:
        the new cell style
      • createFont

        @Deprecated
        EditableFont createFont​(Font src)
        Deprecated.
        As if release 5.3.0, replaced by builder(CellStyle) to create an immutable font
        create a new font and clone attribute from src if it is not null
        Parameters:
        src - the source to clone, could be null
        Returns:
        the new font
      • createColorFromHtmlColor

        Color createColorFromHtmlColor​(String htmlColor)
        create a color object from a htmlColor expression
        Parameters:
        htmlColor - html color expression, ex. #FF00FF
        Returns:
        a Color object
      • findFont

        @Deprecated
        Font findFont​(Font.Boldweight boldweight,
                      Color color,
                      int fontHeight,
                      String fontName,
                      boolean italic,
                      boolean strikeout,
                      Font.TypeOffset typeOffset,
                      Font.Underline underline)
        Deprecated.
        As if release 5.3.0, replaced by builder(CellStyle) to create an immutable font
        find the font with given condition
        Parameters:
        boldweight -
        color -
        fontHeight -
        fontName -
        italic -
        strikeout -
        typeOffset -
        underline -
        Returns:
        null if not found
      • isAvailable

        boolean isAvailable​(CellStyle style)
        Check if this style still available