Right, that makes more sense. The setup method is relatively recent,
and the fact that it does not appear in the javadocs makes me think
that it is not in the jar file or source zip.

Did you get the source from svn, or did you download the jar/source
zip from the http://pele.farmbio.uu.se/nightly-jcp/ page? All the
examples in the wiki tutorial were first compiled and run to check
that they work, but it might be that they were compiled against a
different version.

I would recommend using the source directly from svn, and checking
that there is indeed a setup(IAtomContainer, Rectangle) method in the
Renderer class.

gilleain

On Thu, May 21, 2009 at 1:59 PM, JingG <jing...@umich.edu> wrote:
>
> Sorry, the error message is for method setup(). Here it is:
> The method setup() in the type Renderer is not applicable for the
> arguments(IMolecule, Reactangle)
>
> JingG
>
>
> gilleain torrance wrote:
>>
>> Hmm. These two errors are quite confusing.
>>
>> 1) There is indeed a make123Triazole() method in MoleculeFactory:
>>
>> http://pele.farmbio.uu.se/nightly-jcp/api/org/openscience/cdk/templates/MoleculeFactory.html#make123Triazole()
>>
>> 2) There is no method 'renderer()' in the class Renderer - in fact I
>> don't think it is allowed to have a method with the same name as the
>> constructor, but with a different case.
>>
>> I admit, the javadocs do not show the setup method in the Renderer
>> class. However, the method is there in the repository:
>>
>> http://cdk.svn.sourceforge.net/viewvc/cdk/cdk/branches/jchempaint-primary/src/main/org/openscience/cdk/renderer/Renderer.java?revision=14586&view=markup
>>
>> and is, hopefully, in the code that you downloaded.
>>
>> gilleain
>>
>> On Thu, May 21, 2009 at 12:57 AM, JingG <jing...@umich.edu> wrote:
>>>
>>> OK. I can find all classes from the javadoc api. Thanks! But I still have
>>> problems:
>>> 1.
>>>  IMolecule triazole =
>>> MoleculeFactory.makeThiazole();//.make123Triazole();
>>> Method make123Triazole() is undefined, I use makeThiazole() instead.
>>>
>>> 2.
>>>  Renderer renderer = new Renderer(generators, new AWTFontManager());
>>> renderer.setup(triazole, drawArea);
>>> The method renderer() in the type Renderer is not applicable for the
>>> arguments(IMolecule, Reactangle)
>>>
>>> JingG
>>>
>>>
>>> gilleain torrance wrote:
>>>>
>>>> Ah, right, sorry. Specifically:
>>>>
>>>> http://pele.farmbio.uu.se/nightly-jcp/api/
>>>>
>>>> I notice that the code example I put in the class comment in the
>>>> Renderer class looks horrible. I guess I should have used 'pre' tags
>>>> or some such.
>>>>
>>>> gilleain
>>>>
>>>> On Wed, May 20, 2009 at 5:31 PM, Egon Willighagen
>>>> <egon.willigha...@gmail.com> wrote:
>>>>> On Wed, May 20, 2009 at 6:24 PM, gilleain torrance
>>>>> <gilleain.torra...@gmail.com> wrote:
>>>>>> These are indeed classes from jcp-primary. There is no javadoc for it,
>>>>>> but it's easy to generate the docs from the source-code.
>>>>>
>>>>> The JavaDoc for this branch is available from:
>>>>>
>>>>> http://pele.farmbio.uu.se/nightly-jcp/
>>>>>
>>>>> Egon
>>>>>
>>>>> --
>>>>> Post-doc @ Uppsala University
>>>>> http://chem-bla-ics.blogspot.com/
>>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Crystal Reports - New Free Runtime and 30 Day Trial
>>>> Check out the new simplified licensing option that enables
>>>> unlimited royalty-free distribution of the report engine
>>>> for externally facing server and web deployment.
>>>> http://p.sf.net/sfu/businessobjects
>>>> _______________________________________________
>>>> Cdk-user mailing list
>>>> Cdk-user@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/cdk-user
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/draw-molecule-tp23248045p23645710.html
>>> Sent from the cdk-user mailing list archive at Nabble.com.
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
>>> is a gathering of tech-side developers & brand creativity professionals.
>>> Meet
>>> the minds behind Google Creative Lab, Visual Complexity, Processing, &
>>> iPhoneDevCamp asthey present alongside digital heavyweights like
>>> Barbarian
>>> Group, R/GA, & Big Spaceship. http://www.creativitycat.com
>>> _______________________________________________
>>> Cdk-user mailing list
>>> Cdk-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/cdk-user
>>>
>>
>> ------------------------------------------------------------------------------
>> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
>> is a gathering of tech-side developers & brand creativity professionals.
>> Meet
>> the minds behind Google Creative Lab, Visual Complexity, Processing, &
>> iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
>> Group, R/GA, & Big Spaceship. http://www.creativitycat.com
>> _______________________________________________
>> Cdk-user mailing list
>> Cdk-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/cdk-user
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/draw-molecule-tp23248045p23652763.html
> Sent from the cdk-user mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals. Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, &
> iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://www.creativitycat.com
> _______________________________________________
> Cdk-user mailing list
> Cdk-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cdk-user
>

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
Cdk-user mailing list
Cdk-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdk-user

Reply via email to