Package org.apache.fop.afp
Class Factory
java.lang.Object
org.apache.fop.afp.Factory
Creator of MO:DCA structured field objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateActiveEnvironmentGroup(int width, int height, int widthRes, int heightRes) Creates a new MO:DCAActiveEnvironmentGroupcreateContainerDataDescriptor(int dataWidth, int dataHeight, int widthRes, int heightRes) Creates a new MO:DCAContainerDataDescriptorcreateDataStream(AFPPaintingState paintingState, OutputStream outputStream) Creates a newDataStreamCreates a MO:DCADocumentCreates a new GOCAGraphicsDatacreateGraphicsDataDescriptor(int xlwind, int xrwind, int ybwind, int ytwind, int widthRes, int heightRes) Creates a new GOCAGraphicsDataDescriptorCreates a new GOCAGraphicsObjectCreates an new IOCAImageContentcreateImageDataDescriptor(int width, int height, int widthRes, int heightRes) Creates a newImageDataDescriptorCreates a new IOCAImageObjectcreateImageRasterData(byte[] rasterData) Creates a new IOCAImageRasterDataCreates a new IOCAImageSegmentcreateImageSizeParameter(int hsize, int vsize, int hresol, int vresol) Creates an new IOCAImageSizeParameter.Creates an IOCAIMImageObjectcreateInclude(String name) Creates a MO:DCAIncludeObjectcreateIncludePageSegment(String name, int x, int y) Creates a MO:DCAIncludePageSegmentcreateInvokeMediumMap(String name) Creates a new MO:DCAInvokeMediumMapCreates a MO:DCAMapCodedFontcreateMapContainerData(byte optionValue) Creates a new MO:DCAMapContainerDataCreates a new MO:DCAMapDataResourcecreateObjectAreaDescriptor(int width, int height, int widthRes, int heightRes) Creates a newObjectAreaDescriptorcreateObjectAreaPosition(int x, int y, int rotation) Creates a newObjectAreaPositionCreates a new MO:DCAObjectContainerReturns a new MO:DCAObjectEnvironmentGroupcreateOverlay(int width, int height, int widthRes, int heightRes, int overlayRotation) Creates a new MO:DCAOverlay.createPage(int pageWidth, int pageHeight, int pageRotation, int pageWidthRes, int pageHeightRes) Creates a new MO:DCAPageObject.createPageDescriptor(int width, int height, int widthRes, int heightRes) Creates a new MO:DCAPageDescriptorCreates a new MO:DCAPageGroupCreates a new MO:DCAPresentationEnvironmentControlcreatePresentationTextDataDescriptor(int width, int height, int widthRes, int heightRes) Creates a new PTOCAPresentationTextDescriptorCreates a new MO:DCAPresentationTextObject.Creates a new MO:DCAResourceObjectcreateResource(String resourceName) Creates a new MO:DCAResourceObjectCreates a new MO:DCAResourceEnvironmentGroupCreates a new MO:DCAResourceGroupCreates a new MO:DCAStreamedResourceGroupCreates a MO:DCATagLogicalElementcreateTileSize(int dataWidth, int dataHeight, int dataWidthRes, int dataHeightRes)
-
Constructor Details
-
Factory
public Factory()Main constructor
-
-
Method Details
-
createImageObject
Creates a new IOCAImageObject- Returns:
- a new
ImageObject
-
createIMImageObject
Creates an IOCAIMImageObject- Returns:
- a new
IMImageObject
-
createGraphicsObject
Creates a new GOCAGraphicsObject- Returns:
- a new
GraphicsObject
-
createObjectContainer
Creates a new MO:DCAObjectContainer- Returns:
- a new
ObjectContainer
-
createResource
Creates a new MO:DCAResourceObject- Parameters:
resourceName- the resource object name- Returns:
- a new
ResourceObject
-
createResource
Creates a new MO:DCAResourceObject- Returns:
- a new
ResourceObject
-
createPageGroup
Creates a new MO:DCAPageGroup- Returns:
- a new
PageGroup
-
createActiveEnvironmentGroup
public ActiveEnvironmentGroup createActiveEnvironmentGroup(int width, int height, int widthRes, int heightRes) Creates a new MO:DCAActiveEnvironmentGroup- Parameters:
width- the page widthheight- the page heightwidthRes- the page width resolutionheightRes- the page height resolution- Returns:
- a new
ActiveEnvironmentGroup
-
createResourceGroup
Creates a new MO:DCAResourceGroup- Returns:
- a new
ResourceGroup
-
createStreamedResourceGroup
Creates a new MO:DCAStreamedResourceGroup- Parameters:
os- the outputstream of the streamed resource group- Returns:
- a new
StreamedResourceGroup
-
createPage
public PageObject createPage(int pageWidth, int pageHeight, int pageRotation, int pageWidthRes, int pageHeightRes) Creates a new MO:DCAPageObject.- Parameters:
pageWidth- the width of the pagepageHeight- the height of the pagepageRotation- the rotation of the pagepageWidthRes- the width resolution of the pagepageHeightRes- the height resolution of the page- Returns:
- a new
PageObject
-
createPresentationTextObject
Creates a new MO:DCAPresentationTextObject.- Returns:
- a new
PresentationTextObject
-
createOverlay
public Overlay createOverlay(int width, int height, int widthRes, int heightRes, int overlayRotation) Creates a new MO:DCAOverlay.- Parameters:
width- the width of the overlayheight- the height of the overlaywidthRes- the width resolution of the overlayheightRes- the height resolution of the overlayoverlayRotation- the rotation of the overlay- Returns:
- a new
Overlay.
-
createDocument
Creates a MO:DCADocument- Returns:
- a new
Document
-
createMapCodedFont
Creates a MO:DCAMapCodedFont- Returns:
- a new
MapCodedFont
-
createIncludePageSegment
Creates a MO:DCAIncludePageSegment- Parameters:
name- the page segment namex- the x coordinatey- the y coordinate- Returns:
- a new
IncludePageSegment
-
createInclude
Creates a MO:DCAIncludeObject- Parameters:
name- the name of this include object- Returns:
- a new
IncludeObject
-
createTagLogicalElement
Creates a MO:DCATagLogicalElement- Parameters:
state- the attribute state for the TLE- Returns:
- a new
TagLogicalElement
-
createDataStream
Creates a newDataStream- Parameters:
paintingState- the AFP painting stateoutputStream- an outputstream to write to- Returns:
- a new
DataStream
-
createPageDescriptor
Creates a new MO:DCAPageDescriptor- Parameters:
width- the page width.height- the page height.widthRes- the page width resolution.heightRes- the page height resolution.- Returns:
- a new
PageDescriptor
-
createObjectEnvironmentGroup
Returns a new MO:DCAObjectEnvironmentGroup- Returns:
- a new
ObjectEnvironmentGroup
-
createGraphicsData
Creates a new GOCAGraphicsData- Returns:
- a new
GraphicsData
-
createObjectAreaDescriptor
public ObjectAreaDescriptor createObjectAreaDescriptor(int width, int height, int widthRes, int heightRes) Creates a newObjectAreaDescriptor- Parameters:
width- the object width.height- the object height.widthRes- the object width resolution.heightRes- the object height resolution.- Returns:
- a new
ObjectAreaDescriptor
-
createObjectAreaPosition
Creates a newObjectAreaPosition- Parameters:
x- the x coordinate.y- the y coordinate.rotation- the coordinate system rotation (must be 0, 90, 180, 270).- Returns:
- a new
ObjectAreaPosition
-
createImageDataDescriptor
public ImageDataDescriptor createImageDataDescriptor(int width, int height, int widthRes, int heightRes) Creates a newImageDataDescriptor- Parameters:
width- the image widthheight- the image heightwidthRes- the x resolution of the imageheightRes- the y resolution of the image- Returns:
- a new
ImageDataDescriptor
-
createGraphicsDataDescriptor
public GraphicsDataDescriptor createGraphicsDataDescriptor(int xlwind, int xrwind, int ybwind, int ytwind, int widthRes, int heightRes) Creates a new GOCAGraphicsDataDescriptor- Parameters:
xlwind- the left edge of the graphics windowxrwind- the right edge of the graphics windowybwind- the top edge of the graphics windowytwind- the bottom edge of the graphics windowwidthRes- the x resolution of the graphics windowheightRes- the y resolution of the graphics window- Returns:
- a new
GraphicsDataDescriptor
-
createContainerDataDescriptor
public ContainerDataDescriptor createContainerDataDescriptor(int dataWidth, int dataHeight, int widthRes, int heightRes) Creates a new MO:DCAContainerDataDescriptor- Parameters:
dataWidth- the container data widthdataHeight- the container data heightwidthRes- the container data width resolutionheightRes- the container data height resolution- Returns:
- a new
ContainerDataDescriptor
-
createMapContainerData
Creates a new MO:DCAMapContainerData- Parameters:
optionValue- the option value- Returns:
- a new
MapContainerData
-
createMapDataResource
Creates a new MO:DCAMapDataResource- Returns:
- a new
MapDataResource
-
createPresentationTextDataDescriptor
public PresentationTextDescriptor createPresentationTextDataDescriptor(int width, int height, int widthRes, int heightRes) Creates a new PTOCAPresentationTextDescriptor- Parameters:
width- presentation widthheight- presentation heightwidthRes- resolution of presentation widthheightRes- resolution of presentation height- Returns:
- a new
PresentationTextDescriptor
-
createPresentationEnvironmentControl
Creates a new MO:DCAPresentationEnvironmentControl- Returns:
- a new
PresentationEnvironmentControl
-
createInvokeMediumMap
Creates a new MO:DCAInvokeMediumMap- Parameters:
name- the object name- Returns:
- a new
InvokeMediumMap
-
createResourceEnvironmentGroup
Creates a new MO:DCAResourceEnvironmentGroup- Returns:
- a new
ResourceEnvironmentGroup
-
createImageSegment
Creates a new IOCAImageSegment- Returns:
- a new
ImageSegment
-
createImageContent
Creates an new IOCAImageContent- Returns:
- an
ImageContent
-
createImageRasterData
Creates a new IOCAImageRasterData- Parameters:
rasterData- raster data- Returns:
- a new
ImageRasterData
-
createImageSizeParameter
Creates an new IOCAImageSizeParameter.- Parameters:
hsize- The horizontal size of the image.vsize- The vertical size of the image.hresol- The horizontal resolution of the image.vresol- The vertical resolution of the image.- Returns:
- a new
ImageSizeParameter
-
createTileTOC
-
createTileSize
-
createTilePosition
-
createTile
-
createBandImage
-