org.apache.fop.render.afp.modca
Class ActiveEnvironmentGroup
public final class ActiveEnvironmentGroup
An Active Environment Group (AEG) is associated with each page,
and is contained in the page's begin-end envelope in the data stream.
The active environment group contains layout and formatting information
that defines the measurement units and size of the page, and may contain
resource information.
Any objects that are required for page presentation and that are to be
treated as resource objects must be mapped with a map structured field
in the AEG. The scope of an active environment group is the scope of its
containing page or overlay.
ActiveEnvironmentGroup(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.
|
ActiveEnvironmentGroup(int width, int height, int widthResolution, int heightResolution) - Default constructor for the ActiveEnvironmentGroup.
|
ActiveEnvironmentGroup
public ActiveEnvironmentGroup(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.
name
- the active environment group namewidth
- the page widthheight
- the page heightwidthResolution
- the page width resolutionheightResolution
- the page height resolution
ActiveEnvironmentGroup
public ActiveEnvironmentGroup(int width,
int height,
int widthResolution,
int heightResolution)
Default constructor for the ActiveEnvironmentGroup.
width
- the page widthheight
- the page heightwidthResolution
- the page width resolutionheightResolution
- the page height resolution
createFont
public void createFont(byte fontReference,
AFPFont font,
int size,
int orientation)
Method to create a map coded font object
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)
createOverlay
public void createOverlay(String name)
Actually creates the MPO object.
Also creates the supporting object (an IPO)
name
- the name of the overlay to be used
getPageDescriptor
public PageDescriptor getPageDescriptor()
Accessor method to obtain the PageDescriptor object of the
active environment group.
- the page descriptor object
getPresentationTextDataDescriptor
public PresentationTextDescriptor getPresentationTextDataDescriptor()
Accessor method to obtain the PresentationTextDataDescriptor object of
the active environment group.
- the presentation text descriptor
setPosition
public void setPosition(int x,
int y,
int rotation)
Set the position of the object area
x
- the x offsety
- the y offsetrotation
- the rotation
writeDataStream
public void writeDataStream(OutputStream os)
throws IOException
Accessor method to write the AFP datastream for the active environment group.
- writeDataStream in interface AbstractAFPObject
os
- The stream to write to
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.