public final class OEPlaceholderAtom extends RecordAtom
An atom record that specifies whether a shape is a placeholder shape.
(OEPlaceholderAtom (3011)。指定形状是否为占位符形状的原子记录。)Placeholder
Modifier and Type | Field and Description |
---|---|
static int |
PLACEHOLDER_FULLSIZE
The full size of the master body text placeholder shape.
(主正文文本占位符形状的完整大小。)
|
static int |
PLACEHOLDER_HALFSIZE
Half of the size of the master body text placeholder shape.
(主体文本占位符形状大小的一半。)
|
static int |
PLACEHOLDER_QUARTSIZE
A quarter of the size of the master body text placeholder shape.
(主体文本占位符形状的四分之一大小。)
|
Modifier | Constructor and Description |
---|---|
|
OEPlaceholderAtom()
Create a new instance of
OEPlaceholderAtom
(创建 OEPlaceholderAtom 的新实例)
|
protected |
OEPlaceholderAtom(byte[] source, int start, int len)
Build an instance of
OEPlaceholderAtom from on-disk data
(从磁盘数据构建 OEPlaceholderAtom 实例)
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
int |
getPlaceholderId()
Returns the placeholder Id.
(返回占位符 ID。)
|
int |
getPlaceholderSize()
Returns the placeholder size.
(返回占位符大小。)
|
int |
getPlacementId()
Returns the placement Id.
(返回展示位置 ID。)
|
long |
getRecordType()
Returns the type (held as a little endian in bytes 3 and 4) that this class handles
(返回此类处理的类型(在字节 3 和 4 中保持为小端序))
|
void |
setPlaceholderId(byte id)
Sets the placeholder Id.
(设置占位符 ID。)
|
void |
setPlaceholderSize(byte size)
Sets the placeholder size.
(设置占位符大小。)
|
void |
setPlacementId(int id)
Sets the placement Id.
(设置展示位置 ID。)
|
void |
writeOut(java.io.OutputStream out)
Write the contents of the record back, so it can be written to disk
(将记录的内容写回去,这样就可以写入磁盘了)
|
getChildRecords, isAnAtom
buildRecordAtOffset, createRecordForType, findChildRecords, getGenericChildren, getGenericRecordType, writeLittleEndian, writeLittleEndian
public static final int PLACEHOLDER_FULLSIZE
public static final int PLACEHOLDER_HALFSIZE
public static final int PLACEHOLDER_QUARTSIZE
public OEPlaceholderAtom()
OEPlaceholderAtom
(创建 OEPlaceholderAtom 的新实例)
protected OEPlaceholderAtom(byte[] source, int start, int len)
OEPlaceholderAtom
from on-disk data
(从磁盘数据构建 OEPlaceholderAtom 实例)
public long getRecordType()
Record
getRecordType
in class
Record
(类 Record 中的 getRecordType)
RecordTypes.OEPlaceholderAtom
.
(此记录的类型 RecordTypes.OEPlaceholderAtom。)
public int getPlacementId()
The placement Id is a number assigned to the placeholder. It goes from -1 to the number of placeholders. It SHOULD be unique among all PlacholderAtom records contained in the corresponding slide. The value 0xFFFFFFFF specifies that the corresponding shape is not a placeholder shape.
(返回展示位置 ID。展示位置 ID 是分配给占位符的数字。它从 -1 到占位符的数量。它在相应幻灯片中包含的所有 PlacholderAtom 记录中应该是唯一的。值 0xFFFFFFFF 指定相应的形状不是占位符形状。)public void setPlacementId(int id)
The placement Id is a number assigned to the placeholder. It goes from -1 to the number of placeholders. It SHOULD be unique among all PlacholderAtom records contained in the corresponding slide. The value 0xFFFFFFFF specifies that the corresponding shape is not a placeholder shape.
(设置展示位置 ID。展示位置 ID 是分配给占位符的数字。它从 -1 到占位符的数量。它在相应幻灯片中包含的所有 PlacholderAtom 记录中应该是唯一的。值 0xFFFFFFFF 指定相应的形状不是占位符形状。)id
- the placement Id.
(id - 展示位置 ID。)
public int getPlaceholderId()
placeholder Id specifies the type of the placeholder shape. The value MUST be one of the static constants defined in this class
(返回占位符 ID。 placeholder Id 指定占位符形状的类型。该值必须是此类中定义的静态常量之一)public void setPlaceholderId(byte id)
placeholder Id specifies the type of the placeholder shape. The value MUST be one of the static constants defined in this class
(设置占位符 ID。 placeholder Id 指定占位符形状的类型。该值必须是此类中定义的静态常量之一)id
- the placeholder Id.
(id - 占位符 ID。)
public int getPlaceholderSize()
public void setPlaceholderSize(byte size)
size
- the placeholder size.
(size - 占位符大小。)
public void writeOut(java.io.OutputStream out) throws java.io.IOException
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.