Class AbstractEnvironmentGroup
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.AbstractEnvironmentGroup
- All Implemented Interfaces:
Streamable
- Direct Known Subclasses:
ActiveEnvironmentGroup, ResourceEnvironmentGroup
A base class that encapsulates common features of
ActiveEnvironmentGroup and ResourceEnvironmentGroup
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractAFPObject
AbstractAFPObject.Category, AbstractAFPObject.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Listthe collection of MapDataResource objectsprotected Listthe collection of MapPageOverlay objectsFields inherited from class AbstractNamedAFPObject
nameFields inherited from class AbstractTripletStructuredObject
tripletsFields inherited from class AbstractAFPObject
LOG, SF_CLASS, SF_HEADER_LENGTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateOverlay(String name) Actually creates the MPO object.private MapPageOverlayGetter method for the most recent MapPageOverlay added to the Active Environment Group (returns null if no MapPageOverlay exist)protected ObjectgetLastElement(List list) Get last element.private Listprotected voidHelper method to write the contents of the Object.Methods inherited from class AbstractNamedAFPObject
copySF, getName, getNameBytes, getNameLength, setName, toStringMethods inherited from class AbstractTripletStructuredObject
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTripletsMethods inherited from class AbstractStructuredObject
writeEnd, writeStart, writeToStreamMethods inherited from class AbstractAFPObject
copySF, truncate, writeChunksToStream, writeObjects
-
Field Details
-
mapDataResources
the collection of MapDataResource objects -
mapPageOverlays
the collection of MapPageOverlay objects
-
-
Constructor Details
-
AbstractEnvironmentGroup
-
-
Method Details
-
getMapPageOverlays
-
createOverlay
Actually creates the MPO object. Also creates the supporting object (an IPO)- Parameters:
name- the name of the overlay to be used
-
getCurrentMapPageOverlay
Getter method for the most recent MapPageOverlay added to the Active Environment Group (returns null if no MapPageOverlay exist)- Returns:
- the most recent Map Coded Font
-
getLastElement
-
writeContent
Helper method to write the contents of the Object.- Overrides:
writeContentin classAbstractStructuredObject- Parameters:
os- The stream to write to- Throws:
IOException- throws an I/O exception if one occurred
-