1    /*
2    Copyright 2000 by Ralph Hartley
3    This software is licenced under the terms of the
4    Gnu Public Licence
5    */
6    import java.util.*;
7    import java.awt.*;
8    import java.awt.geom.*;
9    import javax.swing.*;
10   
11   public class SectionComp extends Comp {
12   
13     private static final long serialVersionUID = Version.getSUID();
14   
15     public SectionComp(String name,Survey survey) {
16       super(name,survey,true);
17     }
18   
19     public Symbol importSym(Carto dest,Carto source) {
20   
21       if (survey && dest.survey==null) dest.survey = source.survey;
22   
23       if (source.sectionlist.contains(this))
24         dest.sectionlist.add(this);
25   
26       Vector newmembers = new Vector();
27       for (Iterator it = members.iterator();it.hasNext();)
28         newmembers.add(((Symbol)it.next()).importSym(dest,source));
29       
30       members = newmembers;
31       
32       return(this);
33     }
34   
35     public Editor getEditor(CartoFrame frame) {
36       return(new SectionEditor(this,frame));
37     }
38   
39   }
40