org.apache.fop.render.afp.modca

Class ResourceGroup


public final class ResourceGroup
extends AbstractNamedAFPObject

A Resource Group contains a set of overlays.

Field Summary

Fields inherited from class org.apache.fop.render.afp.modca.AbstractNamedAFPObject

_name, _nameBytes

Fields inherited from class org.apache.fop.render.afp.modca.AbstractAFPObject

log

Constructor Summary

ResourceGroup()
ResourceGroup(String name)
Constructor for the ResourceGroup, this takes a name parameter which must be 8 characters long.

Method Summary

void
addOverlay(Overlay overlay)
Adds an overlay to the resource group
List
getOverlays()
Returns the list of overlays
void
writeDataStream(OutputStream os)
Accessor method to obtain write the AFP datastream for the resource group.

Methods inherited from class org.apache.fop.render.afp.modca.AbstractAFPObject

writeDataStream, writeObjectList

Constructor Details

ResourceGroup

public ResourceGroup()

ResourceGroup

public ResourceGroup(String name)
Constructor for the ResourceGroup, this takes a name parameter which must be 8 characters long.
Parameters:
name - the resource group name

Method Details

addOverlay

public void addOverlay(Overlay overlay)
Adds an overlay to the resource group
Parameters:
overlay - the overlay to add

getOverlays

public List getOverlays()
Returns the list of overlays
Returns:
the list of overlays

writeDataStream

public void writeDataStream(OutputStream os)
            throws IOException
Accessor method to obtain write the AFP datastream for the resource group.
Overrides:
writeDataStream in interface AbstractAFPObject
Parameters:
os - The stream to write to

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.