Class PreprocessPresentationObject
java.lang.Object
org.apache.fop.afp.modca.AbstractAFPObject
org.apache.fop.afp.modca.AbstractStructuredObject
org.apache.fop.afp.modca.AbstractTripletStructuredObject
org.apache.fop.afp.modca.PreprocessPresentationObject
- All Implemented Interfaces:
Streamable
The Preprocess Presentation Object structured field specifies presentation
parameters for a data object that has been mapped as a resource.
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractAFPObject
AbstractAFPObject.Category, AbstractAFPObject.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byteprivate byteprivate intprivate intstatic final byte180 degrees orientationstatic final byte270 degrees orientationstatic final byte90 degrees orientationstatic final byte0 degrees orientationprivate static final byteprivate static final byteprivate static final byteFields inherited from class AbstractTripletStructuredObject
tripletsFields inherited from class AbstractAFPObject
LOG, SF_CLASS, SF_HEADER_LENGTH -
Constructor Summary
ConstructorsConstructorDescriptionMain constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidsetOrientation(byte orientation) Sets the object orientations relative to media leading edgevoidsetXOffset(int xOffset) Sets the X axis origin for object contentvoidsetYOffset(int yOffset) Sets the Y axis origin for object contentvoidHelper method to write the contents of the Object.voidHelper method to write the start of the Object.Methods inherited from class AbstractTripletStructuredObject
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTripletsMethods inherited from class AbstractStructuredObject
writeEnd, writeToStreamMethods inherited from class AbstractAFPObject
copySF, copySF, truncate, writeChunksToStream, writeObjects
-
Field Details
-
TYPE_OTHER
private static final byte TYPE_OTHER- See Also:
-
TYPE_OVERLAY
private static final byte TYPE_OVERLAY- See Also:
-
TYPE_IMAGE
private static final byte TYPE_IMAGE- See Also:
-
objType
private byte objType -
objOrent
private byte objOrent -
objXOffset
private int objXOffset -
objYOffset
private int objYOffset -
ORIENTATION_ZERO_DEGREES
public static final byte ORIENTATION_ZERO_DEGREES0 degrees orientation- See Also:
-
ORIENTATION_90_DEGREES
public static final byte ORIENTATION_90_DEGREES90 degrees orientation- See Also:
-
ORIENTATION_180_DEGREES
public static final byte ORIENTATION_180_DEGREES180 degrees orientation- See Also:
-
ORIENTATION_270_DEGREES
public static final byte ORIENTATION_270_DEGREES270 degrees orientation- See Also:
-
-
Constructor Details
-
PreprocessPresentationObject
Main constructor- Parameters:
prePresObj- the presentation object to be preprocessed
-
-
Method Details
-
setOrientation
public void setOrientation(byte orientation) Sets the object orientations relative to media leading edge- Parameters:
orientation- the object orientations relative to media leading edge
-
setXOffset
public void setXOffset(int xOffset) Sets the X axis origin for object content- Parameters:
xOffset- the X axis origin for object content
-
setYOffset
public void setYOffset(int yOffset) Sets the Y axis origin for object content- Parameters:
yOffset- the Y axis origin for object content
-
writeStart
Helper method to write the start of the Object.- Overrides:
writeStartin classAbstractStructuredObject- Parameters:
os- The stream to write to- Throws:
IOException- throws an I/O exception if one occurred
-
writeContent
Helper method to write the contents of the Object.- Overrides:
writeContentin classAbstractStructuredObject- Parameters:
os- The stream to write to- Throws:
IOException- throws an I/O exception if one occurred
-