Am Thursday 27 July 2006 13:50 schrieb [EMAIL PROTECTED]:
> Hi all,
> I was wondering wether it is possible to select atoms manually in
> JChemPaint and then do something with this selected atoms in the code.
> For example store the selected Atoms to extract coordinates...
>
> something like:
>
> if(atoms[i].getFlag(JChemPaintConstants.ISSELECTED))
> selectedAtom = atoms[i];
Yes, this is possible. See Renderer2DModel.getSelectedPart() and 
getHighlightedPart().
Stefan
>
> coordinates = selectedAtom.getPoint3d();
> ....
>
> Thanks for your help,
> Tina
>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your opinions on IT & business topics through brief surveys -- and earn
> cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Cdk-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cdk-user

-- 
Stefan Kuhn B. Sc. M. A.
Cologne University BioInformatics Center (http://www.cubic.uni-koeln.de)
Zülpicher Str. 47, 50674 Cologne
Tel: +49(0)221-470-7428   Fax: +49 (0) 221-470-7786
My public PGP key is available at http://pgp.mit.edu

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Cdk-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cdk-user

Reply via email to