How to use jzy3d in android using eclipse?

后端 未结 2 1844
既然无缘
既然无缘 2021-01-28 18:06

Hi. I want to create a 3dplot graph in android. I want to use jzy3d lib and found this example for beginning.

import org.jzy3d.chart.Chart;
import org.jzy3         


        
相关标签:
2条回答
  • 2021-01-28 18:55

    JOGL2, the underlying framework for Jzy3d 0.9.x rendering allows deploying on Android so Jzy3d will be able to do so.

    For Android, there's a requirement to have no dependency on AWT, which is made feasable by ignoring the src/awt in jzy3d main library (ignoring swing and swt should be a good idea as well). Jzy3d has its own equivalents for AWT Rectangle & the likes so it will still build. You will have to derive CanvasNewtAwt [1] to make it work with Android (see [2] and [3]). You'll also want to see how maven poms select awt and swing source [4].

    [1] http://doc.jzy3d.org/javadoc/0.9.1/jzy3d-api/org/jzy3d/plot3d/rendering/canvas/CanvasNewtAwt.html

    [2] http://forum.jogamp.org/Migrate-a-Java-application-using-Jogl-to-Android-tablet-td3732586.html

    [3] http://jogamp.org/jogl/doc/NEWT-Overview.html

    [4] https://github.com/jzy3d/jzy3d-api/blob/master/jzy3d-api/pom.xml

    0 讨论(0)
  • 2021-01-28 19:02

    AWT isn't supported under Android. Moreover, you use "jogl.jar" which comes from JOGL 1 whereas JOGL supports Android only since its second version. Please use a more recent version of Jzy3D and do the same for JOGL and GlueGen. As far as I know, Jzy3D 0.8 doesn't support Android.

    0 讨论(0)
提交回复
热议问题