Package org.apache.fop.afp.modca
Class ObjectAreaPosition
java.lang.Object
org.apache.fop.afp.modca.AbstractAFPObject
org.apache.fop.afp.modca.ObjectAreaPosition
- All Implemented Interfaces:
Streamable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.fop.afp.modca.AbstractAFPObject
AbstractAFPObject.Category, AbstractAFPObject.Type
-
Field Summary
Modifier and TypeFieldDescriptionstatic final byte
Object areas will be positioned with respect to the standard originstatic final byte
Object areas will be positioned with respect to a point that is define by the Include Page Segment (IPS) structured field.Fields inherited from class org.apache.fop.afp.modca.AbstractAFPObject
LOG, SF_CLASS, SF_HEADER_LENGTH
-
Constructor Summary
ConstructorDescriptionObjectAreaPosition
(int x, int y, int rotation) Construct an object area position for the specified object y, y position.ObjectAreaPosition
(int x, int y, int rotation, byte refCSys) Construct an object area position for the specified object y, y position. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setReferenceCoordinateSystem
(byte refCSys) Sets the reference coordinate system.toString()
void
DataStream objects must implement the writeToStream() method to write its data to the given OutputStreamMethods inherited from class org.apache.fop.afp.modca.AbstractAFPObject
copySF, copySF, truncate, writeChunksToStream, writeObjects
-
Field Details
-
REFCSYS_PAGE_SEGMENT_RELATIVE
public static final byte REFCSYS_PAGE_SEGMENT_RELATIVEObject 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_RELATIVEObject 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
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
-