jxl.write.biff
Class CellXFRecord

java.lang.Object
  extended byjxl.biff.RecordData
      extended byjxl.biff.WritableRecordData
          extended byjxl.biff.XFRecord
              extended byjxl.write.biff.CellXFRecord
All Implemented Interfaces:
ByteData, CellFormat
Direct Known Subclasses:
WritableCellFormat

public class CellXFRecord
extends XFRecord

A cell XF Record


Field Summary
 
Fields inherited from class jxl.biff.XFRecord
biff7, biff8, cell, formatIndex, style
 
Fields inherited from class jxl.biff.WritableRecordData
maxRecordLength
 
Constructor Summary
protected CellXFRecord(CellFormat format)
          A public copy constructor which can be used for copy formats between different sheets
protected CellXFRecord(FontRecord fnt, DisplayFormat form)
          Constructor
 
Method Summary
 void setAlignment(Alignment a)
          Sets the alignment for the cell
 void setBackground(Colour c, Pattern p)
          Sets the background for the cell
 void setBorder(Border b, BorderLineStyle ls, Colour c)
          Sets the border style for cells with this format
 void setIndentation(int i)
          Sets the indentation of the cell text
 void setLocked(boolean l)
          Sets whether or not this XF record locks the cell
 void setOrientation(Orientation o)
          Sets the text orientation for cells with this style
 void setShrinkToFit(boolean s)
          Sets the shrink to fit flag
 void setVerticalAlignment(VerticalAlignment va)
          Sets the vertical alignment for cells with this style
 void setWrap(boolean w)
          Sets the text wrapping for cells with this style.
 
Methods inherited from class jxl.biff.XFRecord
equals, getAlignment, getBackgroundColour, getBorder, getBorderColour, getBorderLine, getData, getDateFormat, getFont, getFormat, getFormatRecord, getHidden, getIndentation, getLocked, getNumberFormat, getOrientation, getPattern, getVerticalAlignment, getWrap, getXFIndex, hasBorders, hashCode, initialize, isDate, isInitialized, isLocked, isNumber, isRead, isShrinkToFit, setFont, setXFAlignment, setXFBackground, setXFBorder, setXFCellOptions, setXFDetails, setXFIndentation, setXFLocked, setXFOrientation, setXFShrinkToFit, setXFVerticalAlignment, setXFWrap, uninitialize
 
Methods inherited from class jxl.biff.WritableRecordData
getBytes
 
Methods inherited from class jxl.biff.RecordData
getCode, getRecord
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CellXFRecord

protected CellXFRecord(FontRecord fnt,
                       DisplayFormat form)
Constructor

Parameters:
fnt - the font
form - the format

CellXFRecord

protected CellXFRecord(CellFormat format)
A public copy constructor which can be used for copy formats between different sheets

Method Detail

setAlignment

public void setAlignment(Alignment a)
                  throws WriteException
Sets the alignment for the cell

Parameters:
a - the alignment
Throws:
WriteException

setBackground

public void setBackground(Colour c,
                          Pattern p)
                   throws WriteException
Sets the background for the cell

Parameters:
c - the background colour
p - the background patter
Throws:
WriteException

setLocked

public void setLocked(boolean l)
               throws WriteException
Sets whether or not this XF record locks the cell

Parameters:
l - the locked flag
Throws:
WriteException

setIndentation

public void setIndentation(int i)
                    throws WriteException
Sets the indentation of the cell text

Parameters:
i - the indentation
Throws:
WriteException

setShrinkToFit

public void setShrinkToFit(boolean s)
                    throws WriteException
Sets the shrink to fit flag

Throws:
WriteException

setVerticalAlignment

public void setVerticalAlignment(VerticalAlignment va)
                          throws WriteException
Sets the vertical alignment for cells with this style

Parameters:
va - the vertical alignment
Throws:
WriteException

setOrientation

public void setOrientation(Orientation o)
                    throws WriteException
Sets the text orientation for cells with this style

Parameters:
o - the orientation
Throws:
WriteException

setWrap

public void setWrap(boolean w)
             throws WriteException
Sets the text wrapping for cells with this style. If the parameter is set to TRUE, then data in this cell will be wrapped around, and the cell's height adjusted accordingly

Parameters:
w - the wrap
Throws:
WriteException

setBorder

public void setBorder(Border b,
                      BorderLineStyle ls,
                      Colour c)
               throws WriteException
Sets the border style for cells with this format

Parameters:
b - the border
ls - the line for the specified border
Throws:
WriteException