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.
|
java.lang.String |
toString() |
void |
writeToStream(java.io.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(java.io.OutputStream os) throws java.io.IOException
os
- the outputsteam streamjava.io.IOException
- an I/O exception of some sort has occurred.public java.lang.String toString()
toString
in class java.lang.Object
Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.