public class ObjectAreaPosition extends AbstractAFPObject
AbstractAFPObject.Category, AbstractAFPObject.Type
Modifier and Type | Field and Description |
---|---|
static byte |
REFCSYS_PAGE_RELATIVE
Object areas will be positioned with respect to the standard origin
|
static 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.
|
LOG, SF_CLASS, SF_HEADER_LENGTH
Constructor and Description |
---|
ObjectAreaPosition(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.
|
Modifier and Type | Method and Description |
---|---|
void |
setReferenceCoordinateSystem(byte refCSys)
Sets the reference coordinate system.
|
String |
toString() |
void |
writeToStream(OutputStream os)
DataStream objects must implement the writeToStream()
method to write its data to the given OutputStream
|
copySF, copySF, truncate, writeChunksToStream, writeObjects
public static final byte REFCSYS_PAGE_SEGMENT_RELATIVE
public static final byte REFCSYS_PAGE_RELATIVE
public ObjectAreaPosition(int x, int y, int rotation)
x
- The x coordinate.y
- The y coordinate.rotation
- The coordinate system rotation (must be 0, 90, 180, 270).public ObjectAreaPosition(int x, int y, int rotation, byte refCSys)
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)public void setReferenceCoordinateSystem(byte refCSys)
refCSys
- the reference coordinate system (normally 0x01)public void writeToStream(OutputStream os) throws IOException
os
- the outputsteam streamIOException
- an I/O exception of some sort has occurred.Copyright © 2025 Apache Software Foundation. All rights reserved.