com.mindfusion.pdf
Class PdfPage

java.lang.Object
  extended by com.mindfusion.pdf.PdfObject
      extended by com.mindfusion.pdf.PdfPage
All Implemented Interfaces:
INotify<PdfObject>, IPdfSaver, java.lang.Comparable

public class PdfPage
extends PdfObject


Field Summary
 java.lang.Object objectsLock
           
 
Fields inherited from class com.mindfusion.pdf.PdfObject
currentRotation, currentTransform, id, offset, page, parent, pdfType, size
 
Constructor Summary
PdfPage(PdfDocument _doc)
           
PdfPage(PdfDocument _doc, java.awt.geom.Rectangle2D _rect)
           
 
Method Summary
 void AddObject(PdfObject o)
           
 PdfFont Font(java.awt.Font font)
           
 java.lang.String getClipStr()
           
protected  byte[] getContent()
           
 java.awt.geom.Rectangle2D getCropRect()
           
 PdfDocument getDocument()
          private PdfDocument document = null; public PdfDocument getDocument() { return isRoot() ? document : page.getDocument(); }
 java.awt.geom.Rectangle2D getLayoutRect()
           
 NotifyableList<PdfObject> getPageObjects()
           
 NotifyableList<PdfObject> getPageObjectsC()
           
 java.awt.geom.AffineTransform getPageTransform()
           
 PdfImage Image(java.awt.Image img)
           
 PdfImage Image(java.awt.Image img, java.awt.Dimension dim)
           
 PdfFont newFont(java.awt.Font font)
           
 PdfFont newFont(java.awt.Font font, java.lang.String name)
           
 PdfImage newImage(java.awt.Image img, java.awt.Dimension dim)
           
 void Save(PdfWriter writer)
           
 void setDocument(PdfDocument document)
           
 java.lang.String toString()
           
 java.lang.String toString(int type)
           
 java.lang.String toString(int type, java.lang.String pattern, java.lang.String element)
           
 
Methods inherited from class com.mindfusion.pdf.PdfObject
compare, compareTo, getCollectionId, getCurrentRotation, getCurrentTransform, getId, getName, getObjectFooter, getObjectHeader, getOffset, getPage, getParent, getPdfType, getSize, isParentless, isRoot, OnAdded, OnChanged, registerObject, setCollectionId, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

objectsLock

public final java.lang.Object objectsLock
Constructor Detail

PdfPage

public PdfPage(PdfDocument _doc)
        throws java.lang.IllegalArgumentException,
               UnsupportedDataTypeException,
               java.io.IOException
Throws:
java.lang.IllegalArgumentException
UnsupportedDataTypeException
java.io.IOException

PdfPage

public PdfPage(PdfDocument _doc,
               java.awt.geom.Rectangle2D _rect)
        throws java.lang.IllegalArgumentException,
               UnsupportedDataTypeException,
               java.io.IOException
Throws:
java.lang.IllegalArgumentException
UnsupportedDataTypeException
java.io.IOException
Method Detail

AddObject

public void AddObject(PdfObject o)

getContent

protected byte[] getContent()
                     throws java.io.IOException
Overrides:
getContent in class PdfObject
Throws:
java.io.IOException

Save

public void Save(PdfWriter writer)
          throws java.io.IOException
Specified by:
Save in interface IPdfSaver
Overrides:
Save in class PdfObject
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toString

public java.lang.String toString(int type)
                          throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

toString

public java.lang.String toString(int type,
                                 java.lang.String pattern,
                                 java.lang.String element)

Font

public PdfFont Font(java.awt.Font font)

newFont

public PdfFont newFont(java.awt.Font font)

newFont

public PdfFont newFont(java.awt.Font font,
                       java.lang.String name)

Image

public PdfImage Image(java.awt.Image img,
                      java.awt.Dimension dim)

Image

public PdfImage Image(java.awt.Image img)

newImage

public PdfImage newImage(java.awt.Image img,
                         java.awt.Dimension dim)

getPageObjects

public NotifyableList<PdfObject> getPageObjects()

getPageObjectsC

public NotifyableList<PdfObject> getPageObjectsC()

getClipStr

public java.lang.String getClipStr()

getDocument

public PdfDocument getDocument()
Description copied from class: PdfObject
private PdfDocument document = null; public PdfDocument getDocument() { return isRoot() ? document : page.getDocument(); }

Overrides:
getDocument in class PdfObject

setDocument

public void setDocument(PdfDocument document)

getLayoutRect

public java.awt.geom.Rectangle2D getLayoutRect()

getCropRect

public java.awt.geom.Rectangle2D getCropRect()

getPageTransform

public java.awt.geom.AffineTransform getPageTransform()