Hi,
 
I have been (unsuccessfully) trying to compile 'simplemcss.java' available from the http://blue.chem.psu.edu/%7Erajarshi/code/java/.
 
I am using recent version of cdk src from svn and complied using 'ant clean dist-large' and JDK 1.5.
 
While compiling the simplemcss.java, the following error is coming
 
----------------
simplemcss.java:78: cannot find symbol
symbol  : method setHighlightColor(java.awt.Color)
location: class org.openscience.cdk.renderer.Renderer2DModel
            r2dm.setHighlightColor(Color.blue);
                ^
simplemcss.java:95: paintMolecule(org.openscience.cdk.interfaces.IAtomContainer,
java.awt.Graphics2D,boolean,boolean) in org.openscience.cdk.renderer.SimpleRende
rer2D cannot be applied to (org.openscience.cdk.interfaces.IAtomContainer ,java.a
wt.Graphics2D,boolean)
        renderer.paintMolecule(this.haystack, (Graphics2D)g, false);
                ^
Note: simplemcss.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
--------------------
 
I have checked in the recent SVN API. The Render2DModel does not have setHighlightColor() method. What is the equivalent method for this in the recent version of the cdk form svn.
 
Also, if I want to view output in a applet embedded in HTML page, what are the necessary changes I have to do in the simplemcss code. I have modified the code to init(), but its not working..
 
Any help would be greatly appreciated.
 
Thanks
 
--
Om Prakash
Research Student,
Bioinformatics Center
University of Pune
Pune-411007
India
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Cdk-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cdk-user

Reply via email to