Methods Summary |
---|
public java.lang.Object | clone()
PaneRecord rec = new PaneRecord();
rec.field_1_x = field_1_x;
rec.field_2_y = field_2_y;
rec.field_3_topRow = field_3_topRow;
rec.field_4_leftColumn = field_4_leftColumn;
rec.field_5_activePane = field_5_activePane;
return rec;
|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_x = in.readShort();
field_2_y = in.readShort();
field_3_topRow = in.readShort();
field_4_leftColumn = in.readShort();
field_5_activePane = in.readShort();
|
public short | getActivePane()Get the active pane field for the Pane record.
return field_5_activePane;
|
public short | getLeftColumn()Get the left column field for the Pane record.
return field_4_leftColumn;
|
public int | getRecordSize()Size of record (exluding 4 byte header)
return 4 + 2 + 2 + 2 + 2 + 2;
|
public short | getSid()
return sid;
|
public short | getTopRow()Get the top row field for the Pane record.
return field_3_topRow;
|
public short | getX()Get the x field for the Pane record.
return field_1_x;
|
public short | getY()Get the y field for the Pane record.
return field_2_y;
|
public int | serialize(int offset, byte[] data)
int pos = 0;
LittleEndian.putShort(data, 0 + offset, sid);
LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));
LittleEndian.putShort(data, 4 + offset + pos, field_1_x);
LittleEndian.putShort(data, 6 + offset + pos, field_2_y);
LittleEndian.putShort(data, 8 + offset + pos, field_3_topRow);
LittleEndian.putShort(data, 10 + offset + pos, field_4_leftColumn);
LittleEndian.putShort(data, 12 + offset + pos, field_5_activePane);
return getRecordSize();
|
public void | setActivePane(short field_5_activePane)Set the active pane field for the Pane record.
this.field_5_activePane = field_5_activePane;
|
public void | setLeftColumn(short field_4_leftColumn)Set the left column field for the Pane record.
this.field_4_leftColumn = field_4_leftColumn;
|
public void | setTopRow(short field_3_topRow)Set the top row field for the Pane record.
this.field_3_topRow = field_3_topRow;
|
public void | setX(short field_1_x)Set the x field for the Pane record.
this.field_1_x = field_1_x;
|
public void | setY(short field_2_y)Set the y field for the Pane record.
this.field_2_y = field_2_y;
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[PANE]\n");
buffer.append(" .x = ")
.append("0x").append(HexDump.toHex( getX ()))
.append(" (").append( getX() ).append(" )");
buffer.append(System.getProperty("line.separator"));
buffer.append(" .y = ")
.append("0x").append(HexDump.toHex( getY ()))
.append(" (").append( getY() ).append(" )");
buffer.append(System.getProperty("line.separator"));
buffer.append(" .topRow = ")
.append("0x").append(HexDump.toHex( getTopRow ()))
.append(" (").append( getTopRow() ).append(" )");
buffer.append(System.getProperty("line.separator"));
buffer.append(" .leftColumn = ")
.append("0x").append(HexDump.toHex( getLeftColumn ()))
.append(" (").append( getLeftColumn() ).append(" )");
buffer.append(System.getProperty("line.separator"));
buffer.append(" .activePane = ")
.append("0x").append(HexDump.toHex( getActivePane ()))
.append(" (").append( getActivePane() ).append(" )");
buffer.append(System.getProperty("line.separator"));
buffer.append("[/PANE]\n");
return buffer.toString();
|
protected void | validateSid(short id)Checks the sid matches the expected side for this record
if (id != sid)
{
throw new RecordFormatException("Not a Pane record");
}
|