public final class TextRecord extends StandardRecord
Constructor and Description |
---|
TextRecord() |
TextRecord(RecordInputStream in) |
TextRecord(TextRecord other) |
Modifier and Type | Method and Description |
---|---|
TextRecord |
copy() |
short |
getDataLabelPlacement() |
protected int |
getDataSize() |
short |
getDisplayMode()
Get the display mode field for the Text record.
(获取文本记录的显示模式字段。)
|
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
HSSFRecordTypes |
getGenericRecordType() |
int |
getHeight()
Get the height field for the Text record.
(获取文本记录的高度字段。)
|
byte |
getHorizontalAlignment()
Get the horizontal alignment field for the Text record.
(获取文本记录的水平对齐字段。)
|
short |
getIndexOfColorValue()
Get the index of color value field for the Text record.
(获取文本记录的颜色值字段的索引。)
|
short |
getOptions1()
Get the options1 field for the Text record.
(获取 Text 记录的 options1 字段。)
|
short |
getOptions2()
Get the options2 field for the Text record.
(获取 Text 记录的 options2 字段。)
|
int |
getRgbColor()
Get the rgbColor field for the Text record.
(获取 Text 记录的 rgbColor 字段。)
|
short |
getRotation() |
short |
getSid()
return the non static version of the id for this record.
(返回此记录的 id 的非静态版本。)
|
short |
getTextRotation()
Get the text rotation field for the Text record.
(获取文本记录的文本旋转字段。)
|
byte |
getVerticalAlignment()
Get the vertical alignment field for the Text record.
(获取文本记录的垂直对齐字段。)
|
int |
getWidth()
Get the width field for the Text record.
(获取文本记录的宽度字段。)
|
int |
getX()
Get the x field for the Text record.
(获取文本记录的 x 字段。)
|
int |
getY()
Get the y field for the Text record.
(获取文本记录的 y 字段。)
|
boolean |
isAutoBackground() |
boolean |
isAutoColor()
true = automaticly selected colour, false = user-selected
(true = 自动选择颜色,false = 用户选择)
|
boolean |
isAutoGeneratedText() |
boolean |
isAutoLabelDeleted() |
boolean |
isGenerated() |
boolean |
isShowBubbleSizes() |
boolean |
isShowCategoryLabelAsPercentage() |
boolean |
isShowKey()
true = draw legend
(true = 绘制图例)
|
boolean |
isShowLabel() |
boolean |
isShowValue()
false = text is category label
(false = 文本是类别标签)
|
boolean |
isShowValueAsPercentage() |
boolean |
isVertical()
true = text is vertical
(true = 文本是垂直的)
|
void |
serialize(LittleEndianOutput out)
Write the data content of this BIFF record.
(写入此 BIFF 记录的数据内容。)
|
void |
setAutoBackground(boolean value)
Sets the auto background field value.
(设置自动背景字段值。)
|
void |
setAutoColor(boolean value)
Sets the auto color field value.
(设置自动颜色字段值。)
|
void |
setAutoGeneratedText(boolean value)
Sets the auto generated text field value.
(设置自动生成的文本字段值。)
|
void |
setAutoLabelDeleted(boolean value)
Sets the auto label deleted field value.
(设置自动标签删除字段值。)
|
void |
setDataLabelPlacement(short value)
Sets the data label placement field value.
(设置数据标签放置字段值。)
|
void |
setDisplayMode(short field_3_displayMode)
Set the display mode field for the Text record.
(设置文本记录的显示模式字段。)
|
void |
setGenerated(boolean value)
Sets the generated field value.
(设置生成的字段值。)
|
void |
setHeight(int field_8_height)
Set the height field for the Text record.
(设置文本记录的高度字段。)
|
void |
setHorizontalAlignment(byte field_1_horizontalAlignment)
Set the horizontal alignment field for the Text record.
(设置文本记录的水平对齐字段。)
|
void |
setIndexOfColorValue(short field_10_indexOfColorValue)
Set the index of color value field for the Text record.
(为文本记录设置颜色值字段的索引。)
|
void |
setOptions1(short field_9_options1)
Set the options1 field for the Text record.
(设置文本记录的 options1 字段。)
|
void |
setOptions2(short field_11_options2)
Set the options2 field for the Text record.
(为文本记录设置 options2 字段。)
|
void |
setRgbColor(int field_4_rgbColor)
Set the rgbColor field for the Text record.
(设置文本记录的 rgbColor 字段。)
|
void |
setRotation(short value)
Sets the rotation field value.
(设置旋转字段值。)
|
void |
setShowBubbleSizes(boolean value)
Sets the show bubble sizes field value.
(设置显示气泡大小字段值。)
|
void |
setShowCategoryLabelAsPercentage(boolean value)
Sets the show category label as percentage field value.
(将显示类别标签设置为百分比字段值。)
|
void |
setShowKey(boolean value)
Sets the show key field value.
(设置显示键字段值。)
|
void |
setShowLabel(boolean value)
Sets the show label field value.
(设置显示标签字段值。)
|
void |
setShowValue(boolean value)
Sets the show value field value.
(设置显示值字段值。)
|
void |
setShowValueAsPercentage(boolean value)
Sets the show value as percentage field value.
(将显示值设置为百分比字段值。)
|
void |
setTextRotation(short field_12_textRotation)
Set the text rotation field for the Text record.
(设置文本记录的文本旋转字段。)
|
void |
setVertical(boolean value)
Sets the vertical field value.
(设置垂直字段值。)
|
void |
setVerticalAlignment(byte field_2_verticalAlignment)
Set the vertical alignment field for the Text record.
(设置文本记录的垂直对齐字段。)
|
void |
setWidth(int field_7_width)
Set the width field for the Text record.
(设置文本记录的宽度字段。)
|
void |
setX(int field_5_x)
Set the x field for the Text record.
(设置文本记录的 x 字段。)
|
void |
setY(int field_6_y)
Set the y field for the Text record.
(设置文本记录的 y 字段。)
|
getRecordSize, serialize
cloneViaReserialise, serialize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGenericChildren
public static final short sid
public static final byte HORIZONTAL_ALIGNMENT_LEFT
public static final byte HORIZONTAL_ALIGNMENT_CENTER
public static final byte HORIZONTAL_ALIGNMENT_BOTTOM
public static final byte HORIZONTAL_ALIGNMENT_JUSTIFY
public static final byte VERTICAL_ALIGNMENT_TOP
public static final byte VERTICAL_ALIGNMENT_CENTER
public static final byte VERTICAL_ALIGNMENT_BOTTOM
public static final byte VERTICAL_ALIGNMENT_JUSTIFY
public static final short DISPLAY_MODE_TRANSPARENT
public static final short DISPLAY_MODE_OPAQUE
public static final short ROTATION_NONE
public static final short ROTATION_TOP_TO_BOTTOM
public static final short ROTATION_ROTATED_90_DEGREES
public static final short ROTATION_ROTATED_90_DEGREES_CLOCKWISE
public static final short DATA_LABEL_PLACEMENT_CHART_DEPENDENT
public static final short DATA_LABEL_PLACEMENT_OUTSIDE
public static final short DATA_LABEL_PLACEMENT_INSIDE
public static final short DATA_LABEL_PLACEMENT_CENTER
public static final short DATA_LABEL_PLACEMENT_AXIS
public static final short DATA_LABEL_PLACEMENT_ABOVE
public static final short DATA_LABEL_PLACEMENT_BELOW
public static final short DATA_LABEL_PLACEMENT_LEFT
public static final short DATA_LABEL_PLACEMENT_RIGHT
public static final short DATA_LABEL_PLACEMENT_AUTO
public static final short DATA_LABEL_PLACEMENT_USER_MOVED
public TextRecord()
public TextRecord(TextRecord other)
public TextRecord(RecordInputStream in)
public void serialize(LittleEndianOutput out)
StandardRecord
The number of bytes written must equal the record size reported by RecordBase.getRecordSize()
} minus four ( record header consisting of a 'ushort sid' and 'ushort reclength' has already been written by their superclass).
serialize
in class
StandardRecord
(在 StandardRecord 类中序列化)
out
- the output object
(out - 输出对象)
protected int getDataSize()
getDataSize
in class
StandardRecord
(类 StandardRecord 中的 getDataSize)
public short getSid()
Record
public TextRecord copy()
copy
in interface
Duplicatable
(复制到界面 Duplicatable)
copy
in class
StandardRecord
(在 StandardRecord 类中复制)
public byte getHorizontalAlignment()
public void setHorizontalAlignment(byte field_1_horizontalAlignment)
field_1_horizontalAlignment
- One of HORIZONTAL_ALIGNMENT_LEFT HORIZONTAL_ALIGNMENT_CENTER HORIZONTAL_ALIGNMENT_BOTTOM HORIZONTAL_ALIGNMENT_JUSTIFY
(field_1_horizontalAlignment - HORIZONTAL_ALIGNMENT_LEFT HORIZONTAL_ALIGNMENT_CENTER HORIZONTAL_ALIGNMENT_BOTTOM HORIZONTAL_ALIGNMENT_JUSTIFY 之一)
public byte getVerticalAlignment()
public void setVerticalAlignment(byte field_2_verticalAlignment)
field_2_verticalAlignment
- One of VERTICAL_ALIGNMENT_TOP VERTICAL_ALIGNMENT_CENTER VERTICAL_ALIGNMENT_BOTTOM VERTICAL_ALIGNMENT_JUSTIFY
(field_2_verticalAlignment - VERTICAL_ALIGNMENT_TOP VERTICAL_ALIGNMENT_CENTER VERTICAL_ALIGNMENT_BOTTOM VERTICAL_ALIGNMENT_JUSTIFY 之一)
public short getDisplayMode()
public void setDisplayMode(short field_3_displayMode)
field_3_displayMode
- One of DISPLAY_MODE_TRANSPARENT DISPLAY_MODE_OPAQUE
(field_3_displayMode - DISPLAY_MODE_TRANSPARENT DISPLAY_MODE_OPAQUE 之一)
public int getRgbColor()
public void setRgbColor(int field_4_rgbColor)
public int getX()
public void setX(int field_5_x)
public int getY()
public void setY(int field_6_y)
public int getWidth()
public void setWidth(int field_7_width)
public int getHeight()
public void setHeight(int field_8_height)
public short getOptions1()
public void setOptions1(short field_9_options1)
public short getIndexOfColorValue()
public void setIndexOfColorValue(short field_10_indexOfColorValue)
public short getOptions2()
public void setOptions2(short field_11_options2)
public short getTextRotation()
public void setTextRotation(short field_12_textRotation)
public void setAutoColor(boolean value)
public boolean isAutoColor()
public void setShowKey(boolean value)
public boolean isShowKey()
public void setShowValue(boolean value)
public boolean isShowValue()
public void setVertical(boolean value)
public boolean isVertical()
public void setAutoGeneratedText(boolean value)
public boolean isAutoGeneratedText()
public void setGenerated(boolean value)
public boolean isGenerated()
public void setAutoLabelDeleted(boolean value)
public boolean isAutoLabelDeleted()
public void setAutoBackground(boolean value)
public boolean isAutoBackground()
public void setRotation(short value)
public short getRotation()
public void setShowCategoryLabelAsPercentage(boolean value)
public boolean isShowCategoryLabelAsPercentage()
public void setShowValueAsPercentage(boolean value)
public boolean isShowValueAsPercentage()
public void setShowBubbleSizes(boolean value)
public boolean isShowBubbleSizes()
public void setShowLabel(boolean value)
public boolean isShowLabel()
public void setDataLabelPlacement(short value)
public short getDataLabelPlacement()
public HSSFRecordTypes getGenericRecordType()
getGenericRecordType
in interface
GenericRecord
(接口 GenericRecord 中的 getGenericRecordType)
getGenericRecordType
in class
Record
(类 Record 中的 getGenericRecordType)
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.