/Users/lyon/j4p/src/j2d/animation/ImageSequence.java

1    package j2d.animation; 
2     
3    import java.awt.*; 
4    import java.util.Vector; 
5     
6    public class ImageSequence { 
7     
8        private Vector imageVector = 
9                new Vector(); 
10    
11       public int getSize() { 
12           return imageVector.size(); 
13       } 
14    
15       public void add(Image img) { 
16           imageVector.addElement(img); 
17       } 
18    
19       public Image[] getImages() { 
20           Image img[] = new Image[imageVector.size()]; 
21           imageVector.copyInto(img); 
22           return img; 
23       } 
24   }