From: <and...@us...> - 2009-08-12 20:56:22
|
Revision: 10233 http://plplot.svn.sourceforge.net/plplot/?rev=10233&view=rev Author: andrewross Date: 2009-08-12 20:56:03 +0000 (Wed, 12 Aug 2009) Log Message: ----------- Update java bindings to include plarc and modify example 3 consistent with C version. Modified Paths: -------------- trunk/bindings/java/PLStream.java trunk/examples/java/x03.java Modified: trunk/bindings/java/PLStream.java =================================================================== --- trunk/bindings/java/PLStream.java 2009-08-12 15:48:42 UTC (rev 10232) +++ trunk/bindings/java/PLStream.java 2009-08-12 20:56:03 UTC (rev 10233) @@ -118,6 +118,11 @@ plplotjavac.pladv(page); } +public void arc(double x, double y, double a, double b, double angle1, double angle2, boolean fill ) { + if (set_stream() == -1) return; + plplotjavac.plarc(x, y, a, b, angle1, angle2, fill); +} + public void axes(double x0, double y0, String xopt, double xtick, int nxsub, String yopt, double ytick, int nysub) { if (set_stream() == -1) return; Modified: trunk/examples/java/x03.java =================================================================== --- trunk/examples/java/x03.java 2009-08-12 15:48:42 UTC (rev 10232) +++ trunk/examples/java/x03.java 2009-08-12 20:56:03 UTC (rev 10233) @@ -77,14 +77,7 @@ pls.env(-1.3, 1.3, -1.3, 1.3, 1, -2); for (i = 1; i <= 10; i++) { - for (j = 0; j <= 360; j++) { - x[j] = 0.1 * i * x0[j]; - y[j] = 0.1 * i * y0[j]; - } - - // Draw circles for polar grid. - - pls.line(x, y); + pls.arc(0.0, 0.0, 0.1*i, 0.1*i, 0.0, 360.0, false); } pls.col0(2); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |