|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjxl.biff.RecordData
jxl.biff.WritableRecordData
jxl.biff.PaletteRecord
A record representing the RGB colour palette
| Field Summary |
| Fields inherited from class jxl.biff.WritableRecordData |
maxRecordLength |
| Constructor Summary | |
PaletteRecord()
Default constructor - used when there is no palette specified |
|
PaletteRecord(Record t)
Constructor |
|
| Method Summary | |
RGB |
getColourRGB(Colour c)
Gets the colour RGB from the palette |
byte[] |
getData()
Accessor for the binary data - used when copying |
boolean |
isDirty()
Accessor for the dirty flag, which indicates if this palette has been modified |
void |
setColourRGB(Colour c,
int r,
int g,
int b)
Sets the RGB value for the specified colour for this workbook |
| Methods inherited from class jxl.biff.WritableRecordData |
getBytes |
| Methods inherited from class jxl.biff.RecordData |
getCode, getRecord |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PaletteRecord(Record t)
t - the raw bytespublic PaletteRecord()
| Method Detail |
public byte[] getData()
getData in class WritableRecordDatapublic boolean isDirty()
public void setColourRGB(Colour c,
int r,
int g,
int b)
c - the colour whose RGB value is to be overwrittenr - the red portion to set (0-255)g - the green portion to set (0-255)b - the blue portion to set (0-255)public RGB getColourRGB(Colour c)
c - the colour
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||