I should addÖ without using JChemPaint!

On 22 Nov 2013, at 11:01, John May <johnmay@ebi.ac.uk> wrote:

Hi All,

Does anyone know how to highlight atoms in different colours using the CDK renders? Stephan and I have been scratching our heads and really looks like itís not possible. We have code for this in Knime but simply canít believe itís not in the main rendering code. 

I always thought the ColorHash was how it was done but this (see below) only works for bonds :/.

Map<IChemObject,Color> highlight = Maps.newHashMap();
highlight.put(m.getAtom(0), Color.green);
highlight.put(m.getAtom(1), Color.red);
renderer.getRenderer2DModel().set(RendererModel.ColorHash.class, highlight);


Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
Cdk-devel mailing list