Package io.keikai.range.impl.imexp
Class BookHelper
- java.lang.Object
-
- io.keikai.range.impl.imexp.BookHelper
-
public final class BookHelper extends java.lang.ObjectHelper for XSSF and HSSF book handling- Author:
- Hawk, Kuro
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAUTO_COLORstatic intSORT_HEADER_NOstatic intSORT_HEADER_YESstatic intSORT_NORMAL_DEFAULTstatic intSORT_TEXT_AS_NUMBERS
-
Constructor Summary
Constructors Constructor Description BookHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringcolorToBackgroundHTML(Workbook book, Color color)static java.lang.StringcolorToBorderHTML(Workbook book, Color color)static java.lang.StringcolorToForegroundHTML(Workbook book, Color color)static java.lang.StringcolorToHTML(Workbook book, Color color)static intgetColumnFreeze(Sheet sheet)gets the column freeze, 1 basestatic java.lang.StringgetFontHTMLColor(Workbook book, Font font)static byte[]getRgbWithSchemeHueMod(byte[] rgb, double hueMod)static byte[]getRgbWithSchemeLum(byte[] rgb, double newLum)static byte[]getRgbWithSchemeLumMod(byte[] rgb, double lumMod)static byte[]getRgbWithSchemeLumOff(byte[] rgb, double lumOff)static byte[]getRgbWithSchemeSat(byte[] rgb, double newSat)static byte[]getRgbWithSchemeSatMod(byte[] rgb, double satMod)static byte[]getRgbWithSchemeSatOff(byte[] rgb, double satOff)static byte[]getRgbWithSchemeShade(byte[] rgb, double shade)static byte[]getRgbWithSchemeTint(byte[] rgb, double tint)static byte[]getRgbWithTint(byte[] rgb, double tint)static intgetRowFreeze(Sheet sheet)gets the row freeze, 1 basestatic ColorHTMLToColor(Workbook book, java.lang.String color)static booleanisFreezePane(Sheet sheet)static voidsetBottomBorderColor(CellStyle style, Color color)static voidsetFillBackgroundColor(CellStyle newCellStyle, Color xlsColor)static voidsetFillForegroundColor(CellStyle newCellStyle, Color xlsColor)static voidsetFontColor(Workbook book, Font font, Color color)static voidsetLeftBorderColor(CellStyle style, Color color)static voidsetRightBorderColor(CellStyle style, Color color)static voidsetTopBorderColor(CellStyle style, Color color)static java.lang.StringtoHex(int num)
-
-
-
Field Detail
-
AUTO_COLOR
public static final java.lang.String AUTO_COLOR
- See Also:
- Constant Field Values
-
SORT_NORMAL_DEFAULT
public static final int SORT_NORMAL_DEFAULT
- See Also:
- Constant Field Values
-
SORT_TEXT_AS_NUMBERS
public static final int SORT_TEXT_AS_NUMBERS
- See Also:
- Constant Field Values
-
SORT_HEADER_NO
public static final int SORT_HEADER_NO
- See Also:
- Constant Field Values
-
SORT_HEADER_YES
public static final int SORT_HEADER_YES
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRowFreeze
public static int getRowFreeze(Sheet sheet)
gets the row freeze, 1 base
-
getColumnFreeze
public static int getColumnFreeze(Sheet sheet)
gets the column freeze, 1 base
-
isFreezePane
public static boolean isFreezePane(Sheet sheet)
-
colorToForegroundHTML
public static java.lang.String colorToForegroundHTML(Workbook book, Color color)
-
colorToBackgroundHTML
public static java.lang.String colorToBackgroundHTML(Workbook book, Color color)
-
getRgbWithSchemeTint
public static byte[] getRgbWithSchemeTint(byte[] rgb, double tint)
-
getRgbWithSchemeShade
public static byte[] getRgbWithSchemeShade(byte[] rgb, double shade)
-
getRgbWithSchemeHueMod
public static byte[] getRgbWithSchemeHueMod(byte[] rgb, double hueMod)
-
getRgbWithSchemeSat
public static byte[] getRgbWithSchemeSat(byte[] rgb, double newSat)
-
getRgbWithSchemeSatOff
public static byte[] getRgbWithSchemeSatOff(byte[] rgb, double satOff)
-
getRgbWithSchemeSatMod
public static byte[] getRgbWithSchemeSatMod(byte[] rgb, double satMod)
-
getRgbWithSchemeLum
public static byte[] getRgbWithSchemeLum(byte[] rgb, double newLum)
-
getRgbWithSchemeLumOff
public static byte[] getRgbWithSchemeLumOff(byte[] rgb, double lumOff)
-
getRgbWithSchemeLumMod
public static byte[] getRgbWithSchemeLumMod(byte[] rgb, double lumMod)
-
getRgbWithTint
public static byte[] getRgbWithTint(byte[] rgb, double tint)
-
toHex
public static java.lang.String toHex(int num)
-
setFillForegroundColor
public static void setFillForegroundColor(CellStyle newCellStyle, Color xlsColor)
-
setFillBackgroundColor
public static void setFillBackgroundColor(CellStyle newCellStyle, Color xlsColor)
-
-