public class RowRecord extends Record implements Comparable
Description: stores the row information for the sheet.
REFERENCE: PG 379 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)
Modifier and Type | Field and Description |
---|---|
private static BitField |
badFontHeight |
private static BitField |
colapsed |
private int |
field_1_row_number |
private short |
field_2_first_col |
private short |
field_3_last_col |
private short |
field_4_height |
private short |
field_5_optimize |
private short |
field_6_reserved |
private short |
field_7_option_flags |
private short |
field_8_xf_index |
private static BitField |
formatted |
static int |
MAX_ROW_NUMBER
The maximum row number that excel can handle (zero bazed) ie 65536 rows is
max number of rows.
|
private static BitField |
outlineLevel |
static short |
sid |
private static BitField |
zeroHeight |
Constructor and Description |
---|
RowRecord() |
RowRecord(RecordInputStream in)
Constructs a Row record and sets its fields appropriately.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
int |
compareTo(Object obj) |
boolean |
equals(Object obj) |
protected void |
fillFields(RecordInputStream in)
called by the constructor, should set class level fields.
|
boolean |
getBadFontHeight()
get whether the font and row height are not compatible
|
boolean |
getColapsed()
get whether or not to colapse this row
|
short |
getFirstCol()
get the logical col number for the first cell this row (0 based index)
|
boolean |
getFormatted()
get whether the row has been formatted (even if its got all blank cells)
|
short |
getHeight()
get the height of the row
|
short |
getLastCol()
get the logical col number for the last cell this row plus one (0 based index)
|
short |
getOptimize()
get whether to optimize or not (set to 0)
|
short |
getOptionFlags()
gets the option bitmask.
|
short |
getOutlineLevel()
get the outline level of this row
|
int |
getRecordSize()
gives the current serialized size of the record.
|
int |
getRowNumber()
get the logical row number for this row (0 based index)
|
short |
getSid()
return the non static version of the id for this record.
|
short |
getXFIndex()
if the row is formatted then this is the index to the extended format record
|
boolean |
getZeroHeight()
get whether or not to display this row with 0 height
|
boolean |
isInValueSection()
DBCELL, ROW, VALUES all say yes
|
int |
serialize(int offset,
byte[] data)
called by the class that is responsible for writing this sucker.
|
void |
setBadFontHeight(boolean f)
set whether the font and row height are not compatible
|
void |
setColapsed(boolean c)
set whether or not to colapse this row
|
void |
setFirstCol(short col)
set the logical col number for the first cell this row (0 based index)
|
void |
setFormatted(boolean f)
set whether the row has been formatted (even if its got all blank cells)
|
void |
setHeight(short height)
set the height of the row
|
void |
setLastCol(short col)
set the logical col number for the last cell this row (0 based index)
|
void |
setOptimize(short optimize)
set whether to optimize or not (set to 0)
|
void |
setOptionFlags(short options)
sets the option bitmask.
|
void |
setOutlineLevel(short ol)
set the outline level of this row
|
void |
setRowNumber(int row)
set the logical row number for this row (0 based index)
|
void |
setXFIndex(short index)
if the row is formatted then this is the index to the extended format record
|
void |
setZeroHeight(boolean z)
set whether or not to display this row with 0 height
|
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.
|
public static final short sid
public static final int MAX_ROW_NUMBER
private int field_1_row_number
private short field_2_first_col
private short field_3_last_col
private short field_4_height
private short field_5_optimize
private short field_6_reserved
private short field_7_option_flags
private static final BitField outlineLevel
private static final BitField colapsed
private static final BitField zeroHeight
private static final BitField badFontHeight
private static final BitField formatted
private short field_8_xf_index
public RowRecord()
public RowRecord(RecordInputStream in)
in
- the RecordInputstream to read the record fromprotected void validateSid(short id)
Record
validateSid
in class Record
id
- alleged id for this recordprotected void fillFields(RecordInputStream in)
Record
fillFields
in class Record
in
- the RecordInputstream to read the record frompublic void setRowNumber(int row)
row
- - the row numberpublic void setFirstCol(short col)
col
- - the col numberpublic void setLastCol(short col)
col
- - the col numberpublic void setHeight(short height)
height
- of the rowpublic void setOptimize(short optimize)
optimize
- (set to 0)public void setOptionFlags(short options)
options
- - the bitmaskpublic void setOutlineLevel(short ol)
ol
- - the outline levelsetOptionFlags(short)
public void setColapsed(boolean c)
c
- - colapse or notsetOptionFlags(short)
public void setZeroHeight(boolean z)
z
- height is zero or not.setOptionFlags(short)
public void setBadFontHeight(boolean f)
f
- true if they aren't compatible (damn not logic)setOptionFlags(short)
public void setFormatted(boolean f)
f
- formatted or notsetOptionFlags(short)
public void setXFIndex(short index)
index
- to the XF recordExtendedFormatRecord
public int getRowNumber()
public short getFirstCol()
public short getLastCol()
public short getHeight()
public short getOptimize()
public short getOptionFlags()
public short getOutlineLevel()
getOptionFlags()
public boolean getColapsed()
getOptionFlags()
public boolean getZeroHeight()
getOptionFlags()
public boolean getBadFontHeight()
getOptionFlags()
public boolean getFormatted()
getOptionFlags()
public short getXFIndex()
ExtendedFormatRecord
public boolean isInValueSection()
Record
isInValueSection
in class Record
public String toString()
Record
public int serialize(int offset, byte[] data)
Record
public int getRecordSize()
Record
getRecordSize
in class Record
public short getSid()
Record
public int compareTo(Object obj)
compareTo
in interface Comparable
Copyright © 2016 Open Microscopy Environment