public class ColumnInfoRecord extends Record
Description: Defines with width and formatting for a range of columns
REFERENCE: PG 293 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)
| Modifier and Type | Field and Description |
|---|---|
static short |
sid |
| Constructor and Description |
|---|
ColumnInfoRecord() |
ColumnInfoRecord(RecordInputStream in)
Constructs a ColumnInfo record and sets its fields appropriately
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
protected void |
fillFields(RecordInputStream in)
called by the constructor, should set class level fields.
|
boolean |
getCollapsed()
get whether the cells are collapsed
|
short |
getColumnWidth()
get the columns' width in 1/256 of a character width
|
short |
getFirstColumn()
get the first column this record defines formatting info for
|
boolean |
getHidden()
get whether or not these cells are hidden
|
short |
getLastColumn()
get the last column this record defines formatting info for
|
short |
getOptions()
get the options bitfield - use the bitsetters instead
|
short |
getOutlineLevel()
get the outline level for the cells
|
int |
getRecordSize()
gives the current serialized size of the record.
|
short |
getSid()
return the non static version of the id for this record.
|
short |
getXFIndex()
get the columns' default format info
|
int |
serialize(int offset,
byte[] data)
called by the class that is responsible for writing this sucker.
|
void |
setCollapsed(boolean iscollapsed)
set whether the cells are collapsed
|
void |
setColumnWidth(short cw)
set the columns' width in 1/256 of a character width
|
void |
setFirstColumn(short fc)
set the first column this record defines formatting info for
|
void |
setHidden(boolean ishidden)
set whether or not these cells are hidden
|
void |
setLastColumn(short lc)
set the last column this record defines formatting info for
|
void |
setOptions(short options)
set the options bitfield - use the bitsetters instead
|
void |
setOutlineLevel(short olevel)
set the outline level for the cells
|
void |
setXFIndex(short xfi)
set the columns' default format info
|
String |
toString()
get a string representation of the record (for biffview/debugging)
|
protected void |
validateSid(short id)
called by constructor, should throw runtime exception in the event of a
record passed with a differing ID.
|
isInValueSection, isValue, serializepublic static final short sid
public ColumnInfoRecord()
public ColumnInfoRecord(RecordInputStream in)
in - the RecordInputstream to read the record fromprotected void fillFields(RecordInputStream in)
RecordfillFields in class Recordin - the RecordInputstream to read the record fromprotected void validateSid(short id)
RecordvalidateSid in class Recordid - alleged id for this recordpublic void setFirstColumn(short fc)
fc - - the first column index (0-based)public void setLastColumn(short lc)
lc - - the last column index (0-based)public void setColumnWidth(short cw)
cw - - column widthpublic void setXFIndex(short xfi)
xfi - - the extended format indexExtendedFormatRecordpublic void setOptions(short options)
options - - the bitfield raw valuepublic void setHidden(boolean ishidden)
ishidden - - whether the cells are hidden.setOptions(short)public void setOutlineLevel(short olevel)
olevel - -outline level for the cellssetOptions(short)public void setCollapsed(boolean iscollapsed)
iscollapsed - - wether the cells are collapsedsetOptions(short)public short getFirstColumn()
public short getLastColumn()
public short getColumnWidth()
public short getXFIndex()
ExtendedFormatRecordpublic short getOptions()
public boolean getHidden()
setOptions(short)public short getOutlineLevel()
setOptions(short)public boolean getCollapsed()
setOptions(short)public short getSid()
Recordpublic int serialize(int offset,
byte[] data)
Recordpublic int getRecordSize()
RecordgetRecordSize in class Recordpublic String toString()
RecordCopyright © 2015 Open Microscopy Environment