Methods Summary |
---|
public java.lang.Object | clone()
DataFormatRecord rec = new DataFormatRecord();
rec.field_1_pointNumber = field_1_pointNumber;
rec.field_2_seriesIndex = field_2_seriesIndex;
rec.field_3_seriesNumber = field_3_seriesNumber;
rec.field_4_formatFlags = field_4_formatFlags;
return rec;
|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_pointNumber = in.readShort();
field_2_seriesIndex = in.readShort();
field_3_seriesNumber = in.readShort();
field_4_formatFlags = in.readShort();
|
public short | getFormatFlags()Get the format flags field for the DataFormat record.
return field_4_formatFlags;
|
public short | getPointNumber()Get the point number field for the DataFormat record.
return field_1_pointNumber;
|
public int | getRecordSize()Size of record (exluding 4 byte header)
return 4 + 2 + 2 + 2 + 2;
|
public short | getSeriesIndex()Get the series index field for the DataFormat record.
return field_2_seriesIndex;
|
public short | getSeriesNumber()Get the series number field for the DataFormat record.
return field_3_seriesNumber;
|
public short | getSid()
return sid;
|
public boolean | isUseExcel4Colors()set true to use excel 4 colors.
return useExcel4Colors.isSet(field_4_formatFlags);
|
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_pointNumber);
LittleEndian.putShort(data, 6 + offset + pos, field_2_seriesIndex);
LittleEndian.putShort(data, 8 + offset + pos, field_3_seriesNumber);
LittleEndian.putShort(data, 10 + offset + pos, field_4_formatFlags);
return getRecordSize();
|
public void | setFormatFlags(short field_4_formatFlags)Set the format flags field for the DataFormat record.
this.field_4_formatFlags = field_4_formatFlags;
|
public void | setPointNumber(short field_1_pointNumber)Set the point number field for the DataFormat record.
this.field_1_pointNumber = field_1_pointNumber;
|
public void | setSeriesIndex(short field_2_seriesIndex)Set the series index field for the DataFormat record.
this.field_2_seriesIndex = field_2_seriesIndex;
|
public void | setSeriesNumber(short field_3_seriesNumber)Set the series number field for the DataFormat record.
this.field_3_seriesNumber = field_3_seriesNumber;
|
public void | setUseExcel4Colors(boolean value)Sets the use excel 4 colors field value.
set true to use excel 4 colors.
field_4_formatFlags = useExcel4Colors.setShortBoolean(field_4_formatFlags, value);
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[DATAFORMAT]\n");
buffer.append(" .pointNumber = ")
.append("0x").append(HexDump.toHex( getPointNumber ()))
.append(" (").append( getPointNumber() ).append(" )");
buffer.append(System.getProperty("line.separator"));
buffer.append(" .seriesIndex = ")
.append("0x").append(HexDump.toHex( getSeriesIndex ()))
.append(" (").append( getSeriesIndex() ).append(" )");
buffer.append(System.getProperty("line.separator"));
buffer.append(" .seriesNumber = ")
.append("0x").append(HexDump.toHex( getSeriesNumber ()))
.append(" (").append( getSeriesNumber() ).append(" )");
buffer.append(System.getProperty("line.separator"));
buffer.append(" .formatFlags = ")
.append("0x").append(HexDump.toHex( getFormatFlags ()))
.append(" (").append( getFormatFlags() ).append(" )");
buffer.append(System.getProperty("line.separator"));
buffer.append(" .useExcel4Colors = ").append(isUseExcel4Colors()).append('\n");
buffer.append("[/DATAFORMAT]\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 DataFormat record");
}
|