001: //---------------------------------------------------------------------------//
002: //
003: // Copyright (C) 2004 Andrew Ross
004: //
005: // This file is part of PLplot.
006: //
007: // PLplot is free software; you can redistribute it and/or modify
008: // it under the terms of the GNU General Library Public License as published
009: // by the Free Software Foundation; either version 2 of the License, or
010: // (at your option) any later version.
011: //
012: // PLplot is distributed in the hope that it will be useful,
013: // but WITHOUT ANY WARRANTY; without even the implied warranty of
014: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
015: // GNU Library General Public License for more details.
016: //
017: // You should have received a copy of the GNU Library General Public License
018: // along with PLplot; if not, write to the Free Software
019: // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
020: //
021: // This class provides a more object orientated wrapper to the PLplot library
022: // for java. It is currently very similar to the C++ plstream class.
023: // Each instance of the class corresponds to a plplot stream. Calling a
024: // method in the class will ensure the stream is correctly set before
025: // calling the underlying API function.
026: //
027:
028: package test.plplot.core;
029:
030: import java.io.*;
031:
032: public class PLStream implements plplotjavacConstants {
033:
034: // Class data.
035: int stream_id = -1;
036:
037: static int next_stream = 0;
038: static int active_streams = 0;
039:
040: // Constructor
041: public PLStream() {
042: // If this is the first instance of the class we
043: // need to load the C part of the bindings
044: if (active_streams == 0) {
045: // openlib(); native code library is always loaded on startup
046: }
047:
048: stream_id = next_stream;
049: active_streams++;
050: next_stream++;
051:
052: // Create stream and check it worked ok.
053: if (set_stream() == -1) {
054: System.err.println("Error creating plplot stream");
055: stream_id = -1;
056: active_streams--;
057: next_stream--;
058: }
059: }
060:
061: // Ensure this is the current stream
062: public int set_stream() {
063: if ((stream_id == -1) || (active_streams == 0)) {
064: System.err.println("Error: This stream is not active");
065: return -1;
066: }
067: plplotjavac.plsstrm(stream_id);
068: return 0;
069: }
070:
071: // Method to load the native C part of the java wrapper
072: /*public void openlib() {
073: File libname = null;
074:
075: try {
076: String libdir = System.getProperty("plplot.libdir");
077: libname = new File(libdir+File.separatorChar+plplot.core.config.libname);
078: if (! libname.exists()) {
079: libname = null;
080: }
081: } catch ( Exception e) {
082: }
083: if (libname == null) {
084: libname = new File(plplot.core.config.libdir+File.separatorChar+plplot.core.config.libname);
085: if ( ! libname.exists() ) {
086: libname = null;
087: }
088: }
089: if (libname != null) {
090: try {
091: System.load( libname.getAbsolutePath() );
092: } catch (UnsatisfiedLinkError e) {
093: System.err.println("Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" + e);
094: System.exit(1);
095: }
096: }
097: else {
098: System.err.println("Unable to find native code library.\n");
099: System.exit(1);
100: }
101:
102: }
103: */
104: // The following are wrappers to the C API methods, or their derivatives
105: public void setcontlabelformat(int lexp, int sigdig) {
106: if (set_stream() == -1)
107: return;
108: plplotjavac.pl_setcontlabelformat(lexp, sigdig);
109: }
110:
111: public void setcontlabelparam(double offset, double size,
112: double spacing, int active) {
113: if (set_stream() == -1)
114: return;
115: plplotjavac.pl_setcontlabelparam(offset, size, spacing, active);
116: }
117:
118: public void adv(int page) {
119: if (set_stream() == -1)
120: return;
121: plplotjavac.pladv(page);
122: }
123:
124: public void axes(double x0, double y0, String xopt, double xtick,
125: int nxsub, String yopt, double ytick, int nysub) {
126: if (set_stream() == -1)
127: return;
128: plplotjavac.plaxes(x0, y0, xopt, xtick, nxsub, yopt, ytick,
129: nysub);
130: }
131:
132: public void bin(double[] x, double[] y, int center) {
133: if (set_stream() == -1)
134: return;
135: plplotjavac.plbin(x, y, center);
136: }
137:
138: public void bop() {
139: if (set_stream() == -1)
140: return;
141: plplotjavac.plbop();
142: }
143:
144: public void box(String xopt, double xtick, int nxsub, String yopt,
145: double ytick, int nysub) {
146: if (set_stream() == -1)
147: return;
148: plplotjavac.plbox(xopt, xtick, nxsub, yopt, ytick, nysub);
149: }
150:
151: public void box3(String xopt, String xlabel, double xtick,
152: int nsubx, String yopt, String ylabel, double ytick,
153: int nsuby, String zopt, String zlabel, double ztick,
154: int nsubz) {
155: if (set_stream() == -1)
156: return;
157: plplotjavac.plbox3(xopt, xlabel, xtick, nsubx, yopt, ylabel,
158: ytick, nsuby, zopt, zlabel, ztick, nsubz);
159: }
160:
161: public void calc_world(double rx, double ry, double[] wx,
162: double[] wy, int[] window) {
163: if (set_stream() == -1)
164: return;
165: plplotjavac.plcalc_world(rx, ry, wx, wy, window);
166: }
167:
168: public void clear() {
169: if (set_stream() == -1)
170: return;
171: plplotjavac.plclear();
172: }
173:
174: public void col0(int icol0) {
175: if (set_stream() == -1)
176: return;
177: plplotjavac.plcol0(icol0);
178: }
179:
180: public void col1(double col1) {
181: if (set_stream() == -1)
182: return;
183: plplotjavac.plcol1(col1);
184: }
185:
186: public void cont(double[][] f, int kx, int lx, int ky, int ly,
187: double[] clevel, double[][] pltr, double[][] OBJECT_DATA) {
188: if (set_stream() == -1)
189: return;
190: plplotjavac
191: .plcont(f, kx, lx, ky, ly, clevel, pltr, OBJECT_DATA);
192: }
193:
194: public void cpstrm(int iplsr, int flags) {
195: if (set_stream() == -1)
196: return;
197: plplotjavac.plcpstrm(iplsr, flags);
198: }
199:
200: // The end / end1 functions have extra code in to keep track of the
201: // stream references in the class.
202: public void end() {
203: if (set_stream() == -1)
204: return;
205: plplotjavac.plend();
206: active_streams = 0;
207: stream_id = -1;
208: }
209:
210: public void end1() {
211: if (set_stream() == -1)
212: return;
213: plplotjavac.plend1();
214:
215: active_streams--;
216: stream_id = -1;
217: }
218:
219: public void env(double xmin, double xmax, double ymin, double ymax,
220: int just, int axis) {
221: if (set_stream() == -1)
222: return;
223: plplotjavac.plenv(xmin, xmax, ymin, ymax, just, axis);
224: }
225:
226: public void eop() {
227: if (set_stream() == -1)
228: return;
229: plplotjavac.pleop();
230: }
231:
232: public void errx(double[] xmin, double[] xmax, double[] y) {
233: if (set_stream() == -1)
234: return;
235: plplotjavac.plerrx(xmin, xmax, y);
236: }
237:
238: public void erry(double[] x, double[] ymin, double[] ymax) {
239: if (set_stream() == -1)
240: return;
241: plplotjavac.plerry(x, ymin, ymax);
242: }
243:
244: public void famadv() {
245: if (set_stream() == -1)
246: return;
247: plplotjavac.plfamadv();
248: }
249:
250: public void fill(double[] x, double[] y) {
251: if (set_stream() == -1)
252: return;
253: plplotjavac.plfill(x, y);
254: }
255:
256: public void fill3(double[] x, double[] y, double[] z) {
257: if (set_stream() == -1)
258: return;
259: plplotjavac.plfill3(x, y, z);
260: }
261:
262: public void flush() {
263: if (set_stream() == -1)
264: return;
265: plplotjavac.plflush();
266: }
267:
268: public void font(int ifont) {
269: if (set_stream() == -1)
270: return;
271: plplotjavac.plfont(ifont);
272: }
273:
274: public void fontld(int fnt) {
275: if (set_stream() == -1)
276: return;
277: plplotjavac.plfontld(fnt);
278: }
279:
280: public void gchr(double[] p_def, double[] p_ht) {
281: if (set_stream() == -1)
282: return;
283: plplotjavac.plgchr(p_def, p_ht);
284: }
285:
286: public void gcol0(int icol0, int[] r, int[] g, int[] b) {
287: if (set_stream() == -1)
288: return;
289: plplotjavac.plgcol0(icol0, r, g, b);
290: }
291:
292: public void gcolbg(int[] r, int[] g, int[] b) {
293: if (set_stream() == -1)
294: return;
295: plplotjavac.plgcolbg(r, g, b);
296: }
297:
298: public void gcompression(int[] compression) {
299: if (set_stream() == -1)
300: return;
301: plplotjavac.plgcompression(compression);
302: }
303:
304: public void gdev(StringBuffer dev) {
305: if (set_stream() == -1)
306: return;
307: plplotjavac.plgdev(dev);
308: }
309:
310: public void gdidev(double[] mar, double[] aspect, double[] jx,
311: double[] jy) {
312: if (set_stream() == -1)
313: return;
314: plplotjavac.plgdidev(mar, aspect, jx, jy);
315: }
316:
317: public void gdiori(double[] rot) {
318: if (set_stream() == -1)
319: return;
320: plplotjavac.plgdiori(rot);
321: }
322:
323: public void gdiplt(double[] xmin, double[] xmax, double[] ymin,
324: double[] ymax) {
325: if (set_stream() == -1)
326: return;
327: plplotjavac.plgdiplt(xmin, xmax, ymin, ymax);
328: }
329:
330: public void gfam(int[] fam, int[] num, int[] bmax) {
331: if (set_stream() == -1)
332: return;
333: plplotjavac.plgfam(fam, num, bmax);
334: }
335:
336: public void gfnam(StringBuffer fnam) {
337: if (set_stream() == -1)
338: return;
339: plplotjavac.plgfnam(fnam);
340: }
341:
342: public void glevel(int[] p_level) {
343: if (set_stream() == -1)
344: return;
345: plplotjavac.plglevel(p_level);
346: }
347:
348: public void gpage(double[] xp, double[] yp, int[] xleng,
349: int[] yleng, int[] xoff, int[] yoff) {
350: if (set_stream() == -1)
351: return;
352: plplotjavac.plgpage(xp, yp, xleng, yleng, xoff, yoff);
353: }
354:
355: public void gra() {
356: if (set_stream() == -1)
357: return;
358: plplotjavac.plgra();
359: }
360:
361: public void gspa(double[] xmin, double[] xmax, double[] ymin,
362: double[] ymax) {
363: if (set_stream() == -1)
364: return;
365: plplotjavac.plgspa(xmin, xmax, ymin, ymax);
366: }
367:
368: // Note: The user should never need this in with this class
369: // since the stream is encapsulated in the class.
370: //public void gstrm(int[] p_strm) {
371: // if (set_stream() == -1) return;
372: // plplotjavac.plgstrm(p_strm);
373: //}
374:
375: public int getstrm() {
376: return stream_id;
377: }
378:
379: public void gver(StringBuffer ver) {
380: if (set_stream() == -1)
381: return;
382: plplotjavac.plgver(ver);
383: }
384:
385: public void gvpd(double[] xmin, double[] xmax, double[] ymin,
386: double[] ymax) {
387: if (set_stream() == -1)
388: return;
389: plplotjavac.plgvpd(xmin, xmax, ymin, ymax);
390: }
391:
392: public void gvpw(double[] xmin, double[] xmax, double[] ymin,
393: double[] ymax) {
394: if (set_stream() == -1)
395: return;
396: plplotjavac.plgvpw(xmin, xmax, ymin, ymax);
397: }
398:
399: public void gxax(int[] digmax, int[] digits) {
400: if (set_stream() == -1)
401: return;
402: plplotjavac.plgxax(digmax, digits);
403: }
404:
405: public void gyax(int[] digmax, int[] digits) {
406: if (set_stream() == -1)
407: return;
408: plplotjavac.plgyax(digmax, digits);
409: }
410:
411: public void gzax(int[] digmax, int[] digits) {
412: if (set_stream() == -1)
413: return;
414: plplotjavac.plgzax(digmax, digits);
415: }
416:
417: public void hist(double[] data, double datmin, double datmax,
418: int nbin, int oldwin) {
419: if (set_stream() == -1)
420: return;
421: plplotjavac.plhist(data, datmin, datmax, nbin, oldwin);
422: }
423:
424: public void hls(double h, double l, double s) {
425: if (set_stream() == -1)
426: return;
427: plplotjavac.plhls(h, l, s);
428: }
429:
430: public void init() {
431: if (set_stream() == -1)
432: return;
433: plplotjavac.plinit();
434: }
435:
436: public void join(double x1, double y1, double x2, double y2) {
437: if (set_stream() == -1)
438: return;
439: plplotjavac.pljoin(x1, y1, x2, y2);
440: }
441:
442: public void lab(String xlabel, String ylabel, String tlabel) {
443: if (set_stream() == -1)
444: return;
445: plplotjavac.pllab(xlabel, ylabel, tlabel);
446: }
447:
448: public void lightsource(double x, double y, double z) {
449: if (set_stream() == -1)
450: return;
451: plplotjavac.pllightsource(x, y, z);
452: }
453:
454: public void line(double[] x, double[] y) {
455: if (set_stream() == -1)
456: return;
457: plplotjavac.plline(x, y);
458: }
459:
460: public void line3(double[] x, double[] y, double[] z) {
461: if (set_stream() == -1)
462: return;
463: plplotjavac.plline3(x, y, z);
464: }
465:
466: public void lsty(int lin) {
467: if (set_stream() == -1)
468: return;
469: plplotjavac.pllsty(lin);
470: }
471:
472: public void mesh(double[] x, double[] y, double[][] z, int opt) {
473: if (set_stream() == -1)
474: return;
475: plplotjavac.plmesh(x, y, z, opt);
476: }
477:
478: public void meshc(double[] x, double[] y, double[][] z, int opt,
479: double[] clevel) {
480: if (set_stream() == -1)
481: return;
482: plplotjavac.plmeshc(x, y, z, opt, clevel);
483: }
484:
485: // Don't need this in the OO approach - create a new object instead.
486: //public void mkstrm(int[] OUTPUT) {
487: // if (set_stream() == -1) return;
488: // plplotjavac.plmkstrm(int[] OUTPUT);
489: //}
490:
491: public void mtex(String side, double disp, double pos, double just,
492: String text) {
493: if (set_stream() == -1)
494: return;
495: plplotjavac.plmtex(side, disp, pos, just, text);
496: }
497:
498: public void plot3d(double[] x, double[] y, double[][] z, int opt,
499: int side) {
500: if (set_stream() == -1)
501: return;
502: plplotjavac.plot3d(x, y, z, opt, side);
503: }
504:
505: public void plot3dc(double[] x, double[] y, double[][] z, int opt,
506: double[] clevel) {
507: if (set_stream() == -1)
508: return;
509: plplotjavac.plot3dc(x, y, z, opt, clevel);
510: }
511:
512: public void plot3dcl(double[] x, double[] y, double[][] z, int opt,
513: double[] clevel, int ixstart, int[] indexymin,
514: int[] indexymax) {
515: if (set_stream() == -1)
516: return;
517: plplotjavac.plot3dcl(x, y, z, opt, clevel, ixstart, indexymin,
518: indexymax);
519: }
520:
521: public void surf3d(double[] x, double[] y, double[][] z, int opt,
522: double[] clevel) {
523: if (set_stream() == -1)
524: return;
525: plplotjavac.plsurf3d(x, y, z, opt, clevel);
526: }
527:
528: public void surf3dl(double[] x, double[] y, double[][] z, int opt,
529: double[] clevel, int ixstart, int[] indexymin,
530: int[] indexymax) {
531: if (set_stream() == -1)
532: return;
533: plplotjavac.plsurf3dl(x, y, z, opt, clevel, ixstart, indexymin,
534: indexymax);
535: }
536:
537: public void pat(int[] inc, int[] del) {
538: if (set_stream() == -1)
539: return;
540: plplotjavac.plpat(inc, del);
541: }
542:
543: public void poin(double[] x, double[] y, int code) {
544: if (set_stream() == -1)
545: return;
546: plplotjavac.plpoin(x, y, code);
547: }
548:
549: public void poin3(double[] x, double[] y, double[] z, int code) {
550: if (set_stream() == -1)
551: return;
552: plplotjavac.plpoin3(x, y, z, code);
553: }
554:
555: public void poly3(double[] x, double[] y, double[] z, int[] draw,
556: int ifcc) {
557: if (set_stream() == -1)
558: return;
559: plplotjavac.plpoly3(x, y, z, draw, ifcc);
560: }
561:
562: public void prec(int setp, int prec) {
563: if (set_stream() == -1)
564: return;
565: plplotjavac.plprec(setp, prec);
566: }
567:
568: public void psty(int patt) {
569: if (set_stream() == -1)
570: return;
571: plplotjavac.plpsty(patt);
572: }
573:
574: public void ptex(double x, double y, double dx, double dy,
575: double just, String text) {
576: if (set_stream() == -1)
577: return;
578: plplotjavac.plptex(x, y, dx, dy, just, text);
579: }
580:
581: public void replot() {
582: if (set_stream() == -1)
583: return;
584: plplotjavac.plreplot();
585: }
586:
587: public void schr(double def, double scale) {
588: if (set_stream() == -1)
589: return;
590: plplotjavac.plschr(def, scale);
591: }
592:
593: public void scmap0(int[] r, int[] g, int[] b) {
594: if (set_stream() == -1)
595: return;
596: plplotjavac.plscmap0(r, g, b);
597: }
598:
599: public void scmap0n(int ncol0) {
600: if (set_stream() == -1)
601: return;
602: plplotjavac.plscmap0n(ncol0);
603: }
604:
605: public void scmap1(int[] r, int[] g, int[] b) {
606: if (set_stream() == -1)
607: return;
608: plplotjavac.plscmap1(r, g, b);
609: }
610:
611: public void scmap1l(int itype, double[] intensity, double[] coord1,
612: double[] coord2, double[] coord3, int[] rev) {
613: if (set_stream() == -1)
614: return;
615: plplotjavac.plscmap1l(itype, intensity, coord1, coord2, coord3,
616: rev);
617: }
618:
619: public void scmap1n(int ncol1) {
620: if (set_stream() == -1)
621: return;
622: plplotjavac.plscmap1n(ncol1);
623: }
624:
625: public void scol0(int icol0, int r, int g, int b) {
626: if (set_stream() == -1)
627: return;
628: plplotjavac.plscol0(icol0, r, g, b);
629: }
630:
631: public void scolbg(int r, int g, int b) {
632: if (set_stream() == -1)
633: return;
634: plplotjavac.plscolbg(r, g, b);
635: }
636:
637: public void scolor(int color) {
638: if (set_stream() == -1)
639: return;
640: plplotjavac.plscolor(color);
641: }
642:
643: public void scompression(int compression) {
644: if (set_stream() == -1)
645: return;
646: plplotjavac.plscompression(compression);
647: }
648:
649: public void sdev(String devname) {
650: if (set_stream() == -1)
651: return;
652: plplotjavac.plsdev(devname);
653: }
654:
655: public void sdidev(double mar, double aspect, double jx, double jy) {
656: if (set_stream() == -1)
657: return;
658: plplotjavac.plsdidev(mar, aspect, jx, jy);
659: }
660:
661: public void sdimap(int dimxmin, int dimxmax, int dimymin,
662: int dimymax, double dimxpmm, double dimypmm) {
663: if (set_stream() == -1)
664: return;
665: plplotjavac.plsdimap(dimxmin, dimxmax, dimymin, dimymax,
666: dimxpmm, dimypmm);
667: }
668:
669: public void sdiori(double rot) {
670: if (set_stream() == -1)
671: return;
672: plplotjavac.plsdiori(rot);
673: }
674:
675: public void sdiplt(double xmin, double ymin, double xmax,
676: double ymax) {
677: if (set_stream() == -1)
678: return;
679: plplotjavac.plsdiplt(xmin, ymin, xmax, ymax);
680: }
681:
682: public void sdiplz(double xmin, double ymin, double xmax,
683: double ymax) {
684: if (set_stream() == -1)
685: return;
686: plplotjavac.plsdiplz(xmin, ymin, xmax, ymax);
687: }
688:
689: public void sesc(char esc) {
690: if (set_stream() == -1)
691: return;
692: plplotjavac.plsesc(esc);
693: }
694:
695: public void setopt(String opt, String optarg) {
696: if (set_stream() == -1)
697: return;
698: plplotjavac.plsetopt(opt, optarg);
699: }
700:
701: public void sfam(int fam, int num, int bmax) {
702: if (set_stream() == -1)
703: return;
704: plplotjavac.plsfam(fam, num, bmax);
705: }
706:
707: public void sfnam(String fnam) {
708: if (set_stream() == -1)
709: return;
710: plplotjavac.plsfnam(fnam);
711: }
712:
713: public void shades(double[][] a, double xmin, double xmax,
714: double ymin, double ymax, double[] clevel, int fill_width,
715: int cont_color, int cont_width, int rectangular,
716: double[][] pltr, double[][] OBJECT_DATA) {
717: if (set_stream() == -1)
718: return;
719: plplotjavac.plshades(a, xmin, xmax, ymin, ymax, clevel,
720: fill_width, cont_color, cont_width, rectangular, pltr,
721: OBJECT_DATA);
722: }
723:
724: public void shade(double[][] a, double left, double right,
725: double bottom, double top, double shade_min,
726: double shade_max, int sh_cmap, double sh_color,
727: int sh_width, int min_color, int min_width, int max_color,
728: int max_width, int rectangular, double[][] pltr,
729: double[][] OBJECT_DATA) {
730: if (set_stream() == -1)
731: return;
732: plplotjavac.plshade(a, left, right, bottom, top, shade_min,
733: shade_max, sh_cmap, sh_color, sh_width, min_color,
734: min_width, max_color, max_width, rectangular, pltr,
735: OBJECT_DATA);
736: }
737:
738: public void smaj(double def, double scale) {
739: if (set_stream() == -1)
740: return;
741: plplotjavac.plsmaj(def, scale);
742: }
743:
744: public void smin(double def, double scale) {
745: if (set_stream() == -1)
746: return;
747: plplotjavac.plsmin(def, scale);
748: }
749:
750: public void sori(int ori) {
751: if (set_stream() == -1)
752: return;
753: plplotjavac.plsori(ori);
754: }
755:
756: public void spage(double xp, double yp, int xleng, int yleng,
757: int xoff, int yoff) {
758: if (set_stream() == -1)
759: return;
760: plplotjavac.plspage(xp, yp, xleng, yleng, xoff, yoff);
761: }
762:
763: public void spause(int pause) {
764: if (set_stream() == -1)
765: return;
766: plplotjavac.plspause(pause);
767: }
768:
769: public void sstrm(int strm) {
770: if (set_stream() == -1)
771: return;
772: plplotjavac.plsstrm(strm);
773: }
774:
775: public void ssub(int nx, int ny) {
776: if (set_stream() == -1)
777: return;
778: plplotjavac.plssub(nx, ny);
779: }
780:
781: public void ssym(double def, double scale) {
782: if (set_stream() == -1)
783: return;
784: plplotjavac.plssym(def, scale);
785: }
786:
787: public void star(int nx, int ny) {
788: if (set_stream() == -1)
789: return;
790: plplotjavac.plstar(nx, ny);
791: }
792:
793: public void start(String devname, int nx, int ny) {
794: if (set_stream() == -1)
795: return;
796: plplotjavac.plstart(devname, nx, ny);
797: }
798:
799: public void stripa(int id, int pen, double x, double y) {
800: if (set_stream() == -1)
801: return;
802: plplotjavac.plstripa(id, pen, x, y);
803: }
804:
805: public void stripc(int[] id, String xspec, String yspec,
806: double xmin, double xmax, double xjump, double ymin,
807: double ymax, double xlpos, double ylpos, int y_ascl,
808: int acc, int colbox, int collab, int[] colline,
809: int[] styline, SWIGTYPE_p_p_char legline, String labx,
810: String laby, String labtop) {
811: if (set_stream() == -1)
812: return;
813: plplotjavac.plstripc(id, xspec, yspec, xmin, xmax, xjump, ymin,
814: ymax, xlpos, ylpos, y_ascl, acc, colbox, collab,
815: colline, styline, legline, labx, laby, labtop);
816: }
817:
818: public void stripd(int id) {
819: if (set_stream() == -1)
820: return;
821: plplotjavac.plstripd(id);
822: }
823:
824: public void styl(int[] mark, int[] space) {
825: if (set_stream() == -1)
826: return;
827: plplotjavac.plstyl(mark, space);
828: }
829:
830: public void svect(double[] arrow_x, double[] arrow_y, int fill) {
831: if (set_stream() == -1)
832: return;
833: plplotjavac.plsvect(arrow_x, arrow_y, fill);
834: }
835:
836: public void svpa(double xmin, double xmax, double ymin, double ymax) {
837: if (set_stream() == -1)
838: return;
839: plplotjavac.plsvpa(xmin, xmax, ymin, ymax);
840: }
841:
842: public void sxax(int digmax, int digits) {
843: if (set_stream() == -1)
844: return;
845: plplotjavac.plsxax(digmax, digits);
846: }
847:
848: public void syax(int digmax, int digits) {
849: if (set_stream() == -1)
850: return;
851: plplotjavac.plsyax(digmax, digits);
852: }
853:
854: public void sym(double[] x, double[] y, int code) {
855: if (set_stream() == -1)
856: return;
857: plplotjavac.plsym(x, y, code);
858: }
859:
860: public void szax(int digmax, int digits) {
861: if (set_stream() == -1)
862: return;
863: plplotjavac.plszax(digmax, digits);
864: }
865:
866: public void text() {
867: if (set_stream() == -1)
868: return;
869: plplotjavac.pltext();
870: }
871:
872: public void vasp(double aspect) {
873: if (set_stream() == -1)
874: return;
875: plplotjavac.plvasp(aspect);
876: }
877:
878: public void vect(double[][] u, double[][] v, double scale,
879: double[][] pltr, double[][] OBJECT_DATA) {
880: if (set_stream() == -1)
881: return;
882: plplotjavac.plvect(u, v, scale, pltr, OBJECT_DATA);
883: }
884:
885: public void vpas(double xmin, double xmax, double ymin,
886: double ymax, double aspect) {
887: if (set_stream() == -1)
888: return;
889: plplotjavac.plvpas(xmin, xmax, ymin, ymax, aspect);
890: }
891:
892: public void vpor(double xmin, double xmax, double ymin, double ymax) {
893: if (set_stream() == -1)
894: return;
895: plplotjavac.plvpor(xmin, xmax, ymin, ymax);
896: }
897:
898: public void vsta() {
899: if (set_stream() == -1)
900: return;
901: plplotjavac.plvsta();
902: }
903:
904: public void w3d(double basex, double basey, double height,
905: double xmin0, double xmax0, double ymin0, double ymax0,
906: double zmin0, double zmax0, double alt, double az) {
907: if (set_stream() == -1)
908: return;
909: plplotjavac.plw3d(basex, basey, height, xmin0, xmax0, ymin0,
910: ymax0, zmin0, zmax0, alt, az);
911: }
912:
913: public void wid(int width) {
914: if (set_stream() == -1)
915: return;
916: plplotjavac.plwid(width);
917: }
918:
919: public void wind(double xmin, double xmax, double ymin, double ymax) {
920: if (set_stream() == -1)
921: return;
922: plplotjavac.plwind(xmin, xmax, ymin, ymax);
923: }
924:
925: public void xormod(int mode, int[] status) {
926: if (set_stream() == -1)
927: return;
928: plplotjavac.plxormod(mode, status);
929: }
930:
931: public void ClearOpts() {
932: if (set_stream() == -1)
933: return;
934: plplotjavac.plClearOpts();
935: }
936:
937: public void ResetOpts() {
938: if (set_stream() == -1)
939: return;
940: plplotjavac.plResetOpts();
941: }
942:
943: public void SetUsage(String program_string, String usage_string) {
944: if (set_stream() == -1)
945: return;
946: plplotjavac.plSetUsage(program_string, usage_string);
947: }
948:
949: public void ParseOpts(String[] argv, int mode) {
950: if (set_stream() == -1)
951: return;
952: plplotjavac.plParseOpts(argv, mode);
953: }
954:
955: public void OptUsage() {
956: if (set_stream() == -1)
957: return;
958: plplotjavac.plOptUsage();
959: }
960:
961: }
|