Hi JohnThanks for the reply,but i am not using SMILE format, instead i am using 
a textfile with data(.mol or .rxn.. please refer attchment).basically i am 
using openscience/jchempaint to read and capture the image 
here code snippet for  jchempaintpanel properties                Renderer rr= 
panel.getRenderPanel().getRenderer(); RendererModel rrm = 
rr.getRenderer2DModel(); rrm.setZoomFactor(1);//setting the zoom factor 
rrm.setBondDistance(0.1);//setting the length between 2 bonds of the double or 
triple bonds rrm.setBondWidth(1);//setting the width of the bond 
rrm.setBondLength(1); rrm.setShowEndCarbons(true);//show end carbons only 
rrm.setWedgeWidth(0.2);//setting the width of wedge rrm.setMargin(20); 
rrm.setScale(1); rrm.setArrowHeadWidth(1);//arrow head width 

    On Friday, 27 January 2017 5:24 PM, 
"cdk-user-requ...@lists.sourceforge.net" 
<cdk-user-requ...@lists.sourceforge.net> wrote:
 

 Send Cdk-user mailing list submissions to
    cdk-user@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
    https://lists.sourceforge.net/lists/listinfo/cdk-user
or, via email, send a message with subject or body 'help' to
    cdk-user-requ...@lists.sourceforge.net

You can reach the person managing the list at
    cdk-user-ow...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Cdk-user digest..."


Today's Topics:

  1. Re: Cdk-user post from r6...@ymail.com requires approval
      (John Mayfield)


----------------------------------------------------------------------

Message: 1
Date: Fri, 27 Jan 2017 11:54:08 +0000
From: John Mayfield <john.wilkinson...@gmail.com>
Subject: Re: [Cdk-user] Cdk-user post from r6...@ymail.com requires
    approval
To: cdkuser <cdk-user@lists.sourceforge.net>, Rajesh C
    <r6...@ymail.com>
Message-ID:
    <CAFdOP2s13gq05B25iB=skrh4yptk6o2amr20jv0bo-e1x5c...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi Rajesh,

Not sure why this message didn't come though to my inbox after being
approved.

A subset of text positions are supported, you can put text in a depiction
as:
  - molecule title
  - reaction title
  - reaction conditions
  - atom annotations
  - bond annotations

Beyond that you will have to roll on your own and either draw on the raster
image with AWT or append elements to the SVG.

For you described use case it looks like you actually don't want text at
all but rather list agents.

[H][H].C>>[H][H]


https://cdkdepict-openchem.rhcloud.com/depict/bow/svg?smi=[H][H].C%3E%3E[H][H]&abbr=on&suppressh=true&showtitle=false&zoom=1.3&annotate=none

[image: Inline images 7]

vs

[H][H].C>CCO>[H][H]


https://cdkdepict-openchem.rhcloud.com/depict/bow/svg?smi=[H][H].C%3ECCO%3E[H][H]&w=210&h=50&abbr=on&suppressh=true&showtitle=false&zoom=2.05&annotate=none
[image: Inline images 6]

If you want to describe reaction conditions set the property
'cdk:ReactionConditions' on the molecule.

[H][H].C>CCO>[H][H] |SgD::cdk:ReactionConditions:RT|


https://cdkdepict-openchem.rhcloud.com/depict/bow/svg?smi=[H][H].C%3ECCO%3E[H][H]%20%7CSgD%3A%3Acdk%26%2358%3BReactionConditions%3ART%7C&w=210&h=50&abbr=on&suppressh=true&showtitle=false&zoom=2.05&annotate=none

[image: Inline images 8]


John

On 25 January 2017 at 20:18, <cdk-user-ow...@lists.sourceforge.net> wrote:

> As list administrator, your authorization is requested for the
> following mailing list posting:
>
>    List:    Cdk-user@lists.sourceforge.net
>    From:    r6...@ymail.com
>    Subject: Store image with text elements
>    Reason:  Post by non-member to a members-only list
>
> At your convenience, visit:
>
>    https://lists.sourceforge.net/lists/admindb/cdk-user
>
> to approve or deny the request.
>
>
> ---------- Forwarded message ----------
> From: Rajesh C <r6...@ymail.com>
> To: "cdk-user@lists.sourceforge.net" <cdk-user@lists.sourceforge.net>
> Cc:
> Date: Wed, 25 Jan 2017 20:15:34 +0000 (UTC)
> Subject: Store image with text elements
> Hi cdk user,
> Can you please help me in storing a structural as an jpeg image(read from
> Mol)  with text in it.
>
> Thanks
>
>
>
>
> ---------- Forwarded message ----------
> From: cdk-user-requ...@lists.sourceforge.net
> To:
> Cc:
> Date:
> Subject: confirm 1c371a42b7079c73c06ec8042d6960f2473c995d
> If you reply to this message, keeping the Subject: header intact,
> Mailman will discard the held message.  Do this if the message is
> spam.  If you reply to this message and include an Approved: header
> with the list password in it, the message will be approved for posting
> to the list.  The Approved: header can also appear in the first line
> of the body of the reply.
>
-------------- next part --------------
An HTML attachment was scrubbed...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 5375 bytes
Desc: not available
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot_20170126-014401.png
Type: image/png
Size: 125204 bytes
Desc: not available
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 5712 bytes
Desc: not available
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 4566 bytes
Desc: not available

------------------------------

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot

------------------------------

_______________________________________________
Cdk-user mailing list
Cdk-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdk-user


End of Cdk-user Digest, Vol 124, Issue 10
*****************************************


   

Attachment: samplemol.rxn
Description: Binary data

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Cdk-user mailing list
Cdk-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdk-user

Reply via email to