com.lowagie.text.rtf

Class RtfTableCell

public class RtfTableCell extends Cell

Deprecated: Please move to the RtfWriter2 and associated classes. com.lowagie.text.rtf.table.RtfCell replaces the functionality of this class.

A Cell with extended style attributes ONLY FOR USE WITH THE RtfWriter NOT with the RtfWriter2.
Field Summary
intbottomBorderStyle
floatbottomBorderWidth
static intBORDER_DASHED
Table border dashed
static intBORDER_DOTTED
Table border dotted
static intBORDER_DOT_DASH
Table border dot dash line
static intBORDER_DOT_DOT_DASH
Table border dot dot dash line
static intBORDER_DOUBLE
Table border double line
static intBORDER_DOUBLE_THICK
Table border double thickness
static intBORDER_DOUBLE_WAVY
Table border line
static intBORDER_EMBOSS
Table border line
static intBORDER_ENGRAVE
Table border line
static intBORDER_HAIRLINE
Table border hairline
static intBORDER_SHADOWED
Table border shadowed
static intBORDER_SINGLE
Table border solid
static intBORDER_STRIPED
Table border line
static intBORDER_THICK_THIN
Table border line
static intBORDER_THICK_THIN_LARGE
Table border line
static intBORDER_THICK_THIN_MED
Table border line
static intBORDER_THIN_THICK
Table border line
static intBORDER_THIN_THICK_LARGE
Table border line
static intBORDER_THIN_THICK_MED
Table border line
static intBORDER_THIN_THICK_THIN
Table border line
static intBORDER_THIN_THICK_THIN_LARGE
Table border line
static intBORDER_THIN_THICK_THIN_MED
Table border line
static intBORDER_TRIPLE
Table border triple line
static intBORDER_UNDEFINED
Table border solid
static intBORDER_WAVY
Table border line
intleftBorderStyle
floatleftBorderWidth
intrightBorderStyle
floatrightBorderWidth
inttopBorderStyle
floattopBorderWidth
Constructor Summary
RtfTableCell(boolean dummy)
Constructs an empty Cell (for internal use only).
RtfTableCell(Element element)
Constructs a Cell with a certain Element.
RtfTableCell(String content)
Constructs a Cell with a certain content.
RtfTableCell(Properties attributes)
Returns a Cell that has been constructed taking in account the value of some attributes.
Method Summary
intbottomBorderStyle()
Get the bottom border style
floatbottomBorderWidth()
Get the bottom border width
protected static byte[]getStyleControlWord(int style)
Get the RTF control word for style
intleftBorderStyle()
Get the left border style
floatleftBorderWidth()
Get the left border width
intrightBorderStyle()
Get the right border style
floatrightBorderWidth()
Get the right border width
voidsetBorderStyle(int style)
Set all four borders to style defined by style
voidsetBorderWidth(float f)
Set all four borders to f width
voidsetBottomBorderStyle(int style)
Set the bottom border to style defined by style
voidsetBottomBorderWidth(float f)
Set the bottom border to f width
voidsetLeftBorderStyle(int style)
Set the left border to style defined by style
voidsetLeftBorderWidth(float f)
Set the left border to f width
voidsetRightBorderStyle(int style)
Set the right border to style defined by style
voidsetRightBorderWidth(float f)
Set the right border to f width
voidsetTopBorderStyle(int style)
Set the top border to style defined by style
voidsetTopBorderWidth(float f)
Set the top border to f width
inttopBorderStyle()
Get the top border style
floattopBorderWidth()
Get the top border width

Field Detail

bottomBorderStyle

private int bottomBorderStyle

bottomBorderWidth

private float bottomBorderWidth

BORDER_DASHED

public static final int BORDER_DASHED
Table border dashed

BORDER_DOTTED

public static final int BORDER_DOTTED
Table border dotted

BORDER_DOT_DASH

public static final int BORDER_DOT_DASH
Table border dot dash line

BORDER_DOT_DOT_DASH

public static final int BORDER_DOT_DOT_DASH
Table border dot dot dash line

BORDER_DOUBLE

public static final int BORDER_DOUBLE
Table border double line

BORDER_DOUBLE_THICK

public static final int BORDER_DOUBLE_THICK
Table border double thickness

BORDER_DOUBLE_WAVY

public static final int BORDER_DOUBLE_WAVY
Table border line

BORDER_EMBOSS

public static final int BORDER_EMBOSS
Table border line

BORDER_ENGRAVE

public static final int BORDER_ENGRAVE
Table border line

BORDER_HAIRLINE

public static final int BORDER_HAIRLINE
Table border hairline

BORDER_SHADOWED

public static final int BORDER_SHADOWED
Table border shadowed

BORDER_SINGLE

public static final int BORDER_SINGLE
Table border solid

BORDER_STRIPED

public static final int BORDER_STRIPED
Table border line

BORDER_THICK_THIN

public static final int BORDER_THICK_THIN
Table border line

BORDER_THICK_THIN_LARGE

public static final int BORDER_THICK_THIN_LARGE
Table border line

BORDER_THICK_THIN_MED

public static final int BORDER_THICK_THIN_MED
Table border line

BORDER_THIN_THICK

public static final int BORDER_THIN_THICK
Table border line

BORDER_THIN_THICK_LARGE

public static final int BORDER_THIN_THICK_LARGE
Table border line

BORDER_THIN_THICK_MED

public static final int BORDER_THIN_THICK_MED
Table border line

BORDER_THIN_THICK_THIN

public static final int BORDER_THIN_THICK_THIN
Table border line

BORDER_THIN_THICK_THIN_LARGE

public static final int BORDER_THIN_THICK_THIN_LARGE
Table border line

BORDER_THIN_THICK_THIN_MED

public static final int BORDER_THIN_THICK_THIN_MED
Table border line

BORDER_TRIPLE

public static final int BORDER_TRIPLE
Table border triple line

BORDER_UNDEFINED

public static final int BORDER_UNDEFINED
Table border solid

BORDER_WAVY

public static final int BORDER_WAVY
Table border line

leftBorderStyle

private int leftBorderStyle

leftBorderWidth

private float leftBorderWidth

rightBorderStyle

private int rightBorderStyle

rightBorderWidth

private float rightBorderWidth

topBorderStyle

private int topBorderStyle

topBorderWidth

private float topBorderWidth

Constructor Detail

RtfTableCell

public RtfTableCell(boolean dummy)
Constructs an empty Cell (for internal use only).

Parameters: dummy a dummy value

RtfTableCell

public RtfTableCell(Element element)
Constructs a Cell with a certain Element.

if the element is a ListItem, Row or Cell, an exception will be thrown.

Parameters: element the element

Throws: BadElementException when the creator was called with a ListItem, Row or Cell

RtfTableCell

public RtfTableCell(String content)
Constructs a Cell with a certain content.

The String will be converted into a Paragraph.

Parameters: content a String

RtfTableCell

public RtfTableCell(Properties attributes)
Returns a Cell that has been constructed taking in account the value of some attributes.

Parameters: attributes Some attributes

Method Detail

bottomBorderStyle

public int bottomBorderStyle()
Get the bottom border style

Returns: a style value

bottomBorderWidth

public float bottomBorderWidth()
Get the bottom border width

Returns: a width

getStyleControlWord

protected static byte[] getStyleControlWord(int style)
Get the RTF control word for style

Parameters: style a style value

Returns: a byte array corresponding with a style control word

leftBorderStyle

public int leftBorderStyle()
Get the left border style

Returns: a style value

leftBorderWidth

public float leftBorderWidth()
Get the left border width

Returns: a width

rightBorderStyle

public int rightBorderStyle()
Get the right border style

Returns: a style value

rightBorderWidth

public float rightBorderWidth()
Get the right border width

Returns: a width

setBorderStyle

public void setBorderStyle(int style)
Set all four borders to style defined by style

Parameters: style the desired style

setBorderWidth

public void setBorderWidth(float f)
Set all four borders to f width

Parameters: f the desired width

setBottomBorderStyle

public void setBottomBorderStyle(int style)
Set the bottom border to style defined by style

Parameters: style the desired style

setBottomBorderWidth

public void setBottomBorderWidth(float f)
Set the bottom border to f width

Parameters: f the desired width

setLeftBorderStyle

public void setLeftBorderStyle(int style)
Set the left border to style defined by style

Parameters: style the desired style

setLeftBorderWidth

public void setLeftBorderWidth(float f)
Set the left border to f width

Parameters: f the desired width

setRightBorderStyle

public void setRightBorderStyle(int style)
Set the right border to style defined by style

Parameters: style the desired style

setRightBorderWidth

public void setRightBorderWidth(float f)
Set the right border to f width

Parameters: f the desired width

setTopBorderStyle

public void setTopBorderStyle(int style)
Set the top border to style defined by style

Parameters: style the desired style

setTopBorderWidth

public void setTopBorderWidth(float f)
Set the top border to f width

Parameters: f the desired width

topBorderStyle

public int topBorderStyle()
Get the top border style

Returns: a style value

topBorderWidth

public float topBorderWidth()
Get the top border width

Returns: a width