Methods Summary |
---|
public java.lang.Object | clone()
VCenterRecord rec = new VCenterRecord();
rec.field_1_vcenter = field_1_vcenter;
return rec;
|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_vcenter = in.readShort();
|
public int | getRecordSize()
return 6;
|
public short | getSid()
return sid;
|
public boolean | getVCenter()get whether to center vertically or not
return (field_1_vcenter == 1);
|
public int | serialize(int offset, byte[] data)
LittleEndian.putShort(data, 0 + offset, sid);
LittleEndian.putShort(data, 2 + offset, ( short ) 0x2);
LittleEndian.putShort(data, 4 + offset, ( short ) field_1_vcenter);
return getRecordSize();
|
public void | setVCenter(boolean hc)set whether to center vertically or not
if (hc == true)
{
field_1_vcenter = 1;
}
else
{
field_1_vcenter = 0;
}
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[VCENTER]\n");
buffer.append(" .vcenter = ").append(getVCenter())
.append("\n");
buffer.append("[/VCENTER]\n");
return buffer.toString();
|
protected void | validateSid(short id)
if (id != sid)
{
throw new RecordFormatException("NOT A VCenter RECORD");
}
|