Mike Cassells
unread,Jul 15, 2013, 12:01:19 AM7/15/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jz...@googlegroups.com
Hi,
Great charting API, it does a lot of what I need. I am having general newbie struggles with getting a chart to render in a Eclipse RCP view part of a plugin/bundle which is within a part stack.
Can anyone suggest a link to some basic complete example code that, given a Chart constructed with "awt" windowing toolkit, will do the necessary to show the chart and give me mouse control over it.
I'm trying to get it working within the context of the Vogella RCP tutorial, which creates view part code such as:
public class TodoDetailsPart {
@PostConstruct
public void createControls(Composite parent) {
Chart chart = new SurfaceChart().getChart();
// do stuff to show it and control it on the 'parent' Composite
}
}
Constructing the chart and getting it to display in the JZY3D demos' ecosystem
works fine, but all the snippets I've found, when mashed together give
me various problems, most notably "Invalid thread access". I think I'm close but as a last resort I hoping for a working example I could be pointed to and build upon.
Just as an aside, I've packaged the JZY3D dependencies into a plugin project of it's own which is a dependency to my plugin. I found that for it to resolve the native DLLs for JOGL I needed to create a "plugin from external JARS",and explicitly specified "unzip the JAR files into the project". If I left the JARs zipped JOGL wouldn't delve into the JARs to find the DLLs, giving exception "java.lang.UnsatisfiedLinkError: no gluegen-rt in java.library.path" even with the argument "jogamp.gluegen.UseTempJarCache=true"
Cheers, Mike.