Package org.apache.fop.afp.modca
Class IMImageObject
- All Implemented Interfaces:
Streamable
An IM image data object specifies the contents of a raster image and
its placement on a page, overlay, or page segment. An IM image can be
either simple or complex. A simple image is composed of one or more Image
Raster Data (IRD) structured fields that define the raster pattern for the
entire image. A complex image is divided into regions called image cells.
Each image cell is composed of one or more IRD structured fields that define
the raster pattern for the image cell, and one Image Cell Position (ICP)
structured field that defines the position of the image cell relative to
the origin of the entire image. Each ICP also specifies the size of the
image cell and a fill rectangle into which the cell is replicated.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.fop.afp.modca.AbstractAFPObject
AbstractAFPObject.Category, AbstractAFPObject.Type -
Field Summary
Fields inherited from class org.apache.fop.afp.modca.AbstractNamedAFPObject
nameFields inherited from class org.apache.fop.afp.modca.AbstractTripletStructuredObject
tripletsFields inherited from class org.apache.fop.afp.modca.AbstractAFPObject
LOG, SF_CLASS, SF_HEADER_LENGTH -
Constructor Summary
ConstructorsConstructorDescriptionIMImageObject(String name) Constructor for the image object with the specified name, the name must be a fixed length of eight characters. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetImageCellPosition(ImageCellPosition imageCellPosition) Sets the ImageCellPosition.voidsetImageInputDescriptor(ImageInputDescriptor imageInputDescriptor) Sets the ImageInputDescriptor.voidsetImageOutputControl(ImageOutputControl imageOutputControl) Sets the ImageOutputControl.voidsetImageRasterData(ImageRasterData imageRasterData) Sets the ImageRastorData.protected voidHelper method to write the contents of the Object.protected voidwriteEnd(OutputStream os) Helper method to write the end of the Object.protected voidHelper method to write the start of the Object.Methods inherited from class org.apache.fop.afp.modca.AbstractNamedAFPObject
copySF, getName, getNameBytes, getNameLength, setName, toStringMethods inherited from class org.apache.fop.afp.modca.AbstractTripletStructuredObject
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTripletsMethods inherited from class org.apache.fop.afp.modca.AbstractStructuredObject
writeToStreamMethods inherited from class org.apache.fop.afp.modca.AbstractAFPObject
copySF, truncate, writeChunksToStream, writeObjects
-
Constructor Details
-
IMImageObject
Constructor for the image object with the specified name, the name must be a fixed length of eight characters.- Parameters:
name- The name of the image.
-
-
Method Details
-
setImageOutputControl
Sets the ImageOutputControl.- Parameters:
imageOutputControl- The imageOutputControl to set
-
setImageCellPosition
Sets the ImageCellPosition.- Parameters:
imageCellPosition- The imageCellPosition to set
-
setImageInputDescriptor
Sets the ImageInputDescriptor.- Parameters:
imageInputDescriptor- The imageInputDescriptor to set
-
setImageRasterData
Sets the ImageRastorData.- Parameters:
imageRasterData- The imageRasterData to set
-
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
-
writeStart
Helper method to write the start of the Object.- Overrides:
writeStartin classAbstractStructuredObject- Parameters:
os- The stream to write to- Throws:
IOException- throws an I/O exception if one occurred
-
writeEnd
Helper method to write the end of the Object.- Overrides:
writeEndin classAbstractStructuredObject- Parameters:
os- The stream to write to- Throws:
IOException- an I/O exception if one occurred
-