public class PreprocessPresentationObject extends AbstractTripletStructuredObject
AbstractAFPObject.Category, AbstractAFPObject.Type| Modifier and Type | Field and Description |
|---|---|
static byte |
ORIENTATION_180_DEGREES
180 degrees orientation
|
static byte |
ORIENTATION_270_DEGREES
270 degrees orientation
|
static byte |
ORIENTATION_90_DEGREES
90 degrees orientation
|
static byte |
ORIENTATION_ZERO_DEGREES
0 degrees orientation
|
tripletsLOG, SF_CLASS, SF_HEADER_LENGTH| Constructor and Description |
|---|
PreprocessPresentationObject(AbstractTripletStructuredObject prePresObj)
Main constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
setOrientation(byte orientation)
Sets the object orientations relative to media leading edge
|
void |
setXOffset(int xOffset)
Sets the X axis origin for object content
|
void |
setYOffset(int yOffset)
Sets the Y axis origin for object content
|
void |
writeContent(OutputStream os)
Helper method to write the contents of the Object.
|
void |
writeStart(OutputStream os)
Helper method to write the start of the Object.
|
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTripletswriteEnd, writeToStreamcopySF, copySF, truncate, writeChunksToStream, writeObjectspublic static final byte ORIENTATION_ZERO_DEGREES
public static final byte ORIENTATION_90_DEGREES
public static final byte ORIENTATION_180_DEGREES
public static final byte ORIENTATION_270_DEGREES
public PreprocessPresentationObject(AbstractTripletStructuredObject prePresObj)
prePresObj - the presentation object to be preprocessedpublic void setOrientation(byte orientation)
orientation - the object orientations relative to media leading edgepublic void setXOffset(int xOffset)
xOffset - the X axis origin for object contentpublic void setYOffset(int yOffset)
yOffset - the Y axis origin for object contentpublic void writeStart(OutputStream os) throws IOException
writeStart in class AbstractStructuredObjectos - The stream to write toIOException - throws an I/O exception if one occurredpublic void writeContent(OutputStream os) throws IOException
writeContent in class AbstractStructuredObjectos - The stream to write toIOException - throws an I/O exception if one occurredCopyright © 2023 Apache Software Foundation. All rights reserved.