fr.opensagres.xdocreport.itext.extension
Class ExtendedDocument

java.lang.Object
  extended by com.lowagie.text.Document
      extended by fr.opensagres.xdocreport.itext.extension.ExtendedDocument
All Implemented Interfaces:
com.lowagie.text.DocListener, com.lowagie.text.ElementListener, IITextContainer, IITextElement, EventListener
Direct Known Subclasses:
StylableDocument, StylableDocument

public class ExtendedDocument
extends com.lowagie.text.Document
implements IITextContainer


Field Summary
protected  float originMarginBottom
           
protected  float originMarginLeft
           
protected  float originMarginRight
           
protected  float originMarginTop
           
protected  com.lowagie.text.pdf.PdfWriter writer
           
 
Fields inherited from class com.lowagie.text.Document
chapternumber, close, compress, footer, header, htmlStyleClass, javaScript_onLoad, javaScript_onUnLoad, marginBottom, marginLeft, marginMirroring, marginMirroringTopBottom, marginRight, marginTop, open, pageN, pageSize, plainRandomAccess, wmfFontCorrection
 
Constructor Summary
ExtendedDocument(OutputStream out)
           
ExtendedDocument(OutputStream out, com.lowagie.text.Rectangle rectangle)
           
ExtendedDocument(OutputStream out, com.lowagie.text.Rectangle rectangle, float marginLeft, float marginRight, float marginTop, float marginBottom)
           
 
Method Summary
 boolean add(com.lowagie.text.Element element)
           
 void addElement(com.lowagie.text.Element element)
           
 void addMasterPage(IMasterPage currentMasterPage)
           
protected  ExtendedHeaderFooter createExtendedHeaderFooter()
           
 IMasterPage getActiveMasterPage()
           
 IMasterPage getDefaultMasterPage()
           
 IITextContainer getITextContainer()
           
 IMasterPage getMasterPage(String masterPageName)
           
 PageOrientation getOrientation()
           
 float getOriginMarginBottom()
           
 float getOriginMarginLeft()
           
 float getOriginMarginRight()
           
 float getOriginMarginTop()
           
 int getPageNumber()
           
 void setActiveMasterPage(IMasterPage masterPage)
           
 void setActiveMasterPage(String masterPageName)
           
 void setITextContainer(IITextContainer container)
           
 void setOrientation(PageOrientation orientation)
           
 boolean setOriginalMargins(float marginLeft, float marginRight, float marginTop, float marginBottom)
           
 
Methods inherited from class com.lowagie.text.Document
addAuthor, addCreationDate, addCreator, addDocListener, addHeader, addKeywords, addProducer, addSubject, addTitle, bottom, bottom, bottomMargin, close, getHtmlStyleClass, getJavaScript_onLoad, getJavaScript_onUnLoad, getPageSize, getProduct, getRelease, getVersion, isMarginMirroring, isOpen, left, left, leftMargin, newPage, open, removeDocListener, resetFooter, resetHeader, resetPageCount, right, right, rightMargin, setFooter, setHeader, setHtmlStyleClass, setJavaScript_onLoad, setJavaScript_onUnLoad, setMarginMirroring, setMarginMirroringTopBottom, setMargins, setPageCount, setPageSize, top, top, topMargin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

writer

protected final com.lowagie.text.pdf.PdfWriter writer

originMarginTop

protected float originMarginTop

originMarginBottom

protected float originMarginBottom

originMarginRight

protected float originMarginRight

originMarginLeft

protected float originMarginLeft
Constructor Detail

ExtendedDocument

public ExtendedDocument(OutputStream out,
                        com.lowagie.text.Rectangle rectangle)
                 throws com.lowagie.text.DocumentException
Throws:
com.lowagie.text.DocumentException

ExtendedDocument

public ExtendedDocument(OutputStream out,
                        com.lowagie.text.Rectangle rectangle,
                        float marginLeft,
                        float marginRight,
                        float marginTop,
                        float marginBottom)
                 throws com.lowagie.text.DocumentException
Throws:
com.lowagie.text.DocumentException

ExtendedDocument

public ExtendedDocument(OutputStream out)
                 throws com.lowagie.text.DocumentException
Throws:
com.lowagie.text.DocumentException
Method Detail

createExtendedHeaderFooter

protected ExtendedHeaderFooter createExtendedHeaderFooter()

getPageNumber

public int getPageNumber()
Overrides:
getPageNumber in class com.lowagie.text.Document

setOriginalMargins

public boolean setOriginalMargins(float marginLeft,
                                  float marginRight,
                                  float marginTop,
                                  float marginBottom)

addElement

public void addElement(com.lowagie.text.Element element)
Specified by:
addElement in interface IITextContainer

add

public boolean add(com.lowagie.text.Element element)
            throws com.lowagie.text.DocumentException
Specified by:
add in interface com.lowagie.text.ElementListener
Overrides:
add in class com.lowagie.text.Document
Throws:
com.lowagie.text.DocumentException

getDefaultMasterPage

public IMasterPage getDefaultMasterPage()

getOriginMarginBottom

public float getOriginMarginBottom()

getOriginMarginLeft

public float getOriginMarginLeft()

getOriginMarginRight

public float getOriginMarginRight()

getOriginMarginTop

public float getOriginMarginTop()

setActiveMasterPage

public void setActiveMasterPage(IMasterPage masterPage)

getActiveMasterPage

public IMasterPage getActiveMasterPage()

addMasterPage

public void addMasterPage(IMasterPage currentMasterPage)

setActiveMasterPage

public void setActiveMasterPage(String masterPageName)

getMasterPage

public IMasterPage getMasterPage(String masterPageName)

getITextContainer

public IITextContainer getITextContainer()
Specified by:
getITextContainer in interface IITextElement

setITextContainer

public void setITextContainer(IITextContainer container)
Specified by:
setITextContainer in interface IITextElement

getOrientation

public PageOrientation getOrientation()

setOrientation

public void setOrientation(PageOrientation orientation)


Copyright © 2013. All rights reserved.