|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
System.Objectxl.biff.RecordData
xl.biff.WritableRecordData
xl.biff.FontRecord
xl.write.biff.WritableFontRecord
xl.write.WritableFont
A class which is instantiated when the user application wishes to specify the font for a particular cell
| Nested Class Summary | |
static class |
WritableFont.FontName
Static inner class used for classifying the font names |
| Field Summary | |
static WritableFont.FontName |
ARIAL
Objects created with this font name will be rendered within Excel as ARIAL fonts |
static xl.write.WritableFont.BoldStyle |
BOLD
Indicates that this font should be presented in a BOLD style |
static WritableFont.FontName |
COURIER
Objects created with this font name will be rendered within Excel as COURIER fonts |
static int |
DEFAULT_POINT_SIZE
The default point size for all Fonts |
static xl.write.WritableFont.BoldStyle |
NO_BOLD
Indicates that this font should not be presented as bold |
static WritableFont.FontName |
TAHOMA
Objects created with this font name will be rendered within Excel as TAHOMA fonts |
static WritableFont.FontName |
TIMES
Objects created with this font name will be rendered within Excel as TIMES fonts |
| Fields inherited from class xl.biff.FontRecord |
biff7 |
| Constructor Summary | |
WritableFont(Font f)
Publicly available copy constructor |
|
WritableFont(WritableFont.FontName fn)
Creates a default font, vanilla font of the specified face and with default point size. |
|
WritableFont(WritableFont.FontName fn,
int ps)
Constructs of font of the specified face and of size given by the specified point size |
|
WritableFont(WritableFont.FontName fn,
int ps,
xl.write.WritableFont.BoldStyle bs)
Creates a font of the specified face, point size and bold style |
|
WritableFont(WritableFont.FontName fn,
int ps,
xl.write.WritableFont.BoldStyle bs,
boolean italic)
Creates a font of the specified face, point size, bold weight and italicised option. |
|
WritableFont(WritableFont.FontName fn,
int ps,
xl.write.WritableFont.BoldStyle bs,
boolean it,
UnderlineStyle us)
Creates a font of the specified face, point size, bold weight, italicisation and underline style |
|
WritableFont(WritableFont.FontName fn,
int ps,
xl.write.WritableFont.BoldStyle bs,
boolean it,
UnderlineStyle us,
Color c)
Creates a font of the specified face, point size, bold style, italicisation, underline style and color |
|
WritableFont(WritableFont.FontName fn,
int ps,
xl.write.WritableFont.BoldStyle bs,
boolean it,
UnderlineStyle us,
Color c,
ScriptStyle ss)
Creates a font of the specified face, point size, bold style, italicization, underline style, color, and script style (superscript/subscript) |
|
| Method Summary | |
static WritableFont.FontName |
createFont(System.String fontName)
Factory method which creates the specified font name. |
boolean |
isStruckout()
Accessor for the strike-out flag |
void |
setBoldStyle(xl.write.WritableFont.BoldStyle boldStyle)
Sets the bold style for this font, if the font hasn't been initialized |
void |
setColor(Color color)
Sets the color for this font, if the font hasn't been initialized |
void |
setItalic(boolean italic)
Sets the italic indicator for this font, if the font hasn't been initialized |
void |
setPointSize(int pointSize)
Sets the point size for this font, if the font hasn't been initialized |
void |
setScriptStyle(ScriptStyle scriptStyle)
Sets the script style (eg. |
void |
setStruckout(boolean struckout)
Sets Accessor for the strike-out flag |
void |
setUnderlineStyle(UnderlineStyle us)
Sets the underline style for this font, if the font hasn't been initialized |
| Methods inherited from class xl.biff.FontRecord |
equals, getBoldWeight, getColor, getData, getFontIndex, getName, getPointSize, getScriptStyle, getUnderlineStyle, hashCode, initialize, isInitialized, isItalic, uninitialize |
| Methods inherited from class xl.biff.WritableRecordData |
getBytes |
| Methods inherited from class System.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static readonly WritableFont.FontName ARIAL
public static readonly WritableFont.FontName TIMES
public static readonly WritableFont.FontName COURIER
public static readonly WritableFont.FontName TAHOMA
public static readonly xl.write.WritableFont.BoldStyle NO_BOLD
public static readonly xl.write.WritableFont.BoldStyle BOLD
public static readonly int DEFAULT_POINT_SIZE
| Constructor Detail |
public WritableFont(WritableFont.FontName fn)
fn - the font namepublic WritableFont(Font f)
f - the font to copypublic WritableFont(WritableFont.FontName fn,
int ps)
ps - the point sizefn - the font namepublic WritableFont(WritableFont.FontName fn,
int ps,
xl.write.WritableFont.BoldStyle bs)
ps - the point sizebs - the bold stylefn - the font namepublic WritableFont(WritableFont.FontName fn,
int ps,
xl.write.WritableFont.BoldStyle bs,
boolean italic)
ps - the point sizebs - the bold styleitalic - italic flagfn - the font namepublic WritableFont(WritableFont.FontName fn,
int ps,
xl.write.WritableFont.BoldStyle bs,
boolean it,
UnderlineStyle us)
ps - the point sizebs - the bold styleus - the underline stylefn - the font nameit - italic flagpublic WritableFont(WritableFont.FontName fn,
int ps,
xl.write.WritableFont.BoldStyle bs,
boolean it,
UnderlineStyle us,
Color c)
ps - the point sizebs - the bold styleus - the underline stylefn - the font nameit - italic flagc - the colorpublic WritableFont(WritableFont.FontName fn,
int ps,
xl.write.WritableFont.BoldStyle bs,
boolean it,
UnderlineStyle us,
Color c,
ScriptStyle ss)
ps - the point sizebs - the bold styleus - the underline stylefn - the font nameit - the italic flagc - the colorss - the script style| Method Detail |
public void setPointSize(int pointSize)
throws WriteException
pointSize - the point size
WriteException, - if this font is already in use elsewhere
WriteExceptionpublic void setBoldStyle(xl.write.WritableFont.BoldStyle boldStyle)
throws WriteException
boldStyle - the bold style
WriteException, - if this font is already in use elsewhere
WriteExceptionpublic void setItalic(boolean italic)
throws WriteException
italic - the italic flag
WriteException, - if this font is already in use elsewhere
WriteExceptionpublic void setUnderlineStyle(UnderlineStyle us)
throws WriteException
us - the underline style
WriteException, - if this font is already in use elsewhere
WriteExceptionpublic void setColor(Color color)
throws WriteException
color - the color
WriteException, - if this font is already in use elsewhere
WriteExceptionpublic void setScriptStyle(ScriptStyle scriptStyle)
throws WriteException
scriptStyle - the color
WriteException, - if this font is already in use elsewhere
WriteExceptionpublic boolean isStruckout()
public void setStruckout(boolean struckout)
throws WriteException
struckout - TRUE if this is a struckout font
WriteException, - if this font is already in use elsewhere
WriteExceptionpublic static WritableFont.FontName createFont(System.String fontName)
fontName - the name of the Excel font
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||