Package org.apache.fop.afp
Class AFPDataObjectFactory
java.lang.Object
org.apache.fop.afp.AFPDataObjectFactory
Factory for high level data objects (Image/Graphics etc)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateGraphic(AFPGraphicsObjectInfo graphicsObjectInfo) Creates and returns a new graphics object.createImage(AFPImageObjectInfo imageObjectInfo) Creates and configures an IOCA Image Object.createInclude(String includeName, AFPDataObjectInfo dataObjectInfo) Creates and returns a new include object.createObjectContainer(AFPDataObjectInfo dataObjectInfo) Creates and configures an ObjectContainer.createResource(AbstractNamedAFPObject namedObj, AFPResourceInfo resourceInfo, Registry.ObjectType objectType) Creates a resource object wrapper for named includable data objects
-
Constructor Details
-
AFPDataObjectFactory
Main constructor- Parameters:
factory- an object factory
-
-
Method Details
-
createObjectContainer
Creates and configures an ObjectContainer.- Parameters:
dataObjectInfo- the object container info- Returns:
- a newly created Object Container
-
createImage
Creates and configures an IOCA Image Object.- Parameters:
imageObjectInfo- the image object info- Returns:
- a newly created IOCA Image Object
-
createGraphic
Creates and returns a new graphics object.- Parameters:
graphicsObjectInfo- the graphics object info- Returns:
- a new graphics object
-
createInclude
Creates and returns a new include object.- Parameters:
includeName- the include namedataObjectInfo- a data object info- Returns:
- a new include object
-
createResource
public ResourceObject createResource(AbstractNamedAFPObject namedObj, AFPResourceInfo resourceInfo, Registry.ObjectType objectType) Creates a resource object wrapper for named includable data objects- Parameters:
namedObj- an named objectresourceInfo- resource informationobjectType- the object type- Returns:
- a new resource object wrapper
-