| Modifier and Type | Class and Description |
|---|---|
| private static class | PaletteRecord.
PColor - element in the list of colors |
| Modifier and Type | Field and Description |
|---|---|
| private final ArrayList | |
| private static final int[] | |
| public static final short | FIRST_COLOR_INDEX
The byte index of the first color |
| public static final short | |
| public static final byte | STANDARD_PALETTE_SIZE
The standard size of an XLS palette |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public PaletteRecord | copy()
Implements abstract org. Implements org.
|
| public byte[] | Returns: the RGB triplet for the color, ornull if the specified index
does not existpalette index, must be >= 0x8 byteIndex)Returns the color value at a given index |
| protected int | |
| public Map | |
| public HSSFRecordTypes | getGenericRecordType()
Overrides default org. Implements abstract org.
|
| public short | getSid()
Implements abstract org. return the non static version of the id for this record. |
| public void | serialize(LittleEndianOutput
the output object out)Implements abstract org. Write the data content of this BIFF record. |
| public void | setColor(short
the index to set; if this index is less than 0x8 or greater than
0x40, then no modification is made byteIndex, byte the red color part red, byte the green color part green, byte the blue color part blue)Sets the color value at a given index If the given index is greater than the current last color index, then black is inserted at every index required to make the palette continuous. |
| _colors | back to summary |
|---|---|
| private final ArrayList<PaletteRecord. | |
| DEFAULT_COLORS | back to summary |
|---|---|
| private static final int[] DEFAULT_COLORS | |
| FIRST_COLOR_INDEX | back to summary |
|---|---|
| public static final short FIRST_COLOR_INDEX The byte index of the first color | |
| sid | back to summary |
|---|---|
| public static final short sid | |
| STANDARD_PALETTE_SIZE | back to summary |
|---|---|
| public static final byte STANDARD_PALETTE_SIZE The standard size of an XLS palette | |
| PaletteRecord | back to summary |
|---|---|
| public PaletteRecord() | |
| PaletteRecord | back to summary |
|---|---|
| public PaletteRecord(PaletteRecord other) | |
| PaletteRecord | back to summary |
|---|---|
| public PaletteRecord(RecordInputStream in) | |
| copy | back to summary |
|---|---|
| public PaletteRecord copy() Implements abstract org. Implements org.
| |
| getColor | back to summary |
|---|---|
| public byte[] getColor(int byteIndex) Returns the color value at a given index
| |
| getDataSize | back to summary |
|---|---|
| protected int getDataSize() Implements abstract org.
| |
| getGenericProperties | back to summary |
|---|---|
| public Map Implements org.
| |
| getGenericRecordType | back to summary |
|---|---|
| public HSSFRecordTypes getGenericRecordType() Overrides default org. Implements abstract org.
| |
| getSid | back to summary |
|---|---|
| public short getSid() Implements abstract org. Doc from org. return the non static version of the id for this record.
| |
| serialize | back to summary |
|---|---|
| public void serialize(LittleEndianOutput out) Implements abstract org. Doc from org. Write the data content of this BIFF record. The 'ushort sid' and 'ushort size' header fields have already been written by the superclass.
The number of bytes written must equal the record size reported by
| |
| setColor | back to summary |
|---|---|
| public void setColor(short byteIndex, byte red, byte green, byte blue) Sets the color value at a given index If the given index is greater than the current last color index, then black is inserted at every index required to make the palette continuous.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final int | |
| private final int | |
| public static final short |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Map | |
| pack-priv byte[] | |
| pack-priv void |
| _blue | back to summary |
|---|---|
| private final int _blue | |
| _green | back to summary |
|---|---|
| private final int _green | |
| _red | back to summary |
|---|---|
| private final int _red | |
| ENCODED_SIZE | back to summary |
|---|---|
| public static final short ENCODED_SIZE | |
| PColor | back to summary |
|---|---|
| pack-priv PColor(int rgb) | |
| PColor | back to summary |
|---|---|
| pack-priv PColor(int red, int green, int blue) | |
| PColor | back to summary |
|---|---|
| pack-priv PColor(PaletteRecord. | |
| PColor | back to summary |
|---|---|
| pack-priv PColor(RecordInputStream in) | |
| getGenericProperties | back to summary |
|---|---|
| public Map Implements org.
| |
| getTriplet | back to summary |
|---|---|
| pack-priv byte[] getTriplet() | |
| serialize | back to summary |
|---|---|
| pack-priv void serialize(LittleEndianOutput out) | |