Methods Summary |
---|
public java.lang.Object | clone()
PlotGrowthRecord rec = new PlotGrowthRecord();
rec.field_1_horizontalScale = field_1_horizontalScale;
rec.field_2_verticalScale = field_2_verticalScale;
return rec;
|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_horizontalScale = in.readInt();
field_2_verticalScale = in.readInt();
|
public int | getHorizontalScale()Get the horizontalScale field for the PlotGrowth record.
return field_1_horizontalScale;
|
public int | getRecordSize()Size of record (exluding 4 byte header)
return 4 + 4 + 4;
|
public short | getSid()
return sid;
|
public int | getVerticalScale()Get the verticalScale field for the PlotGrowth record.
return field_2_verticalScale;
|
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.putInt(data, 4 + offset + pos, field_1_horizontalScale);
LittleEndian.putInt(data, 8 + offset + pos, field_2_verticalScale);
return getRecordSize();
|
public void | setHorizontalScale(int field_1_horizontalScale)Set the horizontalScale field for the PlotGrowth record.
this.field_1_horizontalScale = field_1_horizontalScale;
|
public void | setVerticalScale(int field_2_verticalScale)Set the verticalScale field for the PlotGrowth record.
this.field_2_verticalScale = field_2_verticalScale;
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[PLOTGROWTH]\n");
buffer.append(" .horizontalScale = ")
.append("0x").append(HexDump.toHex( getHorizontalScale ()))
.append(" (").append( getHorizontalScale() ).append(" )");
buffer.append(System.getProperty("line.separator"));
buffer.append(" .verticalScale = ")
.append("0x").append(HexDump.toHex( getVerticalScale ()))
.append(" (").append( getVerticalScale() ).append(" )");
buffer.append(System.getProperty("line.separator"));
buffer.append("[/PLOTGROWTH]\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 PlotGrowth record");
}
|