コード例 #1
0
ファイル: TaggedValueType.cs プロジェクト: yjstyle/ADMentor
 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)
 {
 }