Package io.keikai.range.impl.imexp
Class BookHelper
java.lang.Object
io.keikai.range.impl.imexp.BookHelper
Helper for XSSF and HSSF book handling
- Author:
- Hawk, Kuro
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcolorToBackgroundHTML(org.apache.poi.ss.usermodel.Workbook book, org.apache.poi.ss.usermodel.Color color) static StringcolorToBorderHTML(org.apache.poi.ss.usermodel.Workbook book, org.apache.poi.ss.usermodel.Color color) static StringcolorToForegroundHTML(org.apache.poi.ss.usermodel.Workbook book, org.apache.poi.ss.usermodel.Color color) static StringcolorToHTML(org.apache.poi.ss.usermodel.Workbook book, org.apache.poi.ss.usermodel.Color color) static intgetColumnFreeze(org.apache.poi.ss.usermodel.Sheet sheet) gets the column freeze, 1 basestatic StringgetFontHTMLColor(org.apache.poi.ss.usermodel.Workbook book, org.apache.poi.ss.usermodel.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(org.apache.poi.ss.usermodel.Sheet sheet) gets the row freeze, 1 basestatic org.apache.poi.ss.usermodel.ColorHTMLToColor(org.apache.poi.ss.usermodel.Workbook book, String color) static booleanisFreezePane(org.apache.poi.ss.usermodel.Sheet sheet) static voidsetBottomBorderColor(org.apache.poi.ss.usermodel.CellStyle style, org.apache.poi.ss.usermodel.Color color) static voidsetFillBackgroundColor(org.apache.poi.ss.usermodel.CellStyle newCellStyle, org.apache.poi.ss.usermodel.Color xlsColor) static voidsetFillForegroundColor(org.apache.poi.ss.usermodel.CellStyle newCellStyle, org.apache.poi.ss.usermodel.Color xlsColor) static voidsetFontColor(org.apache.poi.ss.usermodel.Workbook book, org.apache.poi.ss.usermodel.Font font, org.apache.poi.ss.usermodel.Color color) static voidsetLeftBorderColor(org.apache.poi.ss.usermodel.CellStyle style, org.apache.poi.ss.usermodel.Color color) static voidsetRightBorderColor(org.apache.poi.ss.usermodel.CellStyle style, org.apache.poi.ss.usermodel.Color color) static voidsetTopBorderColor(org.apache.poi.ss.usermodel.CellStyle style, org.apache.poi.ss.usermodel.Color color) static StringtoHex(int num)
-
Field Details
-
AUTO_COLOR
- See Also:
-
SORT_NORMAL_DEFAULT
public static final int SORT_NORMAL_DEFAULT- See Also:
-
SORT_TEXT_AS_NUMBERS
public static final int SORT_TEXT_AS_NUMBERS- See Also:
-
SORT_HEADER_NO
public static final int SORT_HEADER_NO- See Also:
-
SORT_HEADER_YES
public static final int SORT_HEADER_YES- See Also:
-
-
Constructor Details
-
BookHelper
public BookHelper()
-
-
Method Details
-
getRowFreeze
public static int getRowFreeze(org.apache.poi.ss.usermodel.Sheet sheet) gets the row freeze, 1 base -
getColumnFreeze
public static int getColumnFreeze(org.apache.poi.ss.usermodel.Sheet sheet) gets the column freeze, 1 base -
isFreezePane
public static boolean isFreezePane(org.apache.poi.ss.usermodel.Sheet sheet) -
getFontHTMLColor
public static String getFontHTMLColor(org.apache.poi.ss.usermodel.Workbook book, org.apache.poi.ss.usermodel.Font font) -
colorToHTML
public static String colorToHTML(org.apache.poi.ss.usermodel.Workbook book, org.apache.poi.ss.usermodel.Color color) -
colorToBorderHTML
public static String colorToBorderHTML(org.apache.poi.ss.usermodel.Workbook book, org.apache.poi.ss.usermodel.Color color) -
colorToForegroundHTML
public static String colorToForegroundHTML(org.apache.poi.ss.usermodel.Workbook book, org.apache.poi.ss.usermodel.Color color) -
colorToBackgroundHTML
public static String colorToBackgroundHTML(org.apache.poi.ss.usermodel.Workbook book, org.apache.poi.ss.usermodel.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
-
setLeftBorderColor
public static void setLeftBorderColor(org.apache.poi.ss.usermodel.CellStyle style, org.apache.poi.ss.usermodel.Color color) -
setRightBorderColor
public static void setRightBorderColor(org.apache.poi.ss.usermodel.CellStyle style, org.apache.poi.ss.usermodel.Color color) -
setTopBorderColor
public static void setTopBorderColor(org.apache.poi.ss.usermodel.CellStyle style, org.apache.poi.ss.usermodel.Color color) -
setBottomBorderColor
public static void setBottomBorderColor(org.apache.poi.ss.usermodel.CellStyle style, org.apache.poi.ss.usermodel.Color color) -
HTMLToColor
public static org.apache.poi.ss.usermodel.Color HTMLToColor(org.apache.poi.ss.usermodel.Workbook book, String color) -
setFillForegroundColor
public static void setFillForegroundColor(org.apache.poi.ss.usermodel.CellStyle newCellStyle, org.apache.poi.ss.usermodel.Color xlsColor) -
setFillBackgroundColor
public static void setFillBackgroundColor(org.apache.poi.ss.usermodel.CellStyle newCellStyle, org.apache.poi.ss.usermodel.Color xlsColor) -
setFontColor
public static void setFontColor(org.apache.poi.ss.usermodel.Workbook book, org.apache.poi.ss.usermodel.Font font, org.apache.poi.ss.usermodel.Color color)
-