org.apache.fop.render.afp.modca
Class ImageCellPosition

java.lang.Object
  extended byorg.apache.fop.render.afp.modca.AFPObject
      extended byorg.apache.fop.render.afp.modca.ImageCellPosition

public class ImageCellPosition
extends AFPObject

The IM Image Cell Position structured field specifies the placement, size, and replication of IM image cells.


Field Summary
 
Fields inherited from class org.apache.fop.render.afp.modca.AFPObject
LOGGER
 
Constructor Summary
ImageCellPosition(int x, int y)
          Constructor for the ImageCellPosition
 
Method Summary
 byte[] getDataStream()
          DataStream objects must implement the getDataStream() method to return a byte array of the AFP datastream.
 void setXFillSize(int xFillSize)
          Specifies the extent of the fill rectangle in the X direction, in image points.
 void setXSize(int xcSize)
          Specifies the extent in the X direction, in image points, of this image cell.
 void setYFillSize(int yFillSize)
          Specifies the extent of the fill rectangle in the Y direction, in image points.
 void setYSize(int ycSize)
          Specifies the extent in the Y direction, in image points, of this image cell.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageCellPosition

public ImageCellPosition(int x,
                         int y)
Constructor for the ImageCellPosition

Parameters:
x - The offset of image cell in X direction
y - The offset of image cell in Y direction
Method Detail

getDataStream

public byte[] getDataStream()
Description copied from class: AFPObject
DataStream objects must implement the getDataStream() method to return a byte array of the AFP datastream.

Specified by:
getDataStream in class AFPObject
Returns:
byte[] The AFP data stream

setXSize

public void setXSize(int xcSize)
Specifies the extent in the X direction, in image points, of this image cell. A value of X'FFFF' indicates that the default extent specified in bytes 28 and 29 of the Image Input Descriptor (IID) is to be used.

Parameters:
xcSize - The size to set.

setXFillSize

public void setXFillSize(int xFillSize)
Specifies the extent of the fill rectangle in the X direction, in image points. This value can be smaller than, equal to, or larger than the image cell extent in the X direction (XCSize). A value of X'FFFF' indicates that the image cell X-extent should be used as the fill rectangle X-extent. The fill rectangle is filled in the X direction by repeating the image cell in the X direction. The image cell can be truncated to fit the rectangle.

Parameters:
xFillSize - The size to set.

setYSize

public void setYSize(int ycSize)
Specifies the extent in the Y direction, in image points, of this image cell. A value of X'FFFF' indicates that the default extent specified in bytes 30 and 31 of the Image Input Descriptor (IID) is to be used.

Parameters:
ycSize - The size to set.

setYFillSize

public void setYFillSize(int yFillSize)
Specifies the extent of the fill rectangle in the Y direction, in image points. This value can be smaller than, equal to, or larger than the image cell extent in the Y direction (YCSize). A value of X'FFFF' indicates that the image cell Y-extent should be used as the fill rectangle Y-extent. The fill rectangle is filled in the Y direction by repeating the image cell in the Y direction. The image cell can be truncated to fit the rectangle.

Parameters:
yFillSize - The size to set.