public final class OEPlaceholderAtom extends RecordAtom
An atom record that specifies whether a shape is a placeholder shape.
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 |
protected |
OEPlaceholderAtom(byte[] source,
int start,
int len)
Build an instance of
OEPlaceholderAtom from on-disk data |
Modifier and Type | Method and Description |
---|---|
int |
getPlaceholderId()
Returns the placeholder Id.
|
int |
getPlaceholderSize()
Returns the placeholder size.
|
int |
getPlacementId()
Returns the placement Id.
|
long |
getRecordType()
Returns the type (held as a little endian in bytes 3 and 4)
that this class handles
|
void |
setPlaceholderId(byte id)
Sets the placeholder Id.
|
void |
setPlaceholderSize(byte size)
Sets the placeholder size.
|
void |
setPlacementId(int id)
Sets the placement 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, writeLittleEndian, writeLittleEndian
public static final int PLACEHOLDER_FULLSIZE
public static final int PLACEHOLDER_HALFSIZE
public static final int PLACEHOLDER_QUARTSIZE
public OEPlaceholderAtom()
OEPlaceholderAtom
protected OEPlaceholderAtom(byte[] source, int start, int len)
OEPlaceholderAtom
from on-disk datapublic long getRecordType()
Record
getRecordType
in class Record
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.
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
- the placement 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
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
- the placeholder Id.public int getPlaceholderSize()
public void setPlaceholderSize(byte size)
size
- the placeholder size.Copyright 2018 The Apache Software Foundation or its licensors, as applicable.