fop 0.95

org.apache.fop.render.afp.modca
Class PageDescriptor

java.lang.Object
  extended by org.apache.fop.render.afp.modca.AbstractAFPObject
      extended by org.apache.fop.render.afp.modca.AbstractDescriptor
          extended by org.apache.fop.render.afp.modca.PageDescriptor

public class PageDescriptor
extends AbstractDescriptor

The Page Descriptor structured field specifies the size and attributes of a page or overlay presentation space.


Field Summary
 
Fields inherited from class org.apache.fop.render.afp.modca.AbstractDescriptor
height, heightResolution, width, widthResolution
 
Fields inherited from class org.apache.fop.render.afp.modca.AbstractAFPObject
log
 
Constructor Summary
PageDescriptor(int width, int height, int widthResolution, int heightResolution)
          Construct a page descriptor for the specified page width and page height.
 
Method Summary
 void writeDataStream(java.io.OutputStream os)
          Accessor method to write the AFP datastream for the Page Descriptor
 
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

PageDescriptor

public PageDescriptor(int width,
                      int height,
                      int widthResolution,
                      int heightResolution)
Construct a page descriptor for the specified page width and page height.

Parameters:
width - The page width.
height - The page height.
widthResolution - The page width resolution
heightResolution - The page height resolution
Method Detail

writeDataStream

public void writeDataStream(java.io.OutputStream os)
                     throws java.io.IOException
Accessor method to write the AFP datastream for the Page Descriptor

Specified by:
writeDataStream in class AbstractAFPObject
Parameters:
os - The stream to write to
Throws:
java.io.IOException - in the event that an I/O Exception occurred

fop 0.95

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.