01: /*
02: * Created on Sep 16, 2004
03: *
04: */
05: package test;
06:
07: import java.util.*;
08:
09: /**
10: * @author Ali
11: *
12: */
13: public class PLPlot extends AbstractPLPlot {
14:
15: public PLPlot() {
16: super ();
17: }
18:
19: public void exec() {
20: pls.env(0, 1, 0, 1, 0, 0);
21: }
22:
23: public static void PLOT(Vector in) {
24: reset();
25: selectMethod(in);
26: }
27:
28: public static void PLOT(Vector in, boolean grid) {
29: reset();
30: PLPlot.grid = grid;
31: selectMethod(in);
32: }
33:
34: private static void plotn() {
35: }
36:
37: private static void plot3() {
38: }
39:
40: private static void plot2() {
41: }
42:
43: private static void plot1() {
44: (new Plot1()).start();
45: }
46:
47: public static void main(String[] args) {
48: }
49:
50: private static void selectMethod(Vector in) {
51: int n = in.size();
52: input = in;
53: switch (n) {
54: case 1:
55: plot1();
56: break;
57: case 2:
58: plot2();
59: break;
60: case 3:
61: plot3();
62: break;
63: default:
64: plotn();
65: }
66: }
67:
68: }
|