Fields Summary |
---|
public static final short | sid |
private short | field_1_categoryDataType |
public static final short | CATEGORY_DATA_TYPE_DATES |
public static final short | CATEGORY_DATA_TYPE_NUMERIC |
public static final short | CATEGORY_DATA_TYPE_SEQUENCE |
public static final short | CATEGORY_DATA_TYPE_TEXT |
private short | field_2_valuesDataType |
public static final short | VALUES_DATA_TYPE_DATES |
public static final short | VALUES_DATA_TYPE_NUMERIC |
public static final short | VALUES_DATA_TYPE_SEQUENCE |
public static final short | VALUES_DATA_TYPE_TEXT |
private short | field_3_numCategories |
private short | field_4_numValues |
private short | field_5_bubbleSeriesType |
public static final short | BUBBLE_SERIES_TYPE_DATES |
public static final short | BUBBLE_SERIES_TYPE_NUMERIC |
public static final short | BUBBLE_SERIES_TYPE_SEQUENCE |
public static final short | BUBBLE_SERIES_TYPE_TEXT |
private short | field_6_numBubbleValues |
Methods Summary |
---|
public java.lang.Object | clone()
SeriesRecord rec = new SeriesRecord();
rec.field_1_categoryDataType = field_1_categoryDataType;
rec.field_2_valuesDataType = field_2_valuesDataType;
rec.field_3_numCategories = field_3_numCategories;
rec.field_4_numValues = field_4_numValues;
rec.field_5_bubbleSeriesType = field_5_bubbleSeriesType;
rec.field_6_numBubbleValues = field_6_numBubbleValues;
return rec;
|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_categoryDataType = in.readShort();
field_2_valuesDataType = in.readShort();
field_3_numCategories = in.readShort();
field_4_numValues = in.readShort();
field_5_bubbleSeriesType = in.readShort();
field_6_numBubbleValues = in.readShort();
|
public short | getBubbleSeriesType()Get the bubble series type field for the Series record.
return field_5_bubbleSeriesType;
|
public short | getCategoryDataType()Get the category data type field for the Series record.
return field_1_categoryDataType;
|
public short | getNumBubbleValues()Get the num bubble values field for the Series record.
return field_6_numBubbleValues;
|
public short | getNumCategories()Get the num categories field for the Series record.
return field_3_numCategories;
|
public short | getNumValues()Get the num values field for the Series record.
return field_4_numValues;
|
public int | getRecordSize()Size of record (exluding 4 byte header)
return 4 + 2 + 2 + 2 + 2 + 2 + 2;
|
public short | getSid()
return sid;
|
public short | getValuesDataType()Get the values data type field for the Series record.
return field_2_valuesDataType;
|
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);
LittleEndian.putShort(data, 6 + offset + pos, field_2_valuesDataType);
LittleEndian.putShort(data, 8 + offset + pos, field_3_numCategories);
LittleEndian.putShort(data, 10 + offset + pos, field_4_numValues);
LittleEndian.putShort(data, 12 + offset + pos, field_5_bubbleSeriesType);
LittleEndian.putShort(data, 14 + offset + pos, field_6_numBubbleValues);
return getRecordSize();
|
public void | setBubbleSeriesType(short field_5_bubbleSeriesType)Set the bubble series type field for the Series record.
this.field_5_bubbleSeriesType = field_5_bubbleSeriesType;
|
public void | setCategoryDataType(short field_1_categoryDataType)Set the category data type field for the Series record.
this.field_1_categoryDataType = field_1_categoryDataType;
|
public void | setNumBubbleValues(short field_6_numBubbleValues)Set the num bubble values field for the Series record.
this.field_6_numBubbleValues = field_6_numBubbleValues;
|
public void | setNumCategories(short field_3_numCategories)Set the num categories field for the Series record.
this.field_3_numCategories = field_3_numCategories;
|
public void | setNumValues(short field_4_numValues)Set the num values field for the Series record.
this.field_4_numValues = field_4_numValues;
|
public void | setValuesDataType(short field_2_valuesDataType)Set the values data type field for the Series record.
this.field_2_valuesDataType = field_2_valuesDataType;
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[SERIES]\n");
buffer.append(" .categoryDataType = ")
.append("0x").append(HexDump.toHex( getCategoryDataType ()))
.append(" (").append( getCategoryDataType() ).append(" )");
buffer.append(System.getProperty("line.separator"));
buffer.append(" .valuesDataType = ")
.append("0x").append(HexDump.toHex( getValuesDataType ()))
.append(" (").append( getValuesDataType() ).append(" )");
buffer.append(System.getProperty("line.separator"));
buffer.append(" .numCategories = ")
.append("0x").append(HexDump.toHex( getNumCategories ()))
.append(" (").append( getNumCategories() ).append(" )");
buffer.append(System.getProperty("line.separator"));
buffer.append(" .numValues = ")
.append("0x").append(HexDump.toHex( getNumValues ()))
.append(" (").append( getNumValues() ).append(" )");
buffer.append(System.getProperty("line.separator"));
buffer.append(" .bubbleSeriesType = ")
.append("0x").append(HexDump.toHex( getBubbleSeriesType ()))
.append(" (").append( getBubbleSeriesType() ).append(" )");
buffer.append(System.getProperty("line.separator"));
buffer.append(" .numBubbleValues = ")
.append("0x").append(HexDump.toHex( getNumBubbleValues ()))
.append(" (").append( getNumBubbleValues() ).append(" )");
buffer.append(System.getProperty("line.separator"));
buffer.append("[/SERIES]\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 Series record");
}
|