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 |
---|---|
private static BitField |
collapsed |
private short |
field_1_first_col |
private short |
field_2_last_col |
private short |
field_3_col_width |
private short |
field_4_xf_index |
private short |
field_5_options |
private short |
field_6_reserved |
private static BitField |
hidden |
private static BitField |
outlevel |
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, serialize
public static final short sid
private short field_1_first_col
private short field_2_last_col
private short field_3_col_width
private short field_4_xf_index
private short field_5_options
private static final BitField hidden
private static final BitField outlevel
private static final BitField collapsed
private short field_6_reserved
public ColumnInfoRecord()
public ColumnInfoRecord(RecordInputStream in)
in
- the RecordInputstream to read the record fromprotected void fillFields(RecordInputStream in)
Record
fillFields
in class Record
in
- the RecordInputstream to read the record fromprotected void validateSid(short id)
Record
validateSid
in class Record
id
- 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 indexExtendedFormatRecord
public 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()
ExtendedFormatRecord
public short getOptions()
public boolean getHidden()
setOptions(short)
public short getOutlineLevel()
setOptions(short)
public boolean getCollapsed()
setOptions(short)
public short getSid()
Record
public int serialize(int offset, byte[] data)
Record
public int getRecordSize()
Record
getRecordSize
in class Record
public String toString()
Record
Copyright © 2016 Open Microscopy Environment