Methods Summary |
---|
public java.lang.Object | clone()
DefaultDataLabelTextPropertiesRecord rec = new DefaultDataLabelTextPropertiesRecord();
rec.field_1_categoryDataType = field_1_categoryDataType;
return rec;
|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_categoryDataType = in.readShort();
|
public short | getCategoryDataType()Get the category data type field for the DefaultDataLabelTextProperties record.
return field_1_categoryDataType;
|
public int | getRecordSize()Size of record (exluding 4 byte header)
return 4 + 2;
|
public short | getSid()
return sid;
|
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_categoryDataType);
return getRecordSize();
|
public void | setCategoryDataType(short field_1_categoryDataType)Set the category data type field for the DefaultDataLabelTextProperties record.
this.field_1_categoryDataType = field_1_categoryDataType;
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[DEFAULTTEXT]\n");
buffer.append(" .categoryDataType = ")
.append("0x").append(HexDump.toHex( getCategoryDataType ()))
.append(" (").append( getCategoryDataType() ).append(" )");
buffer.append(System.getProperty("line.separator"));
buffer.append("[/DEFAULTTEXT]\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 DefaultDataLabelTextProperties record");
}
|