Search in sources :

Example 1 with IndexedColors

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);
}
Also used : IndexedColors(org.apache.poi.ss.usermodel.IndexedColors) Removal(org.apache.poi.util.Removal)

Aggregations

IndexedColors (org.apache.poi.ss.usermodel.IndexedColors)1 Removal (org.apache.poi.util.Removal)1