ambit2.core.io
Class PDFWriter

Package class diagram package PDFWriter
java.lang.Object
  extended by org.openscience.cdk.io.DefaultChemObjectWriter
      extended by ambit2.core.io.FilesWithHeaderWriter
          extended by ambit2.core.io.PDFWriter
All Implemented Interfaces:
org.openscience.cdk.io.IChemObjectIO, org.openscience.cdk.io.IChemObjectWriter

public class PDFWriter
extends FilesWithHeaderWriter

Exporting set of structures as PDF file.


Field Summary
protected  java.awt.Dimension cell
           
protected  CompoundImageTools imageTools
           
protected  com.lowagie.text.Document pdfDoc
           
protected  com.lowagie.text.pdf.PdfWriter pdfWriter
           
protected  com.lowagie.text.pdf.PdfPTable table
           
 
Fields inherited from class ambit2.core.io.FilesWithHeaderWriter
defaultSMILESHeader, header, logger, smilesIndex, writingStarted
 
Constructor Summary
PDFWriter(java.io.OutputStream outputStream)
           
 
Method Summary
 boolean accepts(java.lang.Class classObject)
           
 void close()
           
 org.openscience.cdk.io.formats.IResourceFormat getFormat()
           
 int getSupportedDataFeatures()
           
 void setWriter(java.io.OutputStream out)
           
 void setWriter(java.io.Writer arg0)
           
 void write(org.openscience.cdk.interfaces.IChemObject object)
           
protected  void writeHeader()
           
 void writeMolecule(org.openscience.cdk.interfaces.IMolecule molecule)
           
 void writeSetOfMolecules(org.openscience.cdk.interfaces.IMoleculeSet som)
           
 
Methods inherited from class ambit2.core.io.FilesWithHeaderWriter
getHeader, setHeader, setHeader
 
Methods inherited from class org.openscience.cdk.io.DefaultChemObjectWriter
addChemObjectIOListener, fireIOSettingQuestion, getIOSettings, removeChemObjectIOListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pdfDoc

protected com.lowagie.text.Document pdfDoc

pdfWriter

protected com.lowagie.text.pdf.PdfWriter pdfWriter

table

protected com.lowagie.text.pdf.PdfPTable table

imageTools

protected CompoundImageTools imageTools

cell

protected java.awt.Dimension cell
Constructor Detail

PDFWriter

public PDFWriter(java.io.OutputStream outputStream)
          throws org.openscience.cdk.exception.CDKException
Throws:
org.openscience.cdk.exception.CDKException
Method Detail

setWriter

public void setWriter(java.io.Writer arg0)
               throws org.openscience.cdk.exception.CDKException
Throws:
org.openscience.cdk.exception.CDKException

setWriter

public void setWriter(java.io.OutputStream out)
               throws org.openscience.cdk.exception.CDKException
Throws:
org.openscience.cdk.exception.CDKException

write

public void write(org.openscience.cdk.interfaces.IChemObject object)
           throws org.openscience.cdk.exception.CDKException
Throws:
org.openscience.cdk.exception.CDKException

accepts

public boolean accepts(java.lang.Class classObject)

getSupportedDataFeatures

public int getSupportedDataFeatures()

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

getFormat

public org.openscience.cdk.io.formats.IResourceFormat getFormat()

writeHeader

protected void writeHeader()
                    throws java.io.IOException
Specified by:
writeHeader in class FilesWithHeaderWriter
Throws:
java.io.IOException

writeSetOfMolecules

public void writeSetOfMolecules(org.openscience.cdk.interfaces.IMoleculeSet som)

writeMolecule

public void writeMolecule(org.openscience.cdk.interfaces.IMolecule molecule)