1 package sample;
2
3 import java.awt.Color;
4
5 import fi.jyu.mit.graphics.*;
6
7
12 public class PolylineSample {
13
17 public static void main(String[] args) {
18 double lammot[] = { -5,-12, -3, 1, 7, 12, 14, 10, 6, 4, 2, 0 };
20
21 Polyline plammot = new Polyline(1,1,lammot);
22 plammot.setColor(Color.RED);
23
24 Window window = new Window();
25 window.scale(0,-20,13,20);
26 window.add(new Axis(40,40,0));
27 window.add(plammot);
28 window.showWindow();
29
30 plammot.add(13,-2);
31
32 }
33
34 }
35