org.apache.fop.render.afp.modca
Class ObjectEnvironmentGroup
public final class ObjectEnvironmentGroup
An Object Environment Group (OEG) may be associated with an object and is contained
within the object's begin-end envelope.
The object environment group defines the object's origin and orientation on the page,
and can contain font and color attribute table information. The scope of an object
environment group is the scope of its containing object.
An application that creates a data-stream document may omit some of the parameters
normally contained in the object environment group, or it may specify that one or
more default values are to be used.
void | setImageData(int xresol, int yresol, int width, int height) - Set the dimensions of the image.
|
void | setObjectArea(int x, int y, int width, int height, int rotation, int widthResolution, int heightResolution) - Sets the object area parameters.
|
void | writeDataStream(OutputStream os) - Accessor method to obtain write the AFP datastream for
the object environment group.
|
ObjectEnvironmentGroup
public ObjectEnvironmentGroup()
Default constructor for the ObjectEnvironmentGroup.
ObjectEnvironmentGroup
public ObjectEnvironmentGroup(String name)
Constructor for the ObjectEnvironmentGroup, this takes a
name parameter which must be 8 characters long.
name
- the object environment group name
setImageData
public void setImageData(int xresol,
int yresol,
int width,
int height)
Set the dimensions of the image.
xresol
- the x resolution of the imageyresol
- the y resolution of the imagewidth
- the image widthheight
- the image height
setObjectArea
public void setObjectArea(int x,
int y,
int width,
int height,
int rotation,
int widthResolution,
int heightResolution)
Sets the object area parameters.
x
- the x position of the objecty
- the y position of the objectwidth
- the object widthheight
- the object heightrotation
- the object orientationwidthResolution
- the object resolution widthheightResolution
- the object resolution height
writeDataStream
public void writeDataStream(OutputStream os)
throws IOException
Accessor method to obtain write the AFP datastream for
the object environment group.
- writeDataStream in interface AbstractAFPObject
os
- The stream to write to
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.