public interface IDocumentWriter
Modifier and Type | Method and Description |
---|---|
void |
addStructure(IMoleculeData molecule,
Location location)
Adds the molecule structure to the document in the given location
|
void |
addStructures(IMoleculeData[] molecules,
Location location) |
void |
addStructures(IMoleculeData[] molecules,
Location location,
int structurePerPage) |
Location |
addTable(ITableModel table)
Adds the table to the document
|
void |
close() |
ITableModel |
createTableModel(int rowCount,
int columnCount)
Creates a new table for the structure data
|
void |
load(InputStream stream,
int structurePerPage)
Loads the structure(s) from a stream, for example from IJC
|
void |
load(String filePath,
int structurePerPage)
Loads the structure(s) from the given file into the document
|
void addStructure(IMoleculeData molecule, Location location) throws MolFormatException, IOException
molecule
- with the molecule datalocation
- where the structure should be inserted in the documentMolFormatException
Exception
IOException
void addStructures(IMoleculeData[] molecules, Location location, int structurePerPage) throws MolFormatException, IOException
molecules
- location
- structurePerPage
- MolFormatException
IOException
void addStructures(IMoleculeData[] molecules, Location location) throws MolFormatException, IOException
molecules
- location
- MolFormatException
IOException
void load(String filePath, int structurePerPage) throws MolFormatException, IOException
filePath
- structurePerPage
- MolFormatException
IOException
void load(InputStream stream, int structurePerPage) throws MolFormatException, IOException
stream
- structurePerPage
- MolFormatException
IOException
ITableModel createTableModel(int rowCount, int columnCount)
rowCount
- columnCount
- Location addTable(ITableModel table) throws IOException
table
- IOException