Exemplo n.º 1
0
        public ClassShape(string id, int type, string name, ShapeStyle shapeStyle, List <string> linksTo, List <string> linksFrom, List <string> attributes, List <string> methods)
        {
            this.id         = id;
            this.type       = type;
            this.name       = name;
            this.shapeStyle = shapeStyle.Clone();

            this.linksTo    = linksTo;
            this.linksFrom  = linksFrom;
            this.attributes = attributes;
            this.methods    = methods;
        }
Exemplo n.º 2
0
        public BasicShape(string id, int type, string name, ShapeStyle shapeStyle, List <string> linksTo, List <string> linksFrom)
        {
            this.id         = id;
            this.type       = type;
            this.name       = name;
            this.shapeStyle = shapeStyle.Clone();
            if (linksTo == null)
            {
                linksTo = new List <string>();
            }
            else
            {
                this.linksTo = linksTo;
            }

            if (linksFrom == null)
            {
                linksFrom = new List <string>();
            }
            else
            {
                this.linksFrom = linksFrom;
            }
        }