|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.render.afp.modca.AbstractAFPObject
org.apache.fop.render.afp.modca.AbstractNamedAFPObject
org.apache.fop.render.afp.modca.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.
Field Summary |
---|
Fields inherited from class org.apache.fop.render.afp.modca.AbstractNamedAFPObject |
---|
name, nameBytes |
Fields inherited from class org.apache.fop.render.afp.modca.AbstractAFPObject |
---|
log |
Constructor Summary | |
---|---|
ObjectEnvironmentGroup()
Default constructor for the ObjectEnvironmentGroup. |
|
ObjectEnvironmentGroup(java.lang.String name)
Constructor for the ObjectEnvironmentGroup, this takes a name parameter which must be 8 characters long. |
Method Summary | |
---|---|
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(java.io.OutputStream os)
Accessor method to obtain write the AFP datastream for the object environment group. |
Methods inherited from class org.apache.fop.render.afp.modca.AbstractAFPObject |
---|
writeObjectList |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectEnvironmentGroup()
public ObjectEnvironmentGroup(java.lang.String name)
name
- the object environment group nameMethod Detail |
---|
public void setObjectArea(int x, int y, int width, int height, int rotation, int widthResolution, int heightResolution)
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 heightpublic void setImageData(int xresol, int yresol, int width, int height)
xresol
- the x resolution of the imageyresol
- the y resolution of the imagewidth
- the image widthheight
- the image heightpublic void writeDataStream(java.io.OutputStream os) throws java.io.IOException
writeDataStream
in class AbstractAFPObject
os
- The stream to write to
java.io.IOException
- throw if an I/O exception of some sort has occurred
|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |