|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jxl.biff.RecordData | +--jxl.biff.WritableRecordData | +--jxl.biff.FontRecord
A record containing the necessary data for the font information
Inner Class Summary | |
private static class |
FontRecord.Biff7
Dummy indicators for overloading the constructor |
Field Summary | |
static FontRecord.Biff7 |
biff7
|
private int |
boldWeight
The bold weight for this font (normal or bold) |
private byte |
characterSet
The character set |
private int |
colourIndex
The index into the colour palette |
private byte |
fontFamily
The font family |
private int |
fontIndex
The index of this font in the font list |
private boolean |
initialized
Flag to indicate whether the derived data (such as the font index) has been initialized or not |
private boolean |
italic
Indicates whether or not this font is italic |
private java.lang.String |
name
The name of this font |
private int |
pointHeight
The point height of this font |
private int |
scriptStyle
The style of the script (italic or normal) |
private boolean |
struckout
Indicates whether or not this font is struck out |
private int |
underlineStyle
The underline style for this font (none, single, double etc) |
Fields inherited from class jxl.biff.RecordData |
code, record |
Constructor Summary | |
|
FontRecord(Record t)
Constructs this object from the raw data. |
|
FontRecord(Record t,
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 |
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 |
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. |
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 |
|
Field Detail |
private int pointHeight
private int colourIndex
private int boldWeight
private int scriptStyle
private int underlineStyle
private byte fontFamily
private byte characterSet
private boolean italic
private boolean struckout
private java.lang.String name
private boolean initialized
private int fontIndex
public static 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 indicatorc
- the colourss
- the script stylepublic FontRecord(Record t)
t
- the raw datapublic FontRecord(Record t, FontRecord.Biff7 dummy)
t
- the raw datadummy
- Method Detail |
public byte[] getData()
getData
in class WritableRecordData
public 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 Font
protected void setFontBoldStyle(int bs)
bs
- the bold stylepublic int getBoldWeight()
getBoldWeight
in interface Font
protected void setFontItalic(boolean i)
i
- the italic flagpublic boolean isItalic()
isItalic
in interface Font
protected void setFontUnderlineStyle(int us)
us
- the underline stylepublic UnderlineStyle getUnderlineStyle()
getUnderlineStyle
in interface Font
protected void setFontColour(int c)
cthe
- colourpublic Colour getColour()
getColour
in interface Font
protected void setFontScriptStyle(int ss)
ss
- the colourpublic ScriptStyle getScriptStyle()
getScriptStyle
in interface Font
public java.lang.String getName()
getName
in interface Font
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object to compare
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |