|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jmol.api.JmolAdapter
org.jmol.viewer.FrameExportJmolAdapter
public final class FrameExportJmolAdapter
| Nested Class Summary | |
|---|---|
(package private) class |
FrameExportJmolAdapter.AtomIterator
|
(package private) class |
FrameExportJmolAdapter.BondIterator
|
| Nested classes/interfaces inherited from class org.jmol.api.JmolAdapter |
|---|
JmolAdapter.StructureIterator |
| Field Summary | |
|---|---|
(package private) ModelSet |
modelSet
|
(package private) Viewer |
viewer
|
| Constructor Summary | |
|---|---|
FrameExportJmolAdapter(Viewer viewer,
ModelSet modelSet)
|
|
| Method Summary | |
|---|---|
boolean |
coordinatesAreFractional(java.lang.Object atomSetCollection)
Get the boolean whether coordinates are fractional. |
JmolAdapter.AtomIterator |
getAtomIterator(java.lang.Object clientFile)
Get an AtomIterator for retrieval of all atoms in the file. |
java.util.Hashtable |
getAtomSetAuxiliaryInfo(java.lang.Object atomSetCollection,
int atomSetIndex)
Get the auxiliary information for a particular atomSet. |
java.util.Hashtable |
getAtomSetCollectionAuxiliaryInfo(java.lang.Object atomSetCollection)
Get the auxiliary information for this atomSetCollection. |
java.lang.Object |
getAtomSetCollectionFromDOM(java.lang.Object DOMNode)
|
java.lang.Object |
getAtomSetCollectionFromReader(java.lang.String name,
java.lang.String type,
java.io.BufferedReader bufferedReader,
java.util.Hashtable htParams)
Read an atomSetCollection object from a bufferedReader and close the reader. |
java.lang.Object |
getAtomSetCollectionFromReaders(JmolFileReaderInterface fileReader,
java.lang.String[] names,
java.lang.String[] types,
java.util.Hashtable[] htParams)
Associate a atomSetCollection object with an array of BufferedReader. |
java.lang.String |
getAtomSetCollectionName(java.lang.Object clientFile)
Get the name of the atom set collection, if known. |
java.lang.Object |
getAtomSetCollectionOrBufferedReaderFromZip(java.io.InputStream is,
java.lang.String fileName,
java.lang.String[] zipDirectory,
java.util.Hashtable htParams,
boolean asBufferedReader)
|
java.util.Properties |
getAtomSetCollectionProperties(java.lang.Object atomSetCollection)
Get the properties for this atomSetCollection. |
int |
getAtomSetCount(java.lang.Object atomSetCollection)
Get number of atomSets in the file. |
java.lang.String |
getAtomSetName(java.lang.Object atomSetCollection,
int atomSetIndex)
Get the name of an atomSet. |
int |
getAtomSetNumber(java.lang.Object atomSetCollection,
int atomSetIndex)
Get the number identifying each atomSet. |
java.util.Properties |
getAtomSetProperties(java.lang.Object atomSetCollection,
int atomSetIndex)
Get the properties for an atomSet. |
JmolAdapter.BondIterator |
getBondIterator(java.lang.Object clientFile)
Get a BondIterator for retrieval of all bonds in the file. |
java.lang.String |
getClientAtomStringProperty(java.lang.Object clientAtom,
java.lang.String propertyName)
Get a property from a clientAtom. |
int |
getEstimatedAtomCount(java.lang.Object clientFile)
Get the estimated number of atoms contained in the file. |
java.lang.String |
getFileTypeName(java.lang.Object atomSetCollection)
Get the type of this file or molecular model, if known. |
float[] |
getNotionalUnitcell(java.lang.Object clientFile)
Get the notional unit cell. |
float[] |
getPdbScaleMatrix(java.lang.Object atomSetCollection)
Get the PDB scale matrix. |
float[] |
getPdbScaleTranslate(java.lang.Object atomSetCollection)
Get the PDB scale translation vector. |
JmolAdapter.StructureIterator |
getStructureIterator(java.lang.Object atomSetCollection)
Get a StructureIterator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
Viewer viewer
ModelSet modelSet
| Constructor Detail |
|---|
FrameExportJmolAdapter(Viewer viewer,
ModelSet modelSet)
| Method Detail |
|---|
public java.lang.String getAtomSetCollectionName(java.lang.Object clientFile)
JmolAdapterSome file formats contain a formal name of the molecule in the file.
If this method returns null then the JmolViewer will
automatically supply the file/URL name as a default.
getAtomSetCollectionName in class JmolAdapternullpublic int getEstimatedAtomCount(java.lang.Object clientFile)
JmolAdapterJust return -1 if you don't know (or don't want to figure it out)
getEstimatedAtomCount in class JmolAdapterclientFile - The client file
public float[] getNotionalUnitcell(java.lang.Object clientFile)
JmolAdapterThis method returns the parameters that define a crystal unitcell
the parameters are returned in a float[] in the following order
a, b, c, alpha, beta, gamma
a, b, c : angstroms
alpha, beta, gamma : degrees
if there is no unit cell data then return null
getNotionalUnitcell in class JmolAdapterclientFile - The client file
nullpublic JmolAdapter.AtomIterator getAtomIterator(java.lang.Object clientFile)
JmolAdapterThis method may not return null.
getAtomIterator in class JmolAdapterclientFile - The client file
JmolAdapter.AtomIteratorpublic JmolAdapter.BondIterator getBondIterator(java.lang.Object clientFile)
JmolAdapterIf this method returns null and no
bonds are defined then the JmolViewer will automatically apply its
rebonding code to build bonds between atoms.
getBondIterator in class JmolAdapterclientFile - The client file
nullJmolAdapter.BondIteratorpublic JmolAdapter.StructureIterator getStructureIterator(java.lang.Object atomSetCollection)
JmolAdapter
getStructureIterator in class JmolAdapteratomSetCollection - The client file
null
public java.lang.Object getAtomSetCollectionFromReader(java.lang.String name,
java.lang.String type,
java.io.BufferedReader bufferedReader,
java.util.Hashtable htParams)
JmolAdapterGiven the BufferedReader, return an object which represents the file
contents. The parameter name is assumed to be the
file name or URL which is the source of reader. Note that this 'file'
may have been automatically decompressed. Also note that the name
may be 'String', representing a string constant. Therefore, few
assumptions should be made about the name parameter.
The return value is an object which represents a atomSetCollection.
This atomSetCollection will be passed back in to other methods.
If the return value is instanceof String then it is
considered an error condition and the returned String is the error
message.
getAtomSetCollectionFromReader in class JmolAdaptername - File name, String or URL acting as the source of the readertype - File type, if known, or nullbufferedReader - The BufferedReaderhtParams - a hash table containing parameter information
public java.lang.Object getAtomSetCollectionFromReaders(JmolFileReaderInterface fileReader,
java.lang.String[] names,
java.lang.String[] types,
java.util.Hashtable[] htParams)
JmolAdapterGiven the array of BufferedReader, return an object which represents
the concatenation of every file contents. The parameter name
is assumed to be the file names or URL which are the source of each
reader. Note that each of this 'file' may have been automatically
decompressed. Also note that the name may be 'String',
representing a string constant. Therefore, few
assumptions should be made about the name parameter.
The return value is an object which represents a atomSetCollection.
This atomSetCollection will be passed back in to other methods.
If the return value is instanceof String then it is
considered an error condition and the returned String is the error
message.
getAtomSetCollectionFromReaders in class JmolAdapterfileReader - the thread requesting a set of files if bufferedReaders is nullnames - File names, String or URL acting as the source of each readertypes - File types, if known, or nullhtParams - The input parameters for each file to load
public java.lang.Object getAtomSetCollectionOrBufferedReaderFromZip(java.io.InputStream is,
java.lang.String fileName,
java.lang.String[] zipDirectory,
java.util.Hashtable htParams,
boolean asBufferedReader)
getAtomSetCollectionOrBufferedReaderFromZip in class JmolAdapterpublic java.lang.Object getAtomSetCollectionFromDOM(java.lang.Object DOMNode)
getAtomSetCollectionFromDOM in class JmolAdapterpublic java.lang.String getFileTypeName(java.lang.Object atomSetCollection)
JmolAdapter
getFileTypeName in class JmolAdapteratomSetCollection - The client file
"unknown"public java.util.Properties getAtomSetCollectionProperties(java.lang.Object atomSetCollection)
JmolAdapterNot yet implemented everywhere, it is in the smarterJmolAdapter
getAtomSetCollectionProperties in class JmolAdapteratomSetCollection - The client file
nullpublic java.util.Hashtable getAtomSetCollectionAuxiliaryInfo(java.lang.Object atomSetCollection)
JmolAdapterVia the smarterJmolAdapter
getAtomSetCollectionAuxiliaryInfo in class JmolAdapteratomSetCollection - The client file
nullpublic int getAtomSetCount(java.lang.Object atomSetCollection)
JmolAdapterNOTE WARNING:
Not yet implemented everywhere, it is in the smarterJmolAdapter
getAtomSetCount in class JmolAdapteratomSetCollection - The client file
public int getAtomSetNumber(java.lang.Object atomSetCollection,
int atomSetIndex)
JmolAdapterFor a PDB file, this is is the model number. For others it is a 1-based atomSet number.
Note that this is not currently implemented in PdbReader
getAtomSetNumber in class JmolAdapteratomSetCollection - The client fileatomSetIndex - The atom set's index for which to get
the atom set number
public java.lang.String getAtomSetName(java.lang.Object atomSetCollection,
int atomSetIndex)
JmolAdapter
getAtomSetName in class JmolAdapteratomSetCollection - The client fileatomSetIndex - The atom set index
public java.util.Properties getAtomSetProperties(java.lang.Object atomSetCollection,
int atomSetIndex)
JmolAdapter
getAtomSetProperties in class JmolAdapteratomSetCollection - The client fileatomSetIndex - The atom set index
null
public java.util.Hashtable getAtomSetAuxiliaryInfo(java.lang.Object atomSetCollection,
int atomSetIndex)
JmolAdapterVia the smarterJmolAdapter
getAtomSetAuxiliaryInfo in class JmolAdapteratomSetCollection - The client fileatomSetIndex - The atom set index
nullpublic boolean coordinatesAreFractional(java.lang.Object atomSetCollection)
JmolAdapter
coordinatesAreFractional in class JmolAdapteratomSetCollection - The client file
falsepublic float[] getPdbScaleMatrix(java.lang.Object atomSetCollection)
JmolAdapterDoes not seem to be overriden by any descendent
getPdbScaleMatrix in class JmolAdapteratomSetCollection - The client file
nullpublic float[] getPdbScaleTranslate(java.lang.Object atomSetCollection)
JmolAdapterDoes not seem to be overriden by any descendent
getPdbScaleTranslate in class JmolAdapteratomSetCollection - The client file
null
public java.lang.String getClientAtomStringProperty(java.lang.Object clientAtom,
java.lang.String propertyName)
JmolAdapter
getClientAtomStringProperty in class JmolAdapterclientAtom - The clientAtompropertyName - the key of the property
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||