org.apache.fop.afp.modca
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
public class PreprocessPresentationObject
- extends AbstractTripletStructuredObject
The Preprocess Presentation Object structured field specifies presentation
parameters for a data object that has been mapped as a resource.
Method Summary |
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(java.io.OutputStream os)
Helper method to write the contents of the Object. |
void |
writeStart(java.io.OutputStream os)
Helper method to write the start of the Object. |
Methods inherited from class org.apache.fop.afp.modca.AbstractTripletStructuredObject |
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setObjectClassification, writeTriplets |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ORIENTATION_ZERO_DEGREES
public static final byte ORIENTATION_ZERO_DEGREES
- See Also:
- Constant Field Values
ORIENTATION_90_DEGREES
public static final byte ORIENTATION_90_DEGREES
- See Also:
- Constant Field Values
ORIENTATION_180_DEGREES
public static final byte ORIENTATION_180_DEGREES
- See Also:
- Constant Field Values
ORIENTATION_270_DEGREES
public static final byte ORIENTATION_270_DEGREES
- See Also:
- Constant Field Values
PreprocessPresentationObject
public PreprocessPresentationObject(AbstractTripletStructuredObject prePresObj)
- Main constructor
- Parameters:
prePresObj
- the presentation object to be preprocessed
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
public void writeStart(java.io.OutputStream os)
throws java.io.IOException
- Helper method to write the start of the Object.
- Overrides:
writeStart
in class AbstractStructuredObject
- Parameters:
os
- The stream to write to
- Throws:
java.io.IOException
- throws an I/O exception if one occurred
writeContent
public void writeContent(java.io.OutputStream os)
throws java.io.IOException
- Helper method to write the contents of the Object.
- Overrides:
writeContent
in class AbstractStructuredObject
- Parameters:
os
- The stream to write to
- Throws:
java.io.IOException
- throws an I/O exception if one occurred
Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.