|
||||||||||
| 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
A record containing the necessary data for the font information
| Field Summary | |
static jxl.biff.FontRecord.Biff7 |
biff7
|
| Fields inherited from class jxl.biff.WritableRecordData |
maxRecordLength |
| Constructor Summary | |
protected |
FontRecord(Font f)
Publicly available copy constructor |
|
FontRecord(Record t,
WorkbookSettings ws)
Constructs this object from the raw data. |
|
FontRecord(Record t,
WorkbookSettings ws,
jxl.biff.FontRecord.Biff7 dummy)
Constructs this object from the raw data. |
protected |
FontRecord(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 | |
boolean |
equals(java.lang.Object o)
Standard equals method |
int |
getBoldWeight()
Gets the bold weight for this font |
Colour |
getColour()
Gets the colour for this font |
byte[] |
getData()
Gets the byte data for writing out |
int |
getFontIndex()
Accessor for the font index |
java.lang.String |
getName()
Gets the name of this font |
int |
getPointSize()
Gets the point size for this font, if the font hasn't been initialized |
ScriptStyle |
getScriptStyle()
Gets the script style |
UnderlineStyle |
getUnderlineStyle()
Gets the underline style for this font |
int |
hashCode()
Standard hash code method |
void |
initialize(int pos)
Sets the font index of this record. |
boolean |
isInitialized()
Accessor to see whether this object is initialized or not. |
boolean |
isItalic()
Returns the italic flag |
boolean |
isStruckout()
Accessor for the strike out flag |
protected void |
setFontBoldStyle(int bs)
Sets the bold style for this font, if the font hasn't been initialized |
protected void |
setFontColour(int c)
Sets the colour for this font, if the font hasn't been initialized |
protected void |
setFontItalic(boolean i)
Sets the italic indicator for this font, if the font hasn't been initialized |
protected void |
setFontPointSize(int ps)
Sets the point size for this font, if the font hasn't been initialized |
protected void |
setFontScriptStyle(int ss)
Sets the script style (eg. superscript, subscript) for this font, if the font hasn't been initialized |
protected void |
setFontStruckout(boolean os)
Sets the struck out flag |
protected void |
setFontUnderlineStyle(int us)
Sets the underline style for this font, if the font hasn't been initialized |
void |
uninitialize()
Resets the initialize flag. |
| 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 |
| Field Detail |
public static final jxl.biff.FontRecord.Biff7 biff7
| Constructor Detail |
protected FontRecord(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 styleci - the colour index
public FontRecord(Record t,
WorkbookSettings ws)
t - the raw dataws - the workbook settings
public FontRecord(Record t,
WorkbookSettings ws,
jxl.biff.FontRecord.Biff7 dummy)
t - the raw dataws - the workbook settingsdummy - dummy overloadprotected FontRecord(Font f)
f - the font to copy| Method Detail |
public byte[] getData()
getData in class WritableRecordDatapublic final boolean isInitialized()
public final void initialize(int pos)
pos - the position of this font in the workbooks font listpublic final void uninitialize()
public final int getFontIndex()
protected void setFontPointSize(int ps)
ps - the point sizepublic int getPointSize()
getPointSize in interface Fontprotected void setFontBoldStyle(int bs)
bs - the bold stylepublic int getBoldWeight()
getBoldWeight in interface Fontprotected void setFontItalic(boolean i)
i - the italic flagpublic boolean isItalic()
isItalic in interface Fontprotected void setFontUnderlineStyle(int us)
us - the underline stylepublic UnderlineStyle getUnderlineStyle()
getUnderlineStyle in interface Fontprotected void setFontColour(int c)
c - the colourpublic Colour getColour()
getColour in interface Fontprotected void setFontScriptStyle(int ss)
ss - the colourpublic ScriptStyle getScriptStyle()
getScriptStyle in interface Fontpublic java.lang.String getName()
getName in interface Fontpublic int hashCode()
public boolean equals(java.lang.Object o)
o - the object to compare
public boolean isStruckout()
isStruckout in interface Fontprotected void setFontStruckout(boolean os)
os - TRUE if the font is struck out, false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||