> Q: Can you tell me which JmolViewer methods your code is currently using?

not too many :
the embedding is as described in Integration.java.

and I added a very simple mouse (motion) listener:

        <snip>
      public void mouseMoved(MouseEvent e) {
        int pos = viewer.findNearestAtomIndex(e.getX(),e.getY());
        if ( pos == -1 ) { return ; }

        String chainId = viewer.getAtomChain( pos) ;
        String seqCode = viewer.getAtomSequenceCode( pos) ;
        ...
        </snip>


btw. sorry, the insertion code problem was a mistake on my side. not 
aware of the Jmol "^" notation... 

Just adding the newly learnt things to the "embedding"  pages in the 
wiki ...

Andreas 


-- 
--------------------------------------------------

Andreas Prlic      Wellcome Trust Sanger Institute
                   Hinxton, Cambridge CB10 1SA, UK
                   






-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Jmol-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to