Methods Summary |
---|
public java.lang.Object | clone()
GutsRecord rec = new GutsRecord();
rec.field_1_left_row_gutter = field_1_left_row_gutter;
rec.field_2_top_col_gutter = field_2_top_col_gutter;
rec.field_3_row_level_max = field_3_row_level_max;
rec.field_4_col_level_max = field_4_col_level_max;
return rec;
|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_left_row_gutter = in.readShort();
field_2_top_col_gutter = in.readShort();
field_3_row_level_max = in.readShort();
field_4_col_level_max = in.readShort();
|
public short | getColLevelMax()get the maximum outline level for the col gutter.
return field_4_col_level_max;
|
public short | getLeftRowGutter()get the size of the gutter that appears at the left of the rows
return field_1_left_row_gutter;
|
public int | getRecordSize()
return 12;
|
public short | getRowLevelMax()get the maximum outline level for the row gutter.
return field_3_row_level_max;
|
public short | getSid()
return sid;
|
public short | getTopColGutter()get the size of the gutter that appears at the above the columns
return field_2_top_col_gutter;
|
public int | serialize(int offset, byte[] data)
LittleEndian.putShort(data, 0 + offset, sid);
LittleEndian.putShort(data, 2 + offset, ( short ) 0x8);
LittleEndian.putShort(data, 4 + offset, getLeftRowGutter());
LittleEndian.putShort(data, 6 + offset, getTopColGutter());
LittleEndian.putShort(data, 8 + offset, getRowLevelMax());
LittleEndian.putShort(data, 10 + offset, getColLevelMax());
return getRecordSize();
|
public void | setColLevelMax(short max)set the maximum outline level for the col gutter.
field_4_col_level_max = max;
|
public void | setLeftRowGutter(short gut)set the size of the gutter that appears at the left of the rows
field_1_left_row_gutter = gut;
|
public void | setRowLevelMax(short max)set the maximum outline level for the row gutter.
field_3_row_level_max = max;
|
public void | setTopColGutter(short gut)set the size of the gutter that appears at the above the columns
field_2_top_col_gutter = gut;
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[GUTS]\n");
buffer.append(" .leftgutter = ")
.append(Integer.toHexString(getLeftRowGutter())).append("\n");
buffer.append(" .topgutter = ")
.append(Integer.toHexString(getTopColGutter())).append("\n");
buffer.append(" .rowlevelmax = ")
.append(Integer.toHexString(getRowLevelMax())).append("\n");
buffer.append(" .collevelmax = ")
.append(Integer.toHexString(getColLevelMax())).append("\n");
buffer.append("[/GUTS]\n");
return buffer.toString();
|
protected void | validateSid(short id)
if (id != sid)
{
throw new RecordFormatException("NOT A Guts RECORD");
}
|