org.apache.fop.afp.modca
Class AbstractResourceEnvironmentGroupContainer
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.AbstractNamedAFPObject
org.apache.fop.afp.modca.AbstractPageObject
org.apache.fop.afp.modca.AbstractResourceGroupContainer
org.apache.fop.afp.modca.AbstractResourceEnvironmentGroupContainer
- All Implemented Interfaces:
- Completable, Streamable
- Direct Known Subclasses:
- Document, PageGroup
public abstract class AbstractResourceEnvironmentGroupContainer
- extends AbstractResourceGroupContainer
An abstract class which encapsulates the common features of
Document and PageGroup resource containers
Methods inherited from class org.apache.fop.afp.modca.AbstractPageObject |
addObject, createFont, createIncludePageSegment, createLine, createNoOperation, createTagLogicalElement, createText, endPage, endPresentationObject, getActiveEnvironmentGroup, getHeight, getPresentationTextObject, getRotation, getTagLogicalElements, getWidth, isComplete, setComplete |
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, wait, wait, wait |
resourceEnvironmentGroup
protected ResourceEnvironmentGroup resourceEnvironmentGroup
- The resource environment group used to store complex resources
AbstractResourceEnvironmentGroupContainer
public AbstractResourceEnvironmentGroupContainer(Factory factory,
java.lang.String name)
- Main constructor
- Parameters:
factory
- the object factoryname
- the name of this resource container
addPage
public void addPage(PageObject page)
- Adds a page to the resource container.
- Parameters:
page
- - the Page object
addPageGroup
public void addPageGroup(PageGroup pageGroup)
- Adds a PageGroup to the resource container.
- Parameters:
pageGroup
- the PageGroup object
createInvokeMediumMap
public void createInvokeMediumMap(java.lang.String name)
- Creates an InvokeMediaMap on the page.
- Parameters:
name
- the name of the media map
writeContent
protected void writeContent(java.io.OutputStream os)
throws java.io.IOException
- Helper method to write the contents of the Object.
- Overrides:
writeContent
in class AbstractPageObject
- Parameters:
os
- The stream to write to
- Throws:
java.io.IOException
- throws an I/O exception if one occurred
getResourceEnvironmentGroup
protected ResourceEnvironmentGroup getResourceEnvironmentGroup()
- Returns the resource environment group
- Returns:
- the resource environment group
Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.