Attaching a Custom Renderer to Chemtypes

Hi all,

 

I have a little question about custom renderers.

I have written a little molecular sketcher which can render stuff in my datatables.

The problem is that my renderer also supports cells like Mol2, SDF, Smiles and so on.

But I don't know how to exactly attach my renderer to those existing molecular cells\types.

So I want basicly to attach my custom renderer to a "stranger" molecule type (mol2, sdf, smiles).

 

Is this possible? Anyone got a clue how to do it?

Thank you in advance!

 

-imax.

Use SdfValue.UTILITY.addRenderer(DataValueRenderer). The same is true for SmilesValue and Mol2Value.

Bernd

Works like a charm!

Thanks Bernd - I owe you one!

-imax.