Methods Summary |
---|
public java.lang.Object | clone()
DefaultRowHeightRecord rec = new DefaultRowHeightRecord();
rec.field_1_option_flags = field_1_option_flags;
rec.field_2_row_height = field_2_row_height;
return rec;
|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_option_flags = in.readShort();
field_2_row_height = in.readShort();
|
public short | getOptionFlags()get the (currently unimportant to HSSF) option flags
return field_1_option_flags;
|
public int | getRecordSize()
return 8;
|
public short | getRowHeight()get the default row height
return field_2_row_height;
|
public short | getSid()
return sid;
|
public int | serialize(int offset, byte[] data)
LittleEndian.putShort(data, 0 + offset, sid);
LittleEndian.putShort(data, 2 + offset, ( short ) 0x4);
LittleEndian.putShort(data, 4 + offset, getOptionFlags());
LittleEndian.putShort(data, 6 + offset, getRowHeight());
return getRecordSize();
|
public void | setOptionFlags(short flags)set the (currently unimportant to HSSF) option flags
field_1_option_flags = flags;
|
public void | setRowHeight(short height)set the default row height
field_2_row_height = height;
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[DEFAULTROWHEIGHT]\n");
buffer.append(" .optionflags = ")
.append(Integer.toHexString(getOptionFlags())).append("\n");
buffer.append(" .rowheight = ")
.append(Integer.toHexString(getRowHeight())).append("\n");
buffer.append("[/DEFAULTROWHEIGHT]\n");
return buffer.toString();
|
protected void | validateSid(short id)
if (id != sid)
{
throw new RecordFormatException("NOT A DefaultRowHeight RECORD");
}
|