fop 0.95

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

java.lang.Object
  extended by org.apache.fop.render.afp.modca.AbstractAFPObject
      extended by org.apache.fop.render.afp.modca.ImageOutputControl

public class ImageOutputControl
extends AbstractAFPObject

The IM Image Output Control structured field specifies the position and orientation of the IM image object area and the mapping of the image points to presentation device pels.


Field Summary
 
Fields inherited from class org.apache.fop.render.afp.modca.AbstractAFPObject
log
 
Constructor Summary
ImageOutputControl(int x, int y)
          Constructor for the ImageOutputControl The x parameter specifies the offset, along the X-axis, of the IM image object area origin to the origin of the including page and the y parameter specifies the offset along the Y-axis.
 
Method Summary
 void setOrientation(int orientation)
          Sets the orientation which specifies the amount of clockwise rotation of the IM image object area.
 void setSinglepoint(boolean singlepoint)
          Sets the singlepoint, if true map an image point to a single presentation device pel in the IM image object area.
 void writeDataStream(java.io.OutputStream os)
          Accessor method to write the AFP datastream for the Image Output Control
 
Methods inherited from class org.apache.fop.render.afp.modca.AbstractAFPObject
writeObjectList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageOutputControl

public ImageOutputControl(int x,
                          int y)
Constructor for the ImageOutputControl The x parameter specifies the offset, along the X-axis, of the IM image object area origin to the origin of the including page and the y parameter specifies the offset along the Y-axis. The offset is specified in image points and is resolved using the units of measure specified for the image in the IID structured field.

Parameters:
x - The X-axis offset.
y - The Y-axis offset.
Method Detail

writeDataStream

public void writeDataStream(java.io.OutputStream os)
                     throws java.io.IOException
Accessor method to write the AFP datastream for the Image Output Control

Specified by:
writeDataStream in class AbstractAFPObject
Parameters:
os - The stream to write to
Throws:
java.io.IOException - if an I/O exception occured

setOrientation

public void setOrientation(int orientation)
Sets the orientation which specifies the amount of clockwise rotation of the IM image object area.

Parameters:
orientation - The orientation to set.

setSinglepoint

public void setSinglepoint(boolean singlepoint)
Sets the singlepoint, if true map an image point to a single presentation device pel in the IM image object area. If false map an image point to two presentation device pels in the IM image object area (double-dot)

Parameters:
singlepoint - Use the singlepoint basis when true.

fop 0.95

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