|
fop 1.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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
An abstract container of resource objects
Nested Class Summary |
Nested classes inherited from class org.apache.fop.afp.modca.AbstractAFPObject |
AbstractAFPObject.Category, AbstractAFPObject.Type |
Field Summary | |
protected ResourceGroup |
resourceGroup
the resource group object |
protected boolean |
started
The container started state |
Fields inherited from class org.apache.fop.afp.modca.AbstractPageObject |
activeEnvironmentGroup, complete, factory, objects, rotation, tagLogicalElements |
Fields inherited from class org.apache.fop.afp.modca.AbstractNamedAFPObject |
name |
Fields inherited from class org.apache.fop.afp.modca.AbstractTripletStructuredObject |
triplets |
Fields inherited from class org.apache.fop.afp.modca.AbstractAFPObject |
log, SF_CLASS, SF_HEADER |
Constructor Summary | |
AbstractResourceGroupContainer(Factory factory)
Default constructor |
|
AbstractResourceGroupContainer(Factory factory,
java.lang.String name)
Named constructor |
|
AbstractResourceGroupContainer(Factory factory,
java.lang.String name,
int width,
int height,
int rotation,
int widthRes,
int heightRes)
Construct a new page object for the specified name argument, the page name should be an 8 character identifier. |
Method Summary | |
protected boolean |
canWrite(AbstractAFPObject obj)
Returns true if this object can be written |
protected int |
getResourceCount()
Return the number of resources in this container |
ResourceGroup |
getResourceGroup()
Returns the resource group in this resource group container |
protected boolean |
hasResources()
Returns true if this resource group container contains resources |
protected void |
writeObjects(java.util.Collection objects,
java.io.OutputStream os)
Writes a collection of Streamable to the AFP Datastream. |
protected void |
writeObjects(java.util.Collection objects,
java.io.OutputStream os,
boolean forceWrite)
Writes a collection of AbstractAFPObject s to the AFP Datastream. |
void |
writeToStream(java.io.OutputStream os)
DataStream objects must implement the writeToStream() method to write its data to the given OutputStream |
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, writeContent |
Methods inherited from class org.apache.fop.afp.modca.AbstractNamedAFPObject |
copySF, getName, getNameBytes, getNameLength, setName, toString |
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 org.apache.fop.afp.modca.AbstractStructuredObject |
writeEnd, writeStart |
Methods inherited from class org.apache.fop.afp.modca.AbstractAFPObject |
copyChunks, copySF, truncate, writeChunksToStream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected boolean started
protected ResourceGroup resourceGroup
Constructor Detail |
public AbstractResourceGroupContainer(Factory factory)
factory
- the object factorypublic AbstractResourceGroupContainer(Factory factory, java.lang.String name)
factory
- the object factoryname
- the name of this resource containerpublic AbstractResourceGroupContainer(Factory factory, java.lang.String name, int width, int height, int rotation, int widthRes, int heightRes)
factory
- the object factoryname
- the name of the page.width
- the width of the page.height
- the height of the page.rotation
- the rotation of the page.widthRes
- the width resolution of the page.heightRes
- the height resolution of the page.Method Detail |
protected int getResourceCount()
protected boolean hasResources()
public ResourceGroup getResourceGroup()
public void writeToStream(java.io.OutputStream os) throws java.io.IOException
writeToStream
in interface Streamable
writeToStream
in class AbstractStructuredObject
java.io.IOException
protected void writeObjects(java.util.Collection objects, java.io.OutputStream os) throws java.io.IOException
writeObjects
in class AbstractAFPObject
objects
- a list of AFPObjectsos
- The stream to write to
java.io.IOException
- an I/O exception of some sort has occurred.protected void writeObjects(java.util.Collection objects, java.io.OutputStream os, boolean forceWrite) throws java.io.IOException
AbstractAFPObject
s to the AFP Datastream.
objects
- a list of AFPObjectsos
- The stream to write toforceWrite
- true if writing should happen in any case
java.io.IOException
- an I/O exception of some sort has occurred.protected boolean canWrite(AbstractAFPObject obj)
obj
- an AFP object
|
fop 1.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |