org.apache.fop.render.afp.modca

Class ImageObject


public class ImageObject
extends AbstractNamedAFPObject

An IOCA Image Data Object

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

ImageObject(String name)
Constructor for the image object with the specified name, the name must be a fixed length of eight characters.

Method Summary

void
setImageCompression(byte compression)
Sets the image compression.
void
setImageData(byte[] data)
Set the data of the image.
void
setImageEncoding(byte encoding)
Sets the image encoding.
void
setImageIDEColorModel(byte colorModel)
Sets the image IDE color model.
void
setImageIDESize(byte size)
Sets the image IDE size.
void
setImageParameters(int xresol, int yresol, int width, int height)
Set the dimensions of the image.
void
setImageViewport(int x, int y, int w, int h, int r, int wr, int hr)
Sets the image display area position and size.
void
setObjectEnvironmentGroup(ObjectEnvironmentGroup objectEnvironmentGroup)
Sets the ObjectEnvironmentGroup.
void
writeDataStream(OutputStream os)
Accessor method to write the AFP datastream for the Image Object

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

writeDataStream, writeObjectList

Constructor Details

ImageObject

public ImageObject(String name)
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

setImageCompression

public void setImageCompression(byte compression)
Sets the image compression.
Parameters:
compression - The image compression.

setImageData

public void setImageData(byte[] data)
Set the data of the image.
Parameters:
data - The image data

setImageEncoding

public void setImageEncoding(byte encoding)
Sets the image encoding.
Parameters:
encoding - The image encoding.

setImageIDEColorModel

public void setImageIDEColorModel(byte colorModel)
Sets the image IDE color model.
Parameters:
colorModel - the IDE color model.

setImageIDESize

public void setImageIDESize(byte size)
Sets the image IDE size.
Parameters:
size - The IDE size.

setImageParameters

public void setImageParameters(int xresol,
                               int yresol,
                               int width,
                               int height)
Set the dimensions of the image.
Parameters:
xresol - the x resolution of the image
yresol - the y resolution of the image
width - the image width
height - the image height

setImageViewport

public void setImageViewport(int x,
                             int y,
                             int w,
                             int h,
                             int r,
                             int wr,
                             int hr)
Sets the image display area position and size.
Parameters:
x - the x position of the image
y - the y position of the image
w - the width of the image
h - the height of the image
r - the rotation of the image
wr - the width resolution of the image
hr - the height resolution of the image

setObjectEnvironmentGroup

public void setObjectEnvironmentGroup(ObjectEnvironmentGroup objectEnvironmentGroup)
Sets the ObjectEnvironmentGroup.
Parameters:
objectEnvironmentGroup - The objectEnvironmentGroup to set

writeDataStream

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

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