Hi Felix,

I've recently added a utility to make this v. easy, DepictionGenerator
<http://cdk.github.io/cdk/1.5/docs/api/index.html?org/openscience/cdk/depict/DepictionGenerator.html>.
Personally don't know too much about JavaFX but in Swing at least there are
two (good) ways. Firstly you could create a BufferedImage and put this in
an ImageIcon. IMO a much better is to override the ImageIcon with a custom
implementation, AtomContainerIcon
<https://github.com/johnmay/mdk/blob/a2942e2efc42639f3c4277107c01b13d90a8869b/ui/src/main/java/uk/ac/ebi/mdk/ui/render/molecule/AtomContainerIcon.java>.
In the later we draw direct to the screen and can resize depictions on
demand.

- John

Regards,
John W May
john.wilkinson...@gmail.com

On 11 January 2016 at 20:02, "Felix Bänsch" <jonny.baen...@web.de> wrote:

> Hi everyone,
>
> I'm a new to programming and I'm a total newbie at CDK.
> I want to write a small JavaFX program, that can read SDFiles and render
> the structures. I use the RandomAccessSDFReader to read the SDFile but now
> I have no idea how I can render the structures.
> Thanks a lot.
>
> Regards,
> Felix Bänsch
>
>
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> _______________________________________________
> Cdk-user mailing list
> Cdk-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cdk-user
>
>
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Cdk-user mailing list
Cdk-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdk-user

Reply via email to