|
||||||||||
| 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.FontRecord
jxl.write.biff.WritableFontRecord
A writable Font record. This class intercepts any set accessor calls and throws and exception if the Font is already initialized
| Field Summary |
| Fields inherited from class jxl.biff.FontRecord |
biff7 |
| Fields inherited from class jxl.biff.WritableRecordData |
maxRecordLength |
| Constructor Summary | |
protected |
WritableFontRecord(Font f)
Publicly available copy constructor |
protected |
WritableFontRecord(java.lang.String fn,
int ps,
int bold,
boolean it,
int us,
int ci,
int ss)
Constructor, used when creating a new font for writing out. |
| Method Summary | |
protected void |
setBoldStyle(int boldStyle)
Sets the bold style for this font, if the font hasn't been initialized |
protected void |
setColour(int colour)
Sets the colour for this font, if the font hasn't been initialized |
protected void |
setItalic(boolean italic)
Sets the italic indicator for this font, if the font hasn't been initialized |
protected void |
setPointSize(int pointSize)
Sets the point size for this font, if the font hasn't been initialized |
protected void |
setScriptStyle(int scriptStyle)
Sets the script style (eg. superscript, subscript) for this font, if the font hasn't been initialized |
protected void |
setStruckout(boolean os)
Sets the struck out flag |
protected void |
setUnderlineStyle(int us)
Sets the underline style for this font, if the font hasn't been initialized |
| Methods inherited from class jxl.biff.FontRecord |
equals, getBoldWeight, getColour, getData, getFontIndex, getName, getPointSize, getScriptStyle, getUnderlineStyle, hashCode, initialize, isInitialized, isItalic, isStruckout, setFontBoldStyle, setFontColour, setFontItalic, setFontPointSize, setFontScriptStyle, setFontStruckout, setFontUnderlineStyle, uninitialize |
| 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, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected WritableFontRecord(java.lang.String fn,
int ps,
int bold,
boolean it,
int us,
int ci,
int ss)
bold - the bold indicatorps - the point sizeus - the underline stylefn - the nameit - italicised indicatorss - the script styleprotected WritableFontRecord(Font f)
| Method Detail |
protected void setPointSize(int pointSize)
throws WriteException
pointSize - the point size
WriteException, - if this font is already in use elsewhere
WriteException
protected void setBoldStyle(int boldStyle)
throws WriteException
boldStyle - the bold style
WriteException, - if this font is already in use elsewhere
WriteException
protected void setItalic(boolean italic)
throws WriteException
italic - the italic flag
WriteException, - if this font is already in use elsewhere
WriteException
protected void setUnderlineStyle(int us)
throws WriteException
us - the underline style
WriteException, - if this font is already in use elsewhere
WriteException
protected void setColour(int colour)
throws WriteException
colour - the colour
WriteException, - if this font is already in use elsewhere
WriteException
protected void setScriptStyle(int scriptStyle)
throws WriteException
scriptStyle - the colour
WriteException, - if this font is already in use elsewhere
WriteException
protected void setStruckout(boolean os)
throws WriteException
WriteException, - if this font is already in use elsewhere
WriteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||