//---------------------------------------------------------------------------//
// $Id$
//
// Implementation of PLplot example 2 in Java.
//---------------------------------------------------------------------------//

package plplot.examples;

import plplot.core.*;

import java.lang.Math;

class x02 {

    public static void main( String[] args ) 
    {
        System.out.println( "x02 not implemented yet." );
    }
}

//---------------------------------------------------------------------------//
//                              End of x02.java
//---------------------------------------------------------------------------//

@@ -288,20 +288,59 @@
 th;%0A
-%0Aclass x02 %7B
+import java.text.*;%0A%0Aclass x02 %7B%0A%0A    PLStream pls;
 %0A%0A  
@@ -446,16 +446,1083 @@
 yet.%22 );
+%0A%0A        x02 x = new x02( args );%0A    %7D%0A%0A    x02( String%5B%5D args )%0A    %7B%0A        int i, j;%0A        double vmin, vmax;%0A        NumberFormat nf = NumberFormat.getNumberInstance();%0A%0A        pls = new PLStream();%0A%0A    // Divide screen into 16 regions.%0A%0A        pls.ssub(4, 4);%0A%0A    // Parse and process command line arguments.%0A%0A//         (void) plParseOpts(&argc, argv, PL_PARSE_FULL);%0A%0A    // Initialize plplot.%0A%0A        pls.init();%0A%0A        pls.schr(0.0, 3.5);%0A        pls.font(4);%0A%0A        for (i = 0; i %3C= 15; i++) %7B%0A            pls.col0(i);%0A%0A            String text = nf.format(i);%0A%0A            pls.adv(0);%0A            vmin = 0.1;%0A            vmax = 0.9;%0A            for (j = 0; j %3C= 2; j++) %7B%0A                pls.wid(j + 1);%0A                pls.vpor(vmin, vmax, vmin, vmax);%0A                pls.wind(0.0, 1.0, 0.0, 1.0);%0A                pls.box(%22bc%22, 0.0, 0, %22bc%22, 0.0, 0);%0A                vmin = vmin + 0.1;%0A                vmax = vmax - 0.1;%0A            %7D%0A            pls.wid(1);%0A            pls.ptex(0.5, 0.5, 1.0, 0.0, 0.5, text);%0A        %7D%0A%0A        pls.end();
 %0A    %7D%0A%7D

Implemented most of this example.