public class MoleculesIterator extends Object implements IMoleculesIterator
SmilesEntryPanel
toxTree.ui.molecule.JChemPaintDialog
| Modifier and Type | Field and Description |
|---|---|
protected ListOfAtomContainers |
containers |
protected int |
currentNo |
protected String |
filename |
protected static Logger |
logger |
protected int |
status |
MSG_EMPTYFILE, MSG_ERRORONOPEN, MSG_ERRORONSAVE, MSG_OPENSUCCESS, MSG_SAVESUCCESS, MSG_UNSUPPORTEDFORMAT| Constructor and Description |
|---|
MoleculesIterator() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMolecule(org.openscience.cdk.interfaces.IAtomContainer mol) |
void |
clear() |
Object |
first() |
org.openscience.cdk.interfaces.IAtomContainer |
getAtomContainer(int index) |
protected ListOfAtomContainers |
getContainers() |
int |
getCurrentNo() |
String |
getFilename() |
org.openscience.cdk.interfaces.IAtomContainer |
getMolecule() |
org.openscience.cdk.interfaces.IAtomContainerSet |
getMoleculeForEdit() |
org.openscience.cdk.interfaces.IAtomContainer[] |
getMolecules() |
int |
getMoleculesCount() |
org.openscience.cdk.interfaces.IAtomContainerSet |
getSetOfAtomContainers() |
String |
getStatus() |
boolean |
hasNext() |
boolean |
isReading() |
boolean |
isWriting() |
Object |
last() |
Object |
next() |
List |
openFile(File input) |
Object |
prev() |
void |
remove() |
void |
saveFile(File output) |
org.openscience.cdk.interfaces.IAtomContainer |
setCurrentNo(int record) |
void |
setDone(boolean success) |
void |
setMolecule(org.openscience.cdk.interfaces.IAtomContainer mol) |
void |
setMolecules(List molecules) |
void |
setReading() |
void |
setWriting() |
String |
toString() |
protected void |
useIterativeReader(InputStream in) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEachRemainingprotected ListOfAtomContainers containers
protected int currentNo
protected static transient Logger logger
protected int status
protected String filename
public org.openscience.cdk.interfaces.IAtomContainer getAtomContainer(int index)
getAtomContainer in interface IMoleculesIteratorpublic org.openscience.cdk.interfaces.IAtomContainer[] getMolecules()
getMolecules in interface IMoleculesIteratorpublic void setMolecules(List molecules)
setMolecules in interface IMoleculesIteratormolecules - The molecules to set.public int getCurrentNo()
getCurrentNo in interface IMoleculesIteratorpublic void clear()
clear in interface IMoleculesIteratorpublic Object prev()
prev in interface IMoleculesIteratorpublic Object first()
first in interface IMoleculesIteratorpublic Object last()
last in interface IMoleculesIteratorpublic org.openscience.cdk.interfaces.IAtomContainer setCurrentNo(int record)
setCurrentNo in interface IMoleculesIteratorpublic org.openscience.cdk.interfaces.IAtomContainer getMolecule()
getMolecule in interface IMoleculesIteratorpublic int getMoleculesCount()
getMoleculesCount in interface IMoleculesIteratorpublic void addMolecule(org.openscience.cdk.interfaces.IAtomContainer mol)
addMolecule in interface IMoleculesIteratorpublic void setMolecule(org.openscience.cdk.interfaces.IAtomContainer mol)
setMolecule in interface IMoleculesIteratorprotected void useIterativeReader(InputStream in)
public List openFile(File input) throws ToxTreeIOException
openFile in interface IMoleculesIteratorToxTreeIOExceptionpublic void saveFile(File output) throws ToxTreeIOException
saveFile in interface IMoleculesIteratorToxTreeIOExceptionpublic boolean isReading()
isReading in interface IMoleculesIteratorpublic boolean isWriting()
isWriting in interface IMoleculesIteratorpublic String getStatus()
getStatus in interface IMoleculesIteratorpublic void setReading()
setReading in interface IMoleculesIteratorpublic void setWriting()
setWriting in interface IMoleculesIteratorpublic void setDone(boolean success)
setDone in interface IMoleculesIteratorpublic org.openscience.cdk.interfaces.IAtomContainerSet getSetOfAtomContainers()
public org.openscience.cdk.interfaces.IAtomContainerSet getMoleculeForEdit()
throws Exception
getMoleculeForEdit in interface IMoleculesIteratorExceptionpublic String getFilename()
getFilename in interface IMoleculesIteratorprotected ListOfAtomContainers getContainers()
Copyright © 2004–2018 Ideaconsult Ltd. All rights reserved.