Class OEPlaceholderAtom
An atom record that specifies whether a shape is a placeholder shape.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe full size of the master body text placeholder shape.static final intHalf of the size of the master body text placeholder shape.static final intA quarter of the size of the master body text placeholder shape. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a new instance ofOEPlaceholderAtomprotectedOEPlaceholderAtom(byte[] source, int start, int len) Build an instance ofOEPlaceholderAtomfrom on-disk data -
Method Summary
Modifier and TypeMethodDescriptionintReturns the placeholder Id.intReturns the placeholder size.intReturns the placement Id.longReturns the type (held as a little endian in bytes 3 and 4) that this class handlesvoidsetPlaceholderId(byte id) Sets the placeholder Id.voidsetPlaceholderSize(byte size) Sets the placeholder size.voidsetPlacementId(int id) Sets the placement Id.voidwriteOut(OutputStream out) Write the contents of the record back, so it can be written to diskMethods inherited from class org.apache.poi.hslf.record.RecordAtom
getChildRecords, isAnAtomMethods inherited from class org.apache.poi.hslf.record.Record
buildRecordAtOffset, createRecordForType, findChildRecords, writeLittleEndian, writeLittleEndian
-
Field Details
-
PLACEHOLDER_FULLSIZE
public static final int PLACEHOLDER_FULLSIZEThe full size of the master body text placeholder shape.- See Also:
-
PLACEHOLDER_HALFSIZE
public static final int PLACEHOLDER_HALFSIZEHalf of the size of the master body text placeholder shape.- See Also:
-
PLACEHOLDER_QUARTSIZE
public static final int PLACEHOLDER_QUARTSIZEA quarter of the size of the master body text placeholder shape.- See Also:
-
-
Constructor Details
-
OEPlaceholderAtom
public OEPlaceholderAtom()Create a new instance ofOEPlaceholderAtom -
OEPlaceholderAtom
protected OEPlaceholderAtom(byte[] source, int start, int len) Build an instance ofOEPlaceholderAtomfrom on-disk data
-
-
Method Details
-
getRecordType
public long getRecordType()Description copied from class:RecordReturns the type (held as a little endian in bytes 3 and 4) that this class handles- Specified by:
getRecordTypein classRecord- Returns:
- type of this record
RecordTypes.OEPlaceholderAtom.
-
getPlacementId
public int getPlacementId()Returns the placement 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.
- Returns:
- the placement Id.
-
setPlacementId
public void setPlacementId(int id) Sets the placement 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.
- Parameters:
id- the placement Id.
-
getPlaceholderId
public int getPlaceholderId()Returns the placeholder Id.placeholder Id specifies the type of the placeholder shape. The value MUST be one of the static constants defined in this class
- Returns:
- the placeholder Id.
-
setPlaceholderId
public void setPlaceholderId(byte id) Sets the placeholder Id.placeholder Id specifies the type of the placeholder shape. The value MUST be one of the static constants defined in this class
- Parameters:
id- the placeholder Id.
-
getPlaceholderSize
public int getPlaceholderSize()Returns the placeholder size. Must be one of the PLACEHOLDER_* static constants defined in this class.- Returns:
- the placeholder size.
-
setPlaceholderSize
public void setPlaceholderSize(byte size) Sets the placeholder size. Must be one of the PLACEHOLDER_* static constants defined in this class.- Parameters:
size- the placeholder size.
-
writeOut
Write the contents of the record back, so it can be written to disk- Specified by:
writeOutin classRecord- Throws:
IOException
-