NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Hi Nicolas, The visad/examples/Rivers.java program draws lines from Java. Each sequence of line segments is constructed as a Gridded2DSet with manifold dimension = 1, and several sequences are combined in a UnionSet. You can execute Python code form a Java program using the visad/python/RunJPython.java class. See its main() method for an example. You basically construct a new RunJPython object, then pass filenames to its execfile() method, or lines of Python code to its exec() or eval() methods. Good luck, Bill On Fri, 6 Jun 2003, [iso-8859-1] nicolas guegan wrote: > Hi, > > I'm sorry, but I don't well understand the visad-jython connection. > > My code is in java with a little visad. > > I want to draw line but I don't want to change my code into the python code. > I want to keep my java code because it's very long and it use the applet. > > Could I use the draw line or use the jython 's package with java code > without create a file.py?
visad
archives: