ambit2.core.io
Class PDFWriter
java.lang.Object
org.openscience.cdk.io.DefaultChemObjectWriter
ambit2.core.io.FilesWithHeaderWriter
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.
Constructor Summary |
PDFWriter(java.io.OutputStream outputStream)
|
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 |
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
PDFWriter
public PDFWriter(java.io.OutputStream outputStream)
throws org.openscience.cdk.exception.CDKException
- Throws:
org.openscience.cdk.exception.CDKException
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)