public final class LegendRecord extends StandardRecord
Modifier and Type | Field and Description |
---|---|
static short |
sid |
static byte |
SPACING_CLOSE |
static byte |
SPACING_MEDIUM |
static byte |
SPACING_OPEN |
static byte |
TYPE_BOTTOM |
static byte |
TYPE_CORNER |
static byte |
TYPE_LEFT |
static byte |
TYPE_RIGHT |
static byte |
TYPE_TOP |
static byte |
TYPE_UNDOCKED |
Constructor and Description |
---|
LegendRecord() |
LegendRecord(LegendRecord other) |
LegendRecord(RecordInputStream in) |
Modifier and Type | Method and Description |
---|---|
LegendRecord |
copy() |
protected int |
getDataSize() |
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
HSSFRecordTypes |
getGenericRecordType() |
short |
getOptions()
Get the options field for the Legend record.
(获取 Legend 记录的选项字段。)
|
short |
getSid()
return the non static version of the id for this record.
(返回此记录的 id 的非静态版本。)
|
byte |
getSpacing()
Get the spacing field for the Legend record.
(获取 Legend 记录的间距字段。)
|
byte |
getType()
Get the type field for the Legend record.
(获取 Legend 记录的类型字段。)
|
int |
getXAxisUpperLeft()
Get the x axis upper left field for the Legend record.
(获取 Legend 记录的 x 轴左上角字段。)
|
int |
getXSize()
Get the x size field for the Legend record.
(获取 Legend 记录的 x 大小字段。)
|
int |
getYAxisUpperLeft()
Get the y axis upper left field for the Legend record.
(获取 Legend 记录的 y 轴左上角字段。)
|
int |
getYSize()
Get the y size field for the Legend record.
(获取 Legend 记录的 y 大小字段。)
|
boolean |
isAutoPosition()
automatic positioning (1=docked)
(自动定位(1=停靠))
|
boolean |
isAutoSeries()
excel 5 only (true)
(仅限 excel 5 (true))
|
boolean |
isAutoXPositioning()
position of legend on the x axis is automatic
(图例在 x 轴上的位置是自动的)
|
boolean |
isAutoYPositioning()
position of legend on the y axis is automatic
(图例在 y 轴上的位置是自动的)
|
boolean |
isDataTable()
1 if chart contains data table
(1 如果图表包含数据表)
|
boolean |
isVertical()
vertical or horizontal legend (1 or 0 respectively).
(垂直或水平图例(分别为 1 或 0)。)
|
void |
serialize(LittleEndianOutput out)
Write the data content of this BIFF record.
(写入此 BIFF 记录的数据内容。)
|
void |
setAutoPosition(boolean value)
Sets the auto position field value.
(设置自动位置字段值。)
|
void |
setAutoSeries(boolean value)
Sets the auto series field value.
(设置自动系列字段值。)
|
void |
setAutoXPositioning(boolean value)
Sets the auto x positioning field value.
(设置自动 x 定位字段值。)
|
void |
setAutoYPositioning(boolean value)
Sets the auto y positioning field value.
(设置自动 y 定位字段值。)
|
void |
setDataTable(boolean value)
Sets the data table field value.
(设置数据表字段值。)
|
void |
setOptions(short field_7_options)
Set the options field for the Legend record.
(设置图例记录的选项字段。)
|
void |
setSpacing(byte field_6_spacing)
Set the spacing field for the Legend record.
(设置图例记录的间距字段。)
|
void |
setType(byte field_5_type)
Set the type field for the Legend record.
(设置图例记录的类型字段。)
|
void |
setVertical(boolean value)
Sets the vertical field value.
(设置垂直字段值。)
|
void |
setXAxisUpperLeft(int field_1_xAxisUpperLeft)
Set the x axis upper left field for the Legend record.
(设置 Legend 记录的 x 轴左上角字段。)
|
void |
setXSize(int field_3_xSize)
Set the x size field for the Legend record.
(设置 Legend 记录的 x 大小字段。)
|
void |
setYAxisUpperLeft(int field_2_yAxisUpperLeft)
Set the y axis upper left field for the Legend record.
(设置 Legend 记录的 y 轴左上角字段。)
|
void |
setYSize(int field_4_ySize)
Set the y size field for the Legend record.
(设置 Legend 记录的 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 TYPE_BOTTOM
public static final byte TYPE_CORNER
public static final byte TYPE_TOP
public static final byte TYPE_RIGHT
public static final byte TYPE_LEFT
public static final byte TYPE_UNDOCKED
public static final byte SPACING_CLOSE
public static final byte SPACING_MEDIUM
public static final byte SPACING_OPEN
public LegendRecord()
public LegendRecord(LegendRecord other)
public LegendRecord(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 LegendRecord copy()
copy
in interface
Duplicatable
(复制到界面 Duplicatable)
copy
in class
StandardRecord
(在 StandardRecord 类中复制)
public int getXAxisUpperLeft()
public void setXAxisUpperLeft(int field_1_xAxisUpperLeft)
public int getYAxisUpperLeft()
public void setYAxisUpperLeft(int field_2_yAxisUpperLeft)
public int getXSize()
public void setXSize(int field_3_xSize)
public int getYSize()
public void setYSize(int field_4_ySize)
public byte getType()
public void setType(byte field_5_type)
field_5_type
- One of TYPE_BOTTOM TYPE_CORNER TYPE_TOP TYPE_RIGHT TYPE_LEFT TYPE_UNDOCKED
(field_5_type - TYPE_BOTTOM TYPE_CORNER TYPE_TOP TYPE_RIGHT TYPE_LEFT TYPE_UNDOCKED 之一)
public byte getSpacing()
public void setSpacing(byte field_6_spacing)
field_6_spacing
- One of SPACING_CLOSE SPACING_MEDIUM SPACING_OPEN
(field_6_spacing - SPACING_CLOSE SPACING_MEDIUM SPACING_OPEN 之一)
public short getOptions()
public void setOptions(short field_7_options)
public void setAutoPosition(boolean value)
public boolean isAutoPosition()
public void setAutoSeries(boolean value)
public boolean isAutoSeries()
public void setAutoXPositioning(boolean value)
public boolean isAutoXPositioning()
public void setAutoYPositioning(boolean value)
public boolean isAutoYPositioning()
public void setVertical(boolean value)
public boolean isVertical()
public void setDataTable(boolean value)
public boolean isDataTable()
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.