/** * Holds information about a class' name, attributes, and method names. This * class is tied to simple_uml.view.canvas.SumlClassView, so any changes you * make here could affect the view. Take care when you do. * * @author Eric Liebowitz * @version 23jun11 */ package simple_uml.model; import java.util.Arrays; import java.util.Vector; public class SumlClassModel extends ShapeModel { private Vector atts = new Vector(); private Vector methods = new Vector(); private SumlClassModel parent; public SumlClassModel (String name, SumlClassModel parent, String[] atts, String[] methods) { super (name, 40, 0); // TODO: Fix this.parent = parent; this.atts = new Vector(Arrays.asList(atts)); this.methods = new Vector(Arrays.asList(methods)); } public String getName () { return this.name; } public Vector getAtts () { return this.atts; } public Vector getMethods() { return this.methods; } public SumlClassModel getParent () { return this.parent; } }