Package org.apache.fop.afp.modca
Class Overlay
java.lang.Object
- All Implemented Interfaces:
Completable,Streamable
An overlay is a MO:DCA-P resource object.
It may be stored in an external resource library or it may be
carried in a resource group. An overlay is similar to a page in
that it defines its own environment and carries the same data objects.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.fop.afp.modca.AbstractAFPObject
AbstractAFPObject.Category, AbstractAFPObject.Type -
Field Summary
Fields inherited from class org.apache.fop.afp.modca.AbstractResourceGroupContainer
resourceGroup, startedFields inherited from class org.apache.fop.afp.modca.AbstractPageObject
activeEnvironmentGroup, complete, factory, invokeMediumMaps, objects, rotationFields inherited from class org.apache.fop.afp.modca.AbstractNamedAFPObject
nameFields inherited from class org.apache.fop.afp.modca.AbstractTripletStructuredObject
tripletsFields inherited from class org.apache.fop.afp.modca.AbstractAFPObject
LOG, SF_CLASS, SF_HEADER_LENGTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidHelper method to write the contents of the Object.protected voidwriteEnd(OutputStream os) Helper method to write the end of the Object.protected voidHelper method to write the start of the Object.Methods inherited from class org.apache.fop.afp.modca.PageObject
addObject, canWrite, createIncludePageOverlay, createShading, toStringMethods inherited from class org.apache.fop.afp.modca.AbstractResourceGroupContainer
getResourceCount, getResourceGroup, hasResources, writeObjects, writeObjects, writeToStreamMethods inherited from class org.apache.fop.afp.modca.AbstractPageObject
createFont, createIncludePageSegment, createInvokeMediumMap, createLine, createNoOperation, createTagLogicalElement, createText, endPage, endPresentationObject, getActiveEnvironmentGroup, getHeight, getPresentationTextObject, getRotation, getTagLogicalElements, getWidth, isComplete, setCompleteMethods inherited from class org.apache.fop.afp.modca.AbstractNamedAFPObject
copySF, getName, getNameBytes, getNameLength, setNameMethods inherited from class org.apache.fop.afp.modca.AbstractTripletStructuredObject
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTripletsMethods inherited from class org.apache.fop.afp.modca.AbstractAFPObject
copySF, truncate, writeChunksToStream
-
Constructor Details
-
Overlay
public Overlay(Factory factory, String name, int width, int height, int rotation, int widthResolution, int heightResolution) Construct a new overlay object for the specified name argument, the overlay name should be an 8 character identifier.- Parameters:
factory- the resource manager of the page.name- the name of the page.width- the width of the page.height- the height of the page.rotation- the rotation of the page.widthResolution- the width resolution of the page.heightResolution- the height resolution of the page.
-
-
Method Details
-
writeStart
Helper method to write the start of the Object.- Overrides:
writeStartin classPageObject- 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 classPageObject- Parameters:
os- The stream to write to- Throws:
IOException- throws an I/O exception if one occurred
-
writeEnd
Helper method to write the end of the Object.- Overrides:
writeEndin classPageObject- Parameters:
os- The stream to write to- Throws:
IOException- an I/O exception if one occurred
-