Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

joelib.io.types
Class PDF  view PDF download PDF.java

java.lang.Object
  extended byjoelib.io.types.PDF
All Implemented Interfaces:
joelib.io.MoleculeFileType, joelib.io.PropertyWriter

public class PDF
extends java.lang.Object
implements joelib.io.MoleculeFileType, joelib.io.PropertyWriter

Atom representation.


Field Summary
private static int DEFAULT_BORDER
           
private static int DEFAULT_FONT_OFFSET
           
private static int DEFAULT_FONT_SIZE
           
private static java.lang.String description
           
private  com.lowagie.text.Document document
           
private static java.lang.String[] extensions
           
private  boolean firstMoleculeWritten
           
private  int fontSize
           
private  int fontSizeDelta
           
private static org.apache.log4j.Category logger
          Obtain a suitable logger.
private  int pageBorder
           
private static int WRITE_MAX_CHARACTERS
           
private  com.lowagie.text.pdf.PdfWriter writer
           
 
Constructor Summary
PDF()
           
 
Method Summary
 void closeReader()
          Description of the Method
 void closeWriter()
          Description of the Method
 void initReader(java.io.InputStream is)
          Description of the Method
 void initWriter(java.io.OutputStream os)
          Description of the Method
 java.lang.String inputDescription()
          Description of the Method
 java.lang.String[] inputFileExtensions()
          Description of the Method
 java.lang.String outputDescription()
          Description of the Method
 java.lang.String[] outputFileExtensions()
          Description of the Method
 java.lang.String read()
          Reads an molecule entry as (unparsed) String representation.
 boolean read(joelib.molecule.JOEMol mol)
          Description of the Method
 boolean read(joelib.molecule.JOEMol mol, java.lang.String title)
          Loads an molecule in MDL SD-MOL format and sets the title.
 boolean readable()
          Returns true if this molecule data type is readable.
 boolean skipReaderEntry()
          Description of the Method
 boolean write(joelib.molecule.JOEMol mol)
          Description of the Method
 boolean write(joelib.molecule.JOEMol mol, java.lang.String title)
          Description of the Method
 boolean write(joelib.molecule.JOEMol mol, java.lang.String title, boolean writePairData, java.util.Vector attribs2write)
          Writes a molecule with his JOEPairData .
 boolean write(joelib.molecule.JOEMol mol, java.lang.String title, boolean writePairData, java.util.Vector attribs2write, joelib.smarts.JOESmartsPattern smarts)
          Writes a molecule with his JOEPairData .
 boolean write(joelib.smarts.JOESmartsPattern smarts, joelib.molecule.JOEMol mol)
           
 boolean writeable()
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static org.apache.log4j.Category logger
Obtain a suitable logger.


description

private static final java.lang.String description

extensions

private static final java.lang.String[] extensions

DEFAULT_FONT_SIZE

private static final int DEFAULT_FONT_SIZE
See Also:
Constant Field Values

DEFAULT_FONT_OFFSET

private static final int DEFAULT_FONT_OFFSET
See Also:
Constant Field Values

DEFAULT_BORDER

private static final int DEFAULT_BORDER
See Also:
Constant Field Values

WRITE_MAX_CHARACTERS

private static final int WRITE_MAX_CHARACTERS
See Also:
Constant Field Values

document

private com.lowagie.text.Document document

writer

private com.lowagie.text.pdf.PdfWriter writer

firstMoleculeWritten

private boolean firstMoleculeWritten

fontSize

private int fontSize

fontSizeDelta

private int fontSizeDelta

pageBorder

private int pageBorder
Constructor Detail

PDF

public PDF()
Method Detail

closeReader

public void closeReader()
                 throws java.io.IOException
Description of the Method

Specified by:
closeReader in interface joelib.io.MoleculeFileType

closeWriter

public void closeWriter()
                 throws java.io.IOException
Description of the Method

Specified by:
closeWriter in interface joelib.io.MoleculeFileType

initReader

public void initReader(java.io.InputStream is)
                throws java.io.IOException
Description copied from interface: joelib.io.MoleculeFileType
Description of the Method

Specified by:
initReader in interface joelib.io.MoleculeFileType

initWriter

public void initWriter(java.io.OutputStream os)
                throws java.io.IOException
Description of the Method

Specified by:
initWriter in interface joelib.io.MoleculeFileType

inputDescription

public java.lang.String inputDescription()
Description of the Method

Specified by:
inputDescription in interface joelib.io.MoleculeFileType

inputFileExtensions

public java.lang.String[] inputFileExtensions()
Description of the Method

Specified by:
inputFileExtensions in interface joelib.io.MoleculeFileType

outputDescription

public java.lang.String outputDescription()
Description copied from interface: joelib.io.MoleculeFileType
Description of the Method

Specified by:
outputDescription in interface joelib.io.MoleculeFileType

outputFileExtensions

public java.lang.String[] outputFileExtensions()
Description copied from interface: joelib.io.MoleculeFileType
Description of the Method

Specified by:
outputFileExtensions in interface joelib.io.MoleculeFileType

read

public java.lang.String read()
                      throws java.io.IOException
Reads an molecule entry as (unparsed) String representation.

Specified by:
read in interface joelib.io.MoleculeFileType

read

public boolean read(joelib.molecule.JOEMol mol)
             throws java.io.IOException,
                    joelib.io.MoleculeIOException
Description of the Method

Specified by:
read in interface joelib.io.MoleculeFileType

read

public boolean read(joelib.molecule.JOEMol mol,
                    java.lang.String title)
             throws java.io.IOException,
                    joelib.io.MoleculeIOException
Loads an molecule in MDL SD-MOL format and sets the title. If title is null the title line in the molecule file is used.

Specified by:
read in interface joelib.io.MoleculeFileType

readable

public boolean readable()
Description copied from interface: joelib.io.MoleculeFileType
Returns true if this molecule data type is readable.

Specified by:
readable in interface joelib.io.MoleculeFileType

skipReaderEntry

public boolean skipReaderEntry()
                        throws java.io.IOException
Description of the Method

Specified by:
skipReaderEntry in interface joelib.io.MoleculeFileType

write

public boolean write(joelib.molecule.JOEMol mol)
              throws java.io.IOException
Description of the Method

Specified by:
write in interface joelib.io.MoleculeFileType

write

public boolean write(joelib.smarts.JOESmartsPattern smarts,
                     joelib.molecule.JOEMol mol)
              throws java.io.IOException

write

public boolean write(joelib.molecule.JOEMol mol,
                     java.lang.String title)
              throws java.io.IOException
Description of the Method

Specified by:
write in interface joelib.io.MoleculeFileType

write

public boolean write(joelib.molecule.JOEMol mol,
                     java.lang.String title,
                     boolean writePairData,
                     java.util.Vector attribs2write)
              throws java.io.IOException
Writes a molecule with his JOEPairData .

Specified by:
write in interface joelib.io.PropertyWriter

write

public boolean write(joelib.molecule.JOEMol mol,
                     java.lang.String title,
                     boolean writePairData,
                     java.util.Vector attribs2write,
                     joelib.smarts.JOESmartsPattern smarts)
              throws java.io.IOException
Writes a molecule with his JOEPairData .


writeable

public boolean writeable()
Description of the Method

Specified by:
writeable in interface joelib.io.MoleculeFileType