Methods Summary |
---|
public java.lang.Object | clone()
SeriesLabelsRecord rec = new SeriesLabelsRecord();
rec.field_1_formatFlags = field_1_formatFlags;
return rec;
|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_formatFlags = in.readShort();
|
public short | getFormatFlags()Get the format flags field for the SeriesLabels record.
return field_1_formatFlags;
|
public int | getRecordSize()Size of record (exluding 4 byte header)
return 4 + 2;
|
public short | getSid()
return sid;
|
public boolean | isLabelAsPercentage()show category label/value as percentage (pie charts only)
return labelAsPercentage.isSet(field_1_formatFlags);
|
public boolean | isShowActual()show actual value of the data point
return showActual.isSet(field_1_formatFlags);
|
public boolean | isShowBubbleSizes()??
return showBubbleSizes.isSet(field_1_formatFlags);
|
public boolean | isShowLabel()display category label
return showLabel.isSet(field_1_formatFlags);
|
public boolean | isShowPercent()show value as percentage of total (pie charts only)
return showPercent.isSet(field_1_formatFlags);
|
public boolean | isSmoothedLine()show smooth line
return smoothedLine.isSet(field_1_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_formatFlags);
return getRecordSize();
|
public void | setFormatFlags(short field_1_formatFlags)Set the format flags field for the SeriesLabels record.
this.field_1_formatFlags = field_1_formatFlags;
|
public void | setLabelAsPercentage(boolean value)Sets the label as percentage field value.
show category label/value as percentage (pie charts only)
field_1_formatFlags = labelAsPercentage.setShortBoolean(field_1_formatFlags, value);
|
public void | setShowActual(boolean value)Sets the show actual field value.
show actual value of the data point
field_1_formatFlags = showActual.setShortBoolean(field_1_formatFlags, value);
|
public void | setShowBubbleSizes(boolean value)Sets the show bubble sizes field value.
??
field_1_formatFlags = showBubbleSizes.setShortBoolean(field_1_formatFlags, value);
|
public void | setShowLabel(boolean value)Sets the show label field value.
display category label
field_1_formatFlags = showLabel.setShortBoolean(field_1_formatFlags, value);
|
public void | setShowPercent(boolean value)Sets the show percent field value.
show value as percentage of total (pie charts only)
field_1_formatFlags = showPercent.setShortBoolean(field_1_formatFlags, value);
|
public void | setSmoothedLine(boolean value)Sets the smoothed line field value.
show smooth line
field_1_formatFlags = smoothedLine.setShortBoolean(field_1_formatFlags, value);
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[ATTACHEDLABEL]\n");
buffer.append(" .formatFlags = ")
.append("0x").append(HexDump.toHex( getFormatFlags ()))
.append(" (").append( getFormatFlags() ).append(" )");
buffer.append(System.getProperty("line.separator"));
buffer.append(" .showActual = ").append(isShowActual()).append('\n");
buffer.append(" .showPercent = ").append(isShowPercent()).append('\n");
buffer.append(" .labelAsPercentage = ").append(isLabelAsPercentage()).append('\n");
buffer.append(" .smoothedLine = ").append(isSmoothedLine()).append('\n");
buffer.append(" .showLabel = ").append(isShowLabel()).append('\n");
buffer.append(" .showBubbleSizes = ").append(isShowBubbleSizes()).append('\n");
buffer.append("[/ATTACHEDLABEL]\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 SeriesLabels record");
}
|