Logo Search packages:      
Sourcecode: jexcelapi version File versions  Download package

jxl::write::WritableCellFormat Class Reference

Inheritance diagram for jxl::write::WritableCellFormat:

jxl::write::biff::CellXFRecord jxl::biff::XFRecord jxl::biff::WritableRecordData jxl::format::CellFormat jxl::biff::RecordData jxl::biff::ByteData

List of all members.


Detailed Description

A user specified cell format, which may be reused across many cells. The constructors takes parameters, such as font details and the numerical date formats, which specify to Excel how cells with this format should be displayed. Once a CellFormat has been added to a Cell which has been added to a sheet, then the CellFormat becomes immutable (to prevent unforeseen effects on other cells which share the same format). Attempts to call the various set... functions on a WritableCellFormat after this time will result in a runtime exception.

Definition at line 44 of file WritableCellFormat.java.


Public Member Functions

boolean equals (Object o)
Alignment getAlignment ()
Colour getBackgroundColour ()
BorderLineStyle getBorder (Border border)
Colour getBorderColour (Border border)
BorderLineStyle getBorderLine (Border border)
final byte[] getBytes ()
byte[] getData ()
DateFormat getDateFormat ()
Font getFont ()
int getFontIndex ()
Format getFormat ()
int getFormatRecord ()
int getIndentation ()
NumberFormat getNumberFormat ()
Orientation getOrientation ()
Pattern getPattern ()
VerticalAlignment getVerticalAlignment ()
boolean getWrap ()
final int getXFIndex ()
final boolean hasBorders ()
int hashCode ()
final void initialize (int pos, FormattingRecords fr, Fonts fonts) throws NumFormatRecordsException
boolean isDate ()
final boolean isInitialized ()
boolean isLocked ()
boolean isNumber ()
final boolean isRead ()
boolean isShrinkToFit ()
void setAlignment (Alignment a) throws WriteException
void setBackground (Colour c, Pattern p) throws WriteException
void setBackground (Colour c) throws WriteException
void setBorder (Border b, BorderLineStyle ls, Colour c) throws WriteException
void setBorder (Border b, BorderLineStyle ls) throws WriteException
void setFont (FontRecord f)
void setIndentation (int i) throws WriteException
void setLocked (boolean l) throws WriteException
void setOrientation (Orientation o) throws WriteException
void setShrinkToFit (boolean s) throws WriteException
void setVerticalAlignment (VerticalAlignment va) throws WriteException
void setWrap (boolean w) throws WriteException
final void uninitialize ()
 WritableCellFormat (CellFormat format)
 WritableCellFormat (WritableFont font, DisplayFormat format)
 WritableCellFormat (DisplayFormat format)
 WritableCellFormat (WritableFont font)
 WritableCellFormat ()

Public Attributes

int formatIndex

Static Public Attributes

static final BiffType biff7 = new BiffType()
static final BiffType biff8 = new BiffType()

Protected Member Functions

final int getCode ()
final boolean getHidden ()
final boolean getLocked ()
Record getRecord ()
void setXFAlignment (Alignment a)
void setXFBackground (Colour c, Pattern p)
void setXFBorder (Border b, BorderLineStyle ls, Colour c)
final void setXFCellOptions (int opt)
void setXFDetails (XFType t, int pf)
void setXFIndentation (int i)
final void setXFLocked (boolean l)
void setXFOrientation (Orientation o)
void setXFShrinkToFit (boolean s)
void setXFVerticalAlignment (VerticalAlignment va)
void setXFWrap (boolean w)

Static Protected Attributes

static final XFType cell = new XFType()
static final int maxRecordLength = 8228
static final XFType style = new XFType()

Package Functions

void rationalize (IndexMapping xfMapping)
void setFontIndex (int newindex)
void setFormatIndex (int newindex)
final void setXFIndex (int xfi)

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index