Solved.

You have to get the coordinates from the rendere2DModel and its method 
getScreenCoordinates();

These coordinates are in respect to the Panel.

Cheers,

Alex



Alexander Klenner schrieb:
> Hey,
>
> I am looking for the 2d coordinates of a molecule relativly to the 
> JPanel that was used to draw on. 
>
> Neither The 2d coordinates of the molecule ( mol.getAtom().getPoint2d() 
> ) nor the coordinates from the Renderer2DModel ( 
> Render2DModel.getRenderingCoordinates(Atom))) seem to correspond to the  
> positions on the panel.
>
> Is there a way to dircetly retrieve coordinates with respect to the used 
> jpanel? If not maybe someone can tell me what the used reference system 
> for the renderer2dModel is..?
>
> Thanks for any help or suggestions,
>
> Alex 
>
>   


-- 
Alexander Klenner, Dipl.-Bioinf.
Johann Wolfgang Goethe-University Frankfurt
Department of Biosciences
Siesmayerstrasse 70
D-60323 Frankfurt
Tel: +49 (0) 69 798 24879
Fax: +49 (0) 69 798 24880
klen...@bioinformatik.uni-frankfurt.de


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Cdk-user mailing list
Cdk-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdk-user

Reply via email to