jxl.write

Class Font


public class Font
extends WritableFont

A class which is instantiated when the user application wishes to specify the font for a particular cell

Nested Class Summary

Nested classes/interfaces inherited from class jxl.write.WritableFont

WritableFont.FontName

Field Summary

static WritableFont.FontName
ARIAL
Deprecated.
static BoldStyle
BOLD
Deprecated.
static UnderlineStyle
DOUBLE
Deprecated.
static UnderlineStyle
DOUBLE_ACCOUNTING
Deprecated.
static ScriptStyle
NORMAL_SCRIPT
static BoldStyle
NO_BOLD
Deprecated.
static UnderlineStyle
NO_UNDERLINE
Deprecated.
static UnderlineStyle
SINGLE
Deprecated.
static UnderlineStyle
SINGLE_ACCOUNTING
Deprecated.
static ScriptStyle
SUBSCRIPT
static ScriptStyle
SUPERSCRIPT
static WritableFont.FontName
TIMES
Deprecated.

Fields inherited from class jxl.write.WritableFont

ARIAL, BOLD, COURIER, DEFAULT_POINT_SIZE, NO_BOLD, TAHOMA, TIMES

Constructor Summary

Font(WritableFont.FontName fn)
Deprecated. Use jxl.write.WritableFont
Font(WritableFont.FontName fn, int ps)
Deprecated. use jxl.write.WritableFont
Font(WritableFont.FontName fn, int ps, BoldStyle bs)
Deprecated. use jxl.write.WritableFont
Font(WritableFont.FontName fn, int ps, BoldStyle bs, boolean italic)
Deprecated. use jxl.write.WritableFont
Font(WritableFont.FontName fn, int ps, BoldStyle bs, boolean it, UnderlineStyle us)
Deprecated. use jxl.write.WritableFont
Font(WritableFont.FontName fn, int ps, BoldStyle bs, boolean it, UnderlineStyle us, Colour c)
Deprecated. use jxl.write.WritableFont
Font(WritableFont.FontName fn, int ps, BoldStyle bs, boolean it, UnderlineStyle us, Colour c, ScriptStyle ss)
Deprecated. use jxl.write.WritableFont

Method Summary

Methods inherited from class jxl.write.WritableFont

createFont, isStruckout, setBoldStyle, setColour, setItalic, setPointSize, setScriptStyle, setStruckout, setUnderlineStyle

Field Details

ARIAL

public static final WritableFont.FontName ARIAL

Deprecated.

Objects created with this font name will be rendered within Excel as ARIAL fonts

BOLD

public static final BoldStyle BOLD

Deprecated.

Indicates that this font should be presented in a BOLD style

DOUBLE

public static final UnderlineStyle DOUBLE

Deprecated.


DOUBLE_ACCOUNTING

public static final UnderlineStyle DOUBLE_ACCOUNTING

Deprecated.


NORMAL_SCRIPT

public static final ScriptStyle NORMAL_SCRIPT

NO_BOLD

public static final BoldStyle NO_BOLD

Deprecated.

Indicates that this font should not be presented as bold

NO_UNDERLINE

public static final UnderlineStyle NO_UNDERLINE

Deprecated.


SINGLE

public static final UnderlineStyle SINGLE

Deprecated.


SINGLE_ACCOUNTING

public static final UnderlineStyle SINGLE_ACCOUNTING

Deprecated.


SUBSCRIPT

public static final ScriptStyle SUBSCRIPT

SUPERSCRIPT

public static final ScriptStyle SUPERSCRIPT

TIMES

public static final WritableFont.FontName TIMES

Deprecated.

Objects created with this font name will be rendered within Excel as TIMES fonts

Constructor Details

Font

public Font(WritableFont.FontName fn)

Deprecated. Use jxl.write.WritableFont

Creates a default font, vanilla font of the specified face and with default point size.
Parameters:
fn - the font name

Font

public Font(WritableFont.FontName fn,
            int ps)

Deprecated. use jxl.write.WritableFont

Constructs of font of the specified face and of size given by the specified point size
Parameters:
fn - the font name
ps - the point size

Font

public Font(WritableFont.FontName fn,
            int ps,
            BoldStyle bs)

Deprecated. use jxl.write.WritableFont

Creates a font of the specified face, point size and bold style
Parameters:
fn - the font name
ps - the point size
bs - the bold style

Font

public Font(WritableFont.FontName fn,
            int ps,
            BoldStyle bs,
            boolean italic)

Deprecated. use jxl.write.WritableFont

Creates a font of the specified face, point size, bold weight and italicised option.
Parameters:
fn - the font name
ps - the point size
bs - the bold style
italic - italic flag

Font

public Font(WritableFont.FontName fn,
            int ps,
            BoldStyle bs,
            boolean it,
            UnderlineStyle us)

Deprecated. use jxl.write.WritableFont

Creates a font of the specified face, point size, bold weight, italicisation and underline style
Parameters:
fn - font name
ps - the point size
bs - the bold style
it - italic flag
us - underscore flag

Font

public Font(WritableFont.FontName fn,
            int ps,
            BoldStyle bs,
            boolean it,
            UnderlineStyle us,
            Colour c)

Deprecated. use jxl.write.WritableFont

Creates a font of the specified face, point size, bold style, italicisation, underline style and colour
Parameters:
fn - the font name
ps - the point size
bs - the bold style
it - italic flag
us - the underline style
c - the colour

Font

public Font(WritableFont.FontName fn,
            int ps,
            BoldStyle bs,
            boolean it,
            UnderlineStyle us,
            Colour c,
            ScriptStyle ss)

Deprecated. use jxl.write.WritableFont

Creates a font of the specified face, point size, bold style, italicisation, underline style, colour, and script style (superscript/subscript)
Parameters:
fn - the font name
ps - the point size
bs - the bold style
it - the italic flag
us - the underline style
c - the colour
ss - the script style