public class EscherSpRecord extends EscherRecord
Modifier and Type | Field and Description |
---|---|
static int |
FLAG_BACKGROUND |
static int |
FLAG_CHILD |
static int |
FLAG_CONNECTOR |
static int |
FLAG_DELETED |
static int |
FLAG_FLIPHORIZ |
static int |
FLAG_FLIPVERT |
static int |
FLAG_GROUP |
static int |
FLAG_HASSHAPETYPE |
static int |
FLAG_HAVEANCHOR |
static int |
FLAG_HAVEMASTER |
static int |
FLAG_OLESHAPE |
static int |
FLAG_PATRIARCH |
static short |
RECORD_ID |
Constructor and Description |
---|
EscherSpRecord() |
EscherSpRecord(EscherSpRecord other) |
Modifier and Type | Method and Description |
---|---|
EscherSpRecord |
copy() |
int |
fillFields(byte[] data, int offset, EscherRecordFactory recordFactory)
The contract of this method is to deserialize an escher record including it's children.
(此方法的约定是反序列化包括其子项的 escher 记录。)
|
int |
getFlags()
The flags that apply to this shape.
(应用于此形状的标志。)
|
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
java.lang.Enum |
getGenericRecordType() |
short |
getRecordId()
Return the current record id.
(返回当前记录 id。)
|
java.lang.String |
getRecordName()
Subclasses should return the short name for this escher record.
(子类应返回此 escher 记录的短名称。)
|
int |
getRecordSize()
Subclasses should effeciently return the number of bytes required to serialize the record.
(子类应该有效地返回序列化记录所需的字节数。)
|
int |
getShapeId() |
short |
getShapeType()
Returns shape type.
(返回形状类型。)
|
int |
serialize(int offset, byte[] data, EscherSerializationListener listener)
This method serializes this escher record into a byte array.
(此方法将此 escher 记录序列化为字节数组。)
|
void |
setFlags(int field_2_flags)
The flags that apply to this shape.
(应用于此形状的标志。)
|
void |
setShapeId(int field_1_shapeId)
Sets a number that identifies this shape.
(设置一个标识此形状的数字。)
|
void |
setShapeType(short value)
Sets shape type.
(设置形状类型。)
|
display, fillFields, getChild, getChildRecords, getGenericChildren, getInstance, getOptions, getVersion, isContainerRecord, readHeader, readInstance, serialize, serialize, setChildRecords, setInstance, setOptions, setRecordId, setVersion, toString, toXml, toXml
public static final short RECORD_ID
public static final int FLAG_GROUP
public static final int FLAG_CHILD
public static final int FLAG_PATRIARCH
public static final int FLAG_DELETED
public static final int FLAG_OLESHAPE
public static final int FLAG_HAVEMASTER
public static final int FLAG_FLIPHORIZ
public static final int FLAG_FLIPVERT
public static final int FLAG_CONNECTOR
public static final int FLAG_HAVEANCHOR
public static final int FLAG_BACKGROUND
public static final int FLAG_HASSHAPETYPE
public EscherSpRecord()
public EscherSpRecord(EscherSpRecord other)
public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory)
EscherRecord
fillFields
in class
EscherRecord
(EscherRecord 类中的填充字段)
data
- The byte array containing the serialized escher records.
(data - 包含序列化 escher 记录的字节数组。)
offset
- The offset into the byte array.
(offset - 字节数组的偏移量。)
recordFactory
- A factory for creating new escher records.
(recordFactory - 用于创建新 escher 记录的工厂。)
public int serialize(int offset, byte[] data, EscherSerializationListener listener)
serialize
in class
EscherRecord
(在类 EscherRecord 中序列化)
offset
- The offset into
data
to start writing the record data to.
(offset - 开始写入记录数据的数据偏移量。)
data
- The byte array to serialize to.
(data - 要序列化到的字节数组。)
listener
- A listener to retrieve start and end callbacks. Use a
NullEscherSerailizationListener
to ignore these events.
(listener - 用于检索开始和结束回调的侦听器。使用 NullEscherSerailizationListener 忽略这些事件。)
NullEscherSerializationListener
public int getRecordSize()
EscherRecord
getRecordSize
in class
EscherRecord
(类 EscherRecord 中的 getRecordSize)
public short getRecordId()
EscherRecord
getRecordId
in class
EscherRecord
public java.lang.String getRecordName()
EscherRecord
getRecordName
in class
EscherRecord
(类 EscherRecord 中的 getRecordName)
public int getShapeId()
public void setShapeId(int field_1_shapeId)
field_1_shapeId
- the shape id
(field_1_shapeId - 形状 ID)
public int getFlags()
FLAG_GROUP
,
FLAG_CHILD
,
FLAG_PATRIARCH
,
FLAG_DELETED
,
FLAG_OLESHAPE
,
FLAG_HAVEMASTER
,
FLAG_FLIPHORIZ
,
FLAG_FLIPVERT
,
FLAG_CONNECTOR
,
FLAG_HAVEANCHOR
,
FLAG_BACKGROUND
,
FLAG_HASSHAPETYPE
public void setFlags(int field_2_flags)
field_2_flags
- the flags
(field_2_flags - 标志)
FLAG_GROUP
,
FLAG_CHILD
,
FLAG_PATRIARCH
,
FLAG_DELETED
,
FLAG_OLESHAPE
,
FLAG_HAVEMASTER
,
FLAG_FLIPHORIZ
,
FLAG_FLIPVERT
,
FLAG_CONNECTOR
,
FLAG_HAVEANCHOR
,
FLAG_BACKGROUND
,
FLAG_HASSHAPETYPE
public short getShapeType()
public void setShapeType(short value)
value
- new shape type
(价值 - 新的形状类型)
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface
GenericRecord
(接口 GenericRecord 中的 getGenericProperties)
getGenericProperties
in class
EscherRecord
public java.lang.Enum getGenericRecordType()
public EscherSpRecord copy()
copy
in interface
Duplicatable
(复制到界面 Duplicatable)
copy
in class
EscherRecord
(在 EscherRecord 类中复制)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.