//---------------------------------------------------------------------------//
// $Id$
//
// This file implements the core Java side of the Java->PLplot interface, by
// providing a Java class PLStream, which is intended to mirror the C
// PLStream of PLplot.  However, we go further here in Java than we were able
// to do in C, by actually making the PLplot API entry points methods of this
// stream class.  Thus, to plot to a stream in Java, you just instantiate the
// stream, and invoke PLplot API services upon it.  This is basically what we
// have tried to do in the bindings to other object oriented environments,
// such as C++ and the Tcl/Tk and Python/Tk widget contexts.  A stream
// represents sort of a "drawable" abstraction, and the PLplot API gets the
// drawing done on the identified stream.  In C you have to swtich the stream
// explicitly with the plsstrm function, but in Java you just invoke the API
// function on the approrpiate stream object.
//---------------------------------------------------------------------------//

package plplot.core;

public class PLStream {

    static {
        System.loadLibrary( "plplot" );
    }

    public PLStream() {
        System.out.println( "PLStream constructed." );
    }

    public void xyz() { System.out.println( "In xyz()" ); }
}

//---------------------------------------------------------------------------//
//                              End of PLStream.java
//---------------------------------------------------------------------------//


@@ -1098,151 +1098,713 @@
  %7B%0A%0A
-    static %7B%0A        System.loadLibrary( %22plplot%22 );%0A    %7D%0A%0A    public PLStream() %7B%0A        System.out.println( %22PLStream constructed.%22 );%0A    
+// The PLplot core API function calls.%0A    public native void col0( int icol );%0A    public native void end();%0A    public native void env( float xmin, float xmax, float ymin, float ymax,%0A                            int just, int axis );%0A    public native void fontld( int fnt );%0A    public native void init();%0A    public native void lab( String xlabel, String ylabel, String tlabel );%0A    public native void line( int n, float%5B%5D x, float%5B%5D y );%0A    public native void poin( int n, float%5B%5D x, float%5B%5D y, int code );%0A%0A// Static code block to get the PLplot dynamic library loaded in.%0A    static %7B%0A        System.loadLibrary( %22plplot%22 );%0A    %7D%0A%0A// Now comes stuff we need done in Java.%0A    public PLStream() %7B
 %7D%0A%0A 

Add JNI native decl's for several commonly used PLplot API functions.