| Modifier and Type | Field and Description |
|---|---|
| private ExtendedColor |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | |
| protected ExtendedColor | |
| public short | |
| protected byte[] | |
| public byte[] | |
| protected byte[] | |
| public int | |
| public double | getTint()
Implements abstract org. Specifies the tint value applied to the ctColor. |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | setRGB(byte[]
bytes rgb)Implements abstract org. Sets the Red Green Blue or Alpha Red Green Blue |
| public void | setTint(double
the tint value tint)Implements abstract org. Specifies the tint value applied to the ctColor. |
| color | back to summary |
|---|---|
| private ExtendedColor color | |
| HSSFExtendedColor | back to summary |
|---|---|
| public HSSFExtendedColor(ExtendedColor color) | |
| getARGB | back to summary |
|---|---|
| public byte[] getARGB() Implements abstract org.
| |
| getExtendedColor | back to summary |
|---|---|
| protected ExtendedColor getExtendedColor() | |
| getIndex | back to summary |
|---|---|
| public short getIndex() Implements abstract org.
| |
| getIndexedRGB | back to summary |
|---|---|
| protected byte[] getIndexedRGB() Implements abstract org.
| |
| getRGB | back to summary |
|---|---|
| public byte[] getRGB() Implements abstract org.
| |
| getStoredRGB | back to summary |
|---|---|
| protected byte[] getStoredRGB() Implements abstract org.
| |
| getTheme | back to summary |
|---|---|
| public int getTheme() Implements abstract org.
| |
| getTint | back to summary |
|---|---|
| public double getTint() Implements abstract org. Doc from org. Specifies the tint value applied to the ctColor. If tint is supplied, then it is applied to the RGB value of the ctColor to determine the final ctColor applied. The tint value is stored as a double from -1.0 .. 1.0, where -1.0 means 100% darken and 1.0 means 100% lighten. Also, 0.0 means no change. In loading the RGB value, it is converted to HLS where HLS values are (0..HLSMAX), where HLSMAX is currently 255. Here are some examples of how to apply tint to ctColor:If (tint < 0) Lum' = Lum * (1.0 + tint) For example: Lum = 200; tint = -0.5; Darken 50% Lum' = 200 * (0.5) => 100 For example: Lum = 200; tint = -1.0; Darken 100% (make black) Lum' = 200 * (1.0-1.0) => 0 If (tint > 0) Lum' = Lum * (1.0-tint) + (HLSMAX - HLSMAX * (1.0-tint)) For example: Lum = 100; tint = 0.75; Lighten 75% Lum' = 100 * (1-.75) + (HLSMAX - HLSMAX*(1-.75)) = 100 * .25 + (255 - 255 * .25) = 25 + (255 - 63) = 25 + 192 = 217 For example: Lum = 100; tint = 1.0; Lighten 100% (make white) Lum' = 100 * (1-1) + (HLSMAX - HLSMAX*(1-1)) = 100 * 0 + (255 - 255 * 0) = 0 + (255 - 0) = 255
| |
| isAuto | back to summary |
|---|---|
| public boolean isAuto() Implements abstract org.
| |
| isIndexed | back to summary |
|---|---|
| public boolean isIndexed() Implements abstract org.
| |
| isRGB | back to summary |
|---|---|
| public boolean isRGB() Implements abstract org.
| |
| isThemed | back to summary |
|---|---|
| public boolean isThemed() Implements abstract org.
| |
| setRGB | back to summary |
|---|---|
| public void setRGB(byte[] rgb) Implements abstract org. Doc from org. Sets the Red Green Blue or Alpha Red Green Blue
| |
| setTint | back to summary |
|---|---|
| public void setTint(double tint) Implements abstract org. Doc from org. Specifies the tint value applied to the ctColor. If tint is supplied, then it is applied to the RGB value of the ctColor to determine the final ctColor applied. The tint value is stored as a double from -1.0 .. 1.0, where -1.0 means 100% darken and 1.0 means 100% lighten. Also, 0.0 means no change. In loading the RGB value, it is converted to HLS where HLS values are (0..HLSMAX), where HLSMAX is currently 255. Here are some examples of how to apply tint to ctColor:If (tint < 0) Lum' = Lum * (1.0 + tint) For example: Lum = 200; tint = -0.5; Darken 50% Lum' = 200 * (0.5) => 100 For example: Lum = 200; tint = -1.0; Darken 100% (make black) Lum' = 200 * (1.0-1.0) => 0 If (tint > 0) Lum' = Lum * (1.0-tint) + (HLSMAX - HLSMAX * (1.0-tint)) For example: Lum = 100; tint = 0.75; Lighten 75% Lum' = 100 * (1-.75) + (HLSMAX - HLSMAX*(1-.75)) = 100 * .25 + (255 - 255 * .25) = 25 + (255 - 63) = 25 + 192 = 217 For example: Lum = 100; tint = 1.0; Lighten 100% (make white) Lum' = 100 * (1-1) + (HLSMAX - HLSMAX*(1-1)) = 100 * 0 + (255 - 255 * 0) = 0 + (255 - 0) = 255
| |