示例#1
0
        public static GuiClass CreateClass(StaticView parent, int x, int y, UmlClass cl)
        {
            GuiClass c = GuiClass.fromUML(cl);

            c.X = x;
            c.Y = y;
            parent.AddObject(c, UmlModel.GetUniversal(cl));
            return(c);
        }
示例#2
0
 public static GuiItem CreateElement(UmlObject obj)
 {
     if (obj is UmlClass)
     {
         return(GuiClass.fromUML(obj as UmlClass));
     }
     else if (obj is UmlEnum)
     {
         return(GuiEnum.fromUML(obj as UmlEnum));
     }
     else if (obj is UmlNamespace)
     {
         return(GuiPackage.fromUML(obj as UmlNamespace));
     }
     else
     {
         return(null);
     }
 }