Back to index

wims  3.65+svn20090927
Drawing.java
Go to the documentation of this file.
00001 package rene.zirkel.graphics;
00002 
00003 import rene.util.*;
00004 import rene.zirkel.structures.CoordinatesXY;
00005 
00006 import java.util.*;
00007 
00008 // file: Drawing.java
00009 
00010 public class Drawing
00011 {      MyVector P;
00012        int Col;
00013 
00014        public Drawing ()
00015        {      P=new MyVector();
00016        }
00017 
00018        public void addXY (double x, double y)
00019        {      P.addElement(new CoordinatesXY(x,y));
00020        }
00021        
00022        public Enumeration elements ()
00023        {      return P.elements();
00024        }
00025        
00026        public void setColor (int col)
00027        {      Col=col;
00028        }
00029        
00030        public int getColor ()
00031        {      return Col;
00032        }
00033 }