|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.hssf.usermodel.HSSFPalette
Represents a workbook color palette. Internally, the XLS format refers to colors using an offset into the palette record. Thus, the first color in the palette has the index 0x8, the second has the index 0x9, etc. through 0x40
Constructor Summary | |
protected |
HSSFPalette(PaletteRecord palette)
|
Method Summary | |
HSSFColor |
findColor(byte red,
byte green,
byte blue)
Finds the first occurance of a given color |
HSSFColor |
getColor(short index)
Retrieves the color at a given index |
void |
setColorAtIndex(short index,
byte red,
byte green,
byte blue)
Sets the color at the given offset |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected HSSFPalette(PaletteRecord palette)
Method Detail |
public HSSFColor getColor(short index)
index
- the palette index, between 0x8 to 0x40 inclusive
public HSSFColor findColor(byte red, byte green, byte blue)
red
- the RGB red component, between 0 and 255 inclusivegreen
- the RGB green component, between 0 and 255 inclusiveblue
- the RGB blue component, between 0 and 255 inclusive
public void setColorAtIndex(short index, byte red, byte green, byte blue)
index
- the palette index, between 0x8 to 0x40 inclusivered
- the RGB red component, between 0 and 255 inclusivegreen
- the RGB green component, between 0 and 255 inclusiveblue
- the RGB blue component, between 0 and 255 inclusive
|
jakarta-poi 1.10.0-dev | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |