|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjxl.biff.RecordData
jxl.biff.WritableRecordData
jxl.biff.XFRecord
Holds an extended formatting record
| Field Summary | |
static jxl.biff.XFRecord.BiffType |
biff7
|
static jxl.biff.XFRecord.BiffType |
biff8
|
protected static jxl.biff.XFRecord.XFType |
cell
|
int |
formatIndex
The index to the format record |
protected static jxl.biff.XFRecord.XFType |
style
|
| Fields inherited from class jxl.biff.WritableRecordData |
maxRecordLength |
| Constructor Summary | |
protected |
XFRecord(CellFormat cellFormat)
A public copy constructor which can be used for copy formats between different sheets. |
|
XFRecord(FontRecord fnt,
DisplayFormat form)
A constructor used when creating a writable record |
|
XFRecord(Record t,
WorkbookSettings ws,
jxl.biff.XFRecord.BiffType bt)
Constructs this object from the raw data |
protected |
XFRecord(XFRecord fmt)
Copy constructor. |
| Method Summary | |
boolean |
equals(java.lang.Object o)
Equals method. |
Alignment |
getAlignment()
Gets the horizontal cell alignment |
Colour |
getBackgroundColour()
Gets the background colour used by this cell |
BorderLineStyle |
getBorder(Border border)
Gets the line style for the given cell border If a border type of ALL or NONE is specified, then a line style of NONE is returned |
Colour |
getBorderColour(Border border)
Gets the line style for the given cell border If a border type of ALL or NONE is specified, then a line style of NONE is returned |
BorderLineStyle |
getBorderLine(Border border)
Gets the line style for the given cell border If a border type of ALL or NONE is specified, then a line style of NONE is returned |
byte[] |
getData()
Converts the various fields into binary data. |
java.text.DateFormat |
getDateFormat()
Gets the java date format for this format record |
Font |
getFont()
Gets the font used by this format |
Format |
getFormat()
Gets the format used by this format |
int |
getFormatRecord()
Gets the lookup number of the format record |
protected boolean |
getHidden()
Accessor for the hidden flag |
int |
getIndentation()
Gets the indentation |
protected boolean |
getLocked()
Accessor for the locked flag |
java.text.NumberFormat |
getNumberFormat()
Gets the java number format for this format record |
Orientation |
getOrientation()
Gets the orientation |
Pattern |
getPattern()
Gets the pattern used by this cell format |
VerticalAlignment |
getVerticalAlignment()
Gets the vertical cell alignment |
boolean |
getWrap()
Gets whether or not the contents of this cell are wrapped |
int |
getXFIndex()
Accessor for the XF index |
boolean |
hasBorders()
Determines if this cell format has any borders at all. |
int |
hashCode()
Standard hash code implementation |
void |
initialize(int pos,
FormattingRecords fr,
Fonts fonts)
If this cell has not been read in from an existing Excel sheet, then initializes this record with the XF index passed in. |
boolean |
isDate()
Sees if this format is a date format |
boolean |
isInitialized()
Accessor to see if this format is initialized |
boolean |
isLocked()
Accessor for whether a particular cell is locked |
boolean |
isNumber()
Sees if this format is a number format |
boolean |
isRead()
Accessor to see if this format was read in. |
boolean |
isShrinkToFit()
Gets the shrink to fit flag |
void |
setFont(FontRecord f)
Sets the font object with a workbook specific clone. |
protected void |
setXFAlignment(Alignment a)
Sets the horizontal alignment for the data in this cell. |
protected void |
setXFBackground(Colour c,
Pattern p)
Sets the horizontal alignment for the data in this cell. |
protected void |
setXFBorder(Border b,
BorderLineStyle ls,
Colour c)
Sets the border for this cell This method should only be called from its writable subclass CellXFRecord |
protected void |
setXFCellOptions(int opt)
Sets the cell options |
protected void |
setXFDetails(jxl.biff.XFRecord.XFType t,
int pf)
Sets the format type and parent format from the writable subclass |
protected void |
setXFIndentation(int i)
Sets the indentation |
protected void |
setXFLocked(boolean l)
Sets whether or not this XF record locks the cell |
protected void |
setXFOrientation(Orientation o)
Sets the vertical alignment for the data in this cell This method should only be called from its writable subclass CellXFRecord |
protected void |
setXFShrinkToFit(boolean s)
Sets the shrink to fit flag |
protected void |
setXFVerticalAlignment(VerticalAlignment va)
Sets the vertical alignment for the data in this cell This method should only be called from its writable subclass CellXFRecord |
protected void |
setXFWrap(boolean w)
Sets whether the data in this cell is wrapped This method should only be called from its writable subclass CellXFRecord |
void |
uninitialize()
Resets the initialize flag. |
| 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 |
| Field Detail |
public int formatIndex
public static final jxl.biff.XFRecord.BiffType biff8
public static final jxl.biff.XFRecord.BiffType biff7
protected static final jxl.biff.XFRecord.XFType cell
protected static final jxl.biff.XFRecord.XFType style
| Constructor Detail |
public XFRecord(Record t,
WorkbookSettings ws,
jxl.biff.XFRecord.BiffType bt)
t - the raw databt - the biff type
public XFRecord(FontRecord fnt,
DisplayFormat form)
fnt - the fontform - the formatprotected XFRecord(XFRecord fmt)
fmt - XFRecordprotected XFRecord(CellFormat cellFormat)
cellFormat - the format to copy| Method Detail |
public java.text.DateFormat getDateFormat()
public java.text.NumberFormat getNumberFormat()
public int getFormatRecord()
public boolean isDate()
public boolean isNumber()
public byte[] getData()
getData in class WritableRecordDataprotected final boolean getLocked()
protected final boolean getHidden()
protected final void setXFLocked(boolean l)
l - the locked flagprotected final void setXFCellOptions(int opt)
opt - the cell optionsprotected void setXFAlignment(Alignment a)
a - the alignmentprotected void setXFIndentation(int i)
i - the indentationprotected void setXFShrinkToFit(boolean s)
s - the shrink to fit flagpublic Alignment getAlignment()
getAlignment in interface CellFormatpublic int getIndentation()
getIndentation in interface CellFormatpublic boolean isShrinkToFit()
isShrinkToFit in interface CellFormatpublic boolean isLocked()
isLocked in interface CellFormatpublic VerticalAlignment getVerticalAlignment()
getVerticalAlignment in interface CellFormatpublic Orientation getOrientation()
getOrientation in interface CellFormat
protected void setXFBackground(Colour c,
Pattern p)
c - the background colourp - the background patternpublic Colour getBackgroundColour()
getBackgroundColour in interface CellFormatpublic Pattern getPattern()
getPattern in interface CellFormatprotected void setXFVerticalAlignment(VerticalAlignment va)
va - the vertical alignmentprotected void setXFOrientation(Orientation o)
o - the orientationprotected void setXFWrap(boolean w)
w - the wrap flagpublic boolean getWrap()
getWrap in interface CellFormat
protected void setXFBorder(Border b,
BorderLineStyle ls,
Colour c)
b - the borderls - the border line stylepublic BorderLineStyle getBorder(Border border)
getBorder in interface CellFormatborder - the cell border we are interested in
public BorderLineStyle getBorderLine(Border border)
getBorderLine in interface CellFormatborder - the cell border we are interested in
public Colour getBorderColour(Border border)
getBorderColour in interface CellFormatborder - the cell border we are interested in
public final boolean hasBorders()
hasBorders in interface CellFormat
public final void initialize(int pos,
FormattingRecords fr,
Fonts fonts)
throws NumFormatRecordsException
pos - the xf index to initialize this record withfr - the containing formatting recordsfonts - the container for the fonts
NumFormatRecordsExceptionpublic final void uninitialize()
public final int getXFIndex()
public final boolean isInitialized()
public final boolean isRead()
public Format getFormat()
getFormat in interface CellFormatpublic Font getFont()
getFont in interface CellFormatpublic int hashCode()
public boolean equals(java.lang.Object o)
o - object to compare
protected void setXFDetails(jxl.biff.XFRecord.XFType t,
int pf)
t - the xf typepf - the parent formatpublic void setFont(FontRecord f)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||