Methods Summary |
---|
public java.lang.Object | clone()
LeftMarginRecord rec = new LeftMarginRecord();
rec.field_1_margin = this.field_1_margin;
return rec;
|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_margin = in.readDouble();
|
public double | getMargin()Get the margin field for the LeftMargin record.
return field_1_margin;
|
public int | getRecordSize()Size of record (exluding 4 byte header)
return 4 + 8;
|
public short | getSid()
return sid;
|
public int | serialize(int offset, byte[] data)
LittleEndian.putShort( data, 0 + offset, sid );
LittleEndian.putShort( data, 2 + offset, (short) ( getRecordSize() - 4 ) );
LittleEndian.putDouble( data, 4 + offset, field_1_margin );
return getRecordSize();
|
public void | setMargin(double field_1_margin)Set the margin field for the LeftMargin record.
this.field_1_margin = field_1_margin;
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append( "[LeftMargin]\n" );
buffer.append( " .margin = " ).append( " (" ).append( getMargin() ).append( " )\n" );
buffer.append( "[/LeftMargin]\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 LeftMargin record" );
}
|