public final class ActiveEnvironmentGroup extends AbstractNamedAFPObject
name, nameBytes
log
Constructor and Description |
---|
ActiveEnvironmentGroup(int width,
int height,
int widthResolution,
int heightResolution)
Default constructor for the ActiveEnvironmentGroup.
|
ActiveEnvironmentGroup(java.lang.String name,
int width,
int height,
int widthResolution,
int heightResolution)
Constructor for the ActiveEnvironmentGroup, this takes a
name parameter which must be 8 characters long.
|
Modifier and Type | Method and Description |
---|---|
void |
createFont(byte fontReference,
AFPFont font,
int size,
int orientation)
Method to create a map coded font object
|
void |
createOverlay(java.lang.String name)
Actually creates the MPO object.
|
PageDescriptor |
getPageDescriptor()
Accessor method to obtain the PageDescriptor object of the
active environment group.
|
PresentationTextDescriptor |
getPresentationTextDataDescriptor()
Accessor method to obtain the PresentationTextDataDescriptor object of
the active environment group.
|
void |
setPosition(int x,
int y,
int rotation)
Set the position of the object area
|
void |
writeDataStream(java.io.OutputStream os)
Accessor method to write the AFP datastream for the active environment group.
|
writeObjectList
public ActiveEnvironmentGroup(int width, int height, int widthResolution, int heightResolution)
width
- the page widthheight
- the page heightwidthResolution
- the page width resolutionheightResolution
- the page height resolutionpublic ActiveEnvironmentGroup(java.lang.String name, int width, int height, int widthResolution, int heightResolution)
name
- the active environment group namewidth
- the page widthheight
- the page heightwidthResolution
- the page width resolutionheightResolution
- the page height resolutionpublic void setPosition(int x, int y, int rotation)
x
- the x offsety
- the y offsetrotation
- the rotationpublic PageDescriptor getPageDescriptor()
public PresentationTextDescriptor getPresentationTextDataDescriptor()
public void writeDataStream(java.io.OutputStream os) throws java.io.IOException
writeDataStream
in class AbstractAFPObject
os
- The stream to write tojava.io.IOException
- throws if an I/O exception of some sort has occurredpublic void createFont(byte fontReference, AFPFont font, int size, int orientation)
fontReference
- the font number used as the resource identifierfont
- the fontsize
- the point size of the fontorientation
- the orientation of the font (e.g. 0, 90, 180, 270)public void createOverlay(java.lang.String name)
name
- the name of the overlay to be usedCopyright 1999-2008 The Apache Software Foundation. All Rights Reserved.