Duan Lian,

Please tell us a bit more about your PDB2PNG renderer. Specifically,
why not just use the capability of Jmol to write PNG files?
You can even do this in command-line mode without ever calling up a
display. Is there something special that you are trying to do, or is
it possible that you didn't realize that Jmol does this already.

For example:

load =1crn
cartoons on;color group
write image 500 500 PNG "myfile.png"



On Sat, Dec 6, 2008 at 11:30 AM, Duan Lian <[EMAIL PROTECTED]> wrote:
> Hi, all
>
>  WIth the code of other project integrating Jmol, I implemented an
> PDB2PNG renderer by using JmolViewer and BufferedImage.
> But the renderer is not perfect yet. JmolViewer provides openFIle()
> and openStringInline() to load files, but both of them is executed in
> another thread other than the main thread. As this renderer is written
> for a web-based database to display protein image. So this
> multi-thread design becomes a problem for me. I have to block the main
> thread until the file is loaded instead of rendering the image right
> after I execute openFile(). I don't know when the file is loaded, so I
> used Thread.sleep(1000);. If I can get informed when the file is
> loaded, then I can avoid this stupid solution. Is there any listener
> for file load finish or any method that can load file in a blocked
> way.
>
>
> Best Regards,
>
> Duan Lian
>
> ------------------------------------------------------------------------------
> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
> The future of the web can't happen without you.  Join us at MIX09 to help
> pave the way to the Next Web now. Learn more and register at
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>



-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to