use of org.apache.poi.ss.usermodel.IndexedColors in project poi by apache.
the class XSSFSheet method setTabColor.
/**
* Set background color of the sheet tab
*
* @param colorIndex the indexed color to set, must be a constant from {@link org.apache.poi.ss.usermodel.IndexedColors}
* @deprecated 3.15-beta2. Removed in 3.17. Use {@link #setTabColor(XSSFColor)}.
*/
@Deprecated
@Removal(version = "3.17")
public void setTabColor(int colorIndex) {
IndexedColors indexedColor = IndexedColors.fromInt(colorIndex);
XSSFColor color = new XSSFColor(indexedColor, getWorkbook().getStylesSource().getIndexedColors());
setTabColor(color);
}
Aggregations