|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjxl.biff.FormattingRecords
The list of XF records and formatting records for the workbook
| Constructor Summary | |
FormattingRecords(Fonts f)
Constructor |
|
| Method Summary | |
void |
addFormat(DisplayFormat fr)
Adds a cell format to the hash map, keyed on its index. |
void |
addStyle(XFRecord xf)
Adds an extended formatting record to the list. |
RGB |
getColourRGB(Colour c)
Accessor for the RGB value for the specified colour |
java.text.DateFormat |
getDateFormat(int pos)
Gets the DateFormat used to format the cell. |
protected Fonts |
getFonts()
Accessor for the fonts used by this workbook |
java.text.NumberFormat |
getNumberFormat(int pos)
Gets the NumberFormat used to format the cell. |
protected int |
getNumberOfFormatRecords()
Gets the number of formatting records on the list. |
PaletteRecord |
getPalette()
Accessor for the colour palette |
XFRecord |
getXFRecord(int index)
Gets the XFRecord for the specified index. |
boolean |
isDate(int pos)
Sees if the extended formatting record at the specified position represents a date. |
IndexMapping |
rationalize(IndexMapping fontMapping,
IndexMapping formatMapping)
Rationalizes the cell formats. |
IndexMapping |
rationalizeDisplayFormats()
Rationalizes the display formats. |
IndexMapping |
rationalizeFonts()
Rationalizes all the fonts, removing duplicate entries |
void |
setColourRGB(Colour c,
int r,
int g,
int b)
Sets the RGB value for the specified colour for this workbook |
void |
setPalette(PaletteRecord pr)
Called from the WorkbookParser to set the colour palette |
void |
write(File outputFile)
Writes out all the format records and the XF records |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FormattingRecords(Fonts f)
f - the container for the fonts| Method Detail |
public final void addStyle(XFRecord xf)
throws NumFormatRecordsException
xf - the xf record to add
NumFormatRecordsException
public final void addFormat(DisplayFormat fr)
throws NumFormatRecordsException
fr - the format record
NumFormatRecordsExceptionpublic final boolean isDate(int pos)
pos - the xf format index
public final java.text.DateFormat getDateFormat(int pos)
pos - the xf format index
public final java.text.NumberFormat getNumberFormat(int pos)
pos - the xf format index
public void write(File outputFile)
throws java.io.IOException
outputFile - the file to write to
java.io.IOExceptionprotected final Fonts getFonts()
public final XFRecord getXFRecord(int index)
index - the XF record to retrieve
protected final int getNumberOfFormatRecords()
public IndexMapping rationalizeFonts()
public IndexMapping rationalize(IndexMapping fontMapping,
IndexMapping formatMapping)
fontMapping - the font mapping index numbersformatMapping - the format mapping index numbers
public IndexMapping rationalizeDisplayFormats()
public PaletteRecord getPalette()
public void setPalette(PaletteRecord pr)
pr - the palette
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||