Methods Summary |
---|
public java.lang.Object | clone()
DimensionsRecord rec = new DimensionsRecord();
rec.field_1_first_row = field_1_first_row;
rec.field_2_last_row = field_2_last_row;
rec.field_3_first_col = field_3_first_col;
rec.field_4_last_col = field_4_last_col;
rec.field_5_zero = field_5_zero;
return rec;
|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_first_row = in.readInt();
field_2_last_row = in.readInt();
field_3_first_col = in.readShort();
field_4_last_col = in.readShort();
field_5_zero = in.readShort();
|
public short | getFirstCol()get the first column number for the sheet
return field_3_first_col;
|
public int | getFirstRow()get the first row number for the sheet
return field_1_first_row;
|
public short | getLastCol()get the last col number for the sheet
return field_4_last_col;
|
public int | getLastRow()get the last row number for the sheet
return field_2_last_row;
|
public int | getRecordSize()
return 18;
|
public short | getSid()
return sid;
|
public int | serialize(int offset, byte[] data)
LittleEndian.putShort(data, 0 + offset, sid);
LittleEndian.putShort(data, 2 + offset, ( short ) 14);
LittleEndian.putInt(data, 4 + offset, getFirstRow());
LittleEndian.putInt(data, 8 + offset, getLastRow());
LittleEndian.putShort(data, 12 + offset, getFirstCol());
LittleEndian.putShort(data, 14 + offset, getLastCol());
LittleEndian.putShort(data, 16 + offset, ( short ) 0);
return getRecordSize();
|
public void | setFirstCol(short col)set the first column number for the sheet
field_3_first_col = col;
|
public void | setFirstRow(int row)set the first row number for the sheet
field_1_first_row = row;
|
public void | setLastCol(short col)set the last col number for the sheet
field_4_last_col = col;
|
public void | setLastRow(int row)set the last row number for the sheet
field_2_last_row = row;
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[DIMENSIONS]\n");
buffer.append(" .firstrow = ")
.append(Integer.toHexString(getFirstRow())).append("\n");
buffer.append(" .lastrow = ")
.append(Integer.toHexString(getLastRow())).append("\n");
buffer.append(" .firstcol = ")
.append(Integer.toHexString(getFirstCol())).append("\n");
buffer.append(" .lastcol = ")
.append(Integer.toHexString(getLastCol())).append("\n");
buffer.append(" .zero = ")
.append(Integer.toHexString(field_5_zero)).append("\n");
buffer.append("[/DIMENSIONS]\n");
return buffer.toString();
|
protected void | validateSid(short id)
if (id != sid)
{
throw new RecordFormatException("NOT A valid DIMENSIONS RECORD");
}
|