public enum ExcelColorPalette extends Enum<ExcelColorPalette>
| Modifier and Type | Method and Description |
|---|---|
static ExcelColorPalette |
fromHex(String hex)
Finds a palette color by its hexadecimal representation.
|
static ExcelColorPalette |
fromIndex(int index)
Finds a palette color by its index.
|
static ExcelColorPalette |
fromRgb(int red,
int green,
int blue)
Finds a palette color by its RGB components.
|
Integer |
getBlue()
Gets the blue component of the color.
|
String |
getDescription()
Gets the description of the color.
|
ExcelColor |
getExcelColor()
Gets the ExcelColor instance for this palette color.
|
Integer |
getGreen()
Gets the green component of the color.
|
String |
getHex()
Gets the color as a hexadecimal string (e.g., "#RRGGBB").
|
Integer |
getIndex()
Gets the Excel color palette index.
|
Integer |
getRed()
Gets the red component of the color.
|
Integer |
getRgb()
Gets the RGB value as a single integer (0xRRGGBB format).
|
static ExcelColorPalette |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExcelColorPalette[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExcelColorPalette BLACK1
public static final ExcelColorPalette WHITE1
public static final ExcelColorPalette RED1
public static final ExcelColorPalette BRIGHT_GREEN1
public static final ExcelColorPalette BLUE1
public static final ExcelColorPalette YELLOW1
public static final ExcelColorPalette PINK1
public static final ExcelColorPalette TURQUOISE1
public static final ExcelColorPalette BLACK
public static final ExcelColorPalette WHITE
public static final ExcelColorPalette RED
public static final ExcelColorPalette BRIGHT_GREEN
public static final ExcelColorPalette BLUE
public static final ExcelColorPalette YELLOW
public static final ExcelColorPalette PINK
public static final ExcelColorPalette TURQUOISE
public static final ExcelColorPalette DARK_RED
public static final ExcelColorPalette GREEN
public static final ExcelColorPalette DARK_BLUE
public static final ExcelColorPalette DARK_YELLOW
public static final ExcelColorPalette VIOLET
public static final ExcelColorPalette TEAL
public static final ExcelColorPalette GREY_25_PERCENT
public static final ExcelColorPalette GREY_50_PERCENT
public static final ExcelColorPalette CORNFLOWER_BLUE
public static final ExcelColorPalette MAROON
public static final ExcelColorPalette LEMON_CHIFFON
public static final ExcelColorPalette LIGHT_TURQUOISE1
public static final ExcelColorPalette ORCHID
public static final ExcelColorPalette CORAL
public static final ExcelColorPalette ROYAL_BLUE
public static final ExcelColorPalette LIGHT_CORNFLOWER_BLUE
public static final ExcelColorPalette SKY_BLUE
public static final ExcelColorPalette LIGHT_TURQUOISE
public static final ExcelColorPalette LIGHT_GREEN
public static final ExcelColorPalette LIGHT_YELLOW
public static final ExcelColorPalette PALE_BLUE
public static final ExcelColorPalette ROSE
public static final ExcelColorPalette LAVENDER
public static final ExcelColorPalette TAN
public static final ExcelColorPalette LIGHT_BLUE
public static final ExcelColorPalette AQUA
public static final ExcelColorPalette LIME
public static final ExcelColorPalette GOLD
public static final ExcelColorPalette LIGHT_ORANGE
public static final ExcelColorPalette ORANGE
public static final ExcelColorPalette BLUE_GREY
public static final ExcelColorPalette GREY_40_PERCENT
public static final ExcelColorPalette DARK_TEAL
public static final ExcelColorPalette SEA_GREEN
public static final ExcelColorPalette DARK_GREEN
public static final ExcelColorPalette OLIVE_GREEN
public static final ExcelColorPalette BROWN
public static final ExcelColorPalette PLUM
public static final ExcelColorPalette INDIGO
public static final ExcelColorPalette GREY_80_PERCENT
public static final ExcelColorPalette AUTOMATIC
public static ExcelColorPalette[] values()
for (ExcelColorPalette c : ExcelColorPalette.values()) System.out.println(c);
public static ExcelColorPalette valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Integer getIndex()
public Integer getRed()
public Integer getGreen()
public Integer getBlue()
public String getDescription()
public Integer getRgb()
public String getHex()
public ExcelColor getExcelColor()
public static ExcelColorPalette fromIndex(int index)
index - the palette index to search forpublic static ExcelColorPalette fromRgb(int red, int green, int blue)
red - the red component (0-255)green - the green component (0-255)blue - the blue component (0-255)public static ExcelColorPalette fromHex(String hex)
hex - the hex color string (e.g., "#RRGGBB" or "RRGGBB")Copyright (c) 2006-2026 North Concepts Inc. All Rights Reserved.