示例#1
0
 public static ITaggedValueType ReferenceList(ElementStereotype stype)
 {
     return(new StructuredType(new Dictionary <String, String> {
         { "Type", "RefGUIDList" },
         { "Values", stype.Type.Name },
         { "Stereotypes", stype.Name }
     }));
 }
示例#2
0
 public PackageStereotype(String name, String displayName, Icon icon = null, IEnumerable <TaggedValueDefinition> taggedValues = null,
                          Color?backgroundColor = null)
 {
     Element = new ElementStereotype(
         name: name,
         displayName: displayName,
         type: ElementType.Package,
         icon: icon,
         taggedValues: taggedValues,
         backgroundColor: backgroundColor);
 }
示例#3
0
 public ElementStereotype(String name, String displayName, ElementType type,
                          Icon icon          = null,
                          String shapeScript = null,
                          IEnumerable <TaggedValueDefinition> taggedValues = null,
                          Color?backgroundColor          = null,
                          int?width                      = null,
                          int?height                     = null,
                          ElementStereotype instanceType = null)
 {
     Name            = name;
     DisplayName     = displayName;
     Type            = type;
     Icon            = icon.AsOption();
     ShapeScript     = shapeScript.AsOption();
     TaggedValues    = taggedValues ?? new TaggedValueDefinition[] { };
     BackgroundColor = backgroundColor.AsOption();
     Width           = width.AsOption();
     Height          = height.AsOption();
     InstanceType    = instanceType.AsOption();
 }
示例#4
0
 private ElementType(String name)
     : base(name)
 {
     DefaultStereotype = new ElementStereotype(name: "", displayName: Name, type: this);
 }
示例#5
0
 private Connection(ElementStereotype from, ElementStereotype to, ConnectorStereotype connectorStereotype)
 {
     From = from;
     To   = to;
     ConnectorStereotype = connectorStereotype;
 }
示例#6
0
 public Connection(ElementStereotype from, ElementStereotype to) : this(from, to, null)
 {
 }