Class ObjectAreaPosition

java.lang.Object
org.apache.fop.afp.modca.AbstractAFPObject
org.apache.fop.afp.modca.ObjectAreaPosition
All Implemented Interfaces:
Streamable

public class ObjectAreaPosition extends AbstractAFPObject
The Object Area Position structured field specifies the origin and orientation of the object area, and the origin and orientation of the object content within the object area.
  • Field Details

    • REFCSYS_PAGE_SEGMENT_RELATIVE

      public static final byte REFCSYS_PAGE_SEGMENT_RELATIVE
      Object areas will be positioned with respect to a point that is define by the Include Page Segment (IPS) structured field.
      See Also:
    • REFCSYS_PAGE_RELATIVE

      public static final byte REFCSYS_PAGE_RELATIVE
      Object areas will be positioned with respect to the standard origin
      See Also:
  • Constructor Details

    • ObjectAreaPosition

      public ObjectAreaPosition(int x, int y, int rotation)
      Construct an object area position for the specified object y, y position.
      Parameters:
      x - The x coordinate.
      y - The y coordinate.
      rotation - The coordinate system rotation (must be 0, 90, 180, 270).
    • ObjectAreaPosition

      public ObjectAreaPosition(int x, int y, int rotation, byte refCSys)
      Construct an object area position for the specified object y, y position.
      Parameters:
      x - The x coordinate.
      y - The y coordinate.
      rotation - The coordinate system rotation (must be 0, 90, 180, 270).
      refCSys - the reference coordinate system (normally 0x01)
  • Method Details

    • setReferenceCoordinateSystem

      public void setReferenceCoordinateSystem(byte refCSys)
      Sets the reference coordinate system.
      Parameters:
      refCSys - the reference coordinate system (normally 0x01)
    • writeToStream

      public void writeToStream(OutputStream os) throws IOException
      DataStream objects must implement the writeToStream() method to write its data to the given OutputStream
      Parameters:
      os - the outputsteam stream
      Throws:
      IOException - an I/O exception of some sort has occurred.
    • toString

      public String toString()
      Overrides:
      toString in class Object