Beispiel #1
0
        /// <summary>
        /// Initialize the collection of decorators associated with this shape type.  This method also
        /// creates shape fields for outer decorators, because these are not part of the shape fields collection
        /// associated with the shape, so they must be created here rather than in InitializeShapeFields.
        /// </summary>
        protected override void InitializeDecorators(global::System.Collections.Generic.IList <DslDiagrams::ShapeField> shapeFields, global::System.Collections.Generic.IList <DslDiagrams::Decorator> decorators)
        {
            base.InitializeDecorators(shapeFields, decorators);

            DslDiagrams::ShapeField field1     = DslDiagrams::ShapeElement.FindShapeField(shapeFields, "Name");
            DslDiagrams::Decorator  decorator1 = new DslDiagrams::ShapeDecorator(field1, DslDiagrams::ShapeDecoratorPosition.InnerTopLeft, DslDiagrams::PointD.Empty);

            decorators.Add(decorator1);

            DslDiagrams::ShapeField field2     = DslDiagrams::ShapeElement.FindShapeField(shapeFields, "ExpandCollapse");
            DslDiagrams::Decorator  decorator2 = new DslDiagrams::ExpandCollapseDecorator(this.Store, (DslDiagrams::ToggleButtonField)field2, DslDiagrams::ShapeDecoratorPosition.InnerTopRight, DslDiagrams::PointD.Empty);

            decorators.Add(decorator2);

            DslDiagrams::TextField field3 = new DslDiagrams::TextField("Type");

            field3.DefaultText      = global::JA.Risk.RiskDomainModel.SingletonResourceManager.GetString("ContainerShapeTypeDefaultText");
            field3.DefaultFocusable = true;
            field3.DefaultAutoSize  = true;
            field3.AnchoringBehavior.MinimumHeightInLines     = 1;
            field3.AnchoringBehavior.MinimumWidthInCharacters = 1;
            field3.DefaultAccessibleState = global::System.Windows.Forms.AccessibleStates.Invisible;
            DslDiagrams::Decorator decorator3 = new DslDiagrams::ShapeDecorator(field3, DslDiagrams::ShapeDecoratorPosition.OuterTopCenter, DslDiagrams::PointD.Empty);

            decorators.Add(decorator3);
        }
Beispiel #2
0
        /// <summary>
        /// Initialize the collection of decorators associated with this shape type.  This method also
        /// creates shape fields for outer decorators, because these are not part of the shape fields collection
        /// associated with the shape, so they must be created here rather than in InitializeShapeFields.
        /// </summary>
        protected override void InitializeDecorators(global::System.Collections.Generic.IList <DslDiagrams::ShapeField> shapeFields, global::System.Collections.Generic.IList <DslDiagrams::Decorator> decorators)
        {
            base.InitializeDecorators(shapeFields, decorators);

            DslDiagrams::ShapeField field1     = DslDiagrams::ShapeElement.FindShapeField(shapeFields, "NameDecorator");
            DslDiagrams::Decorator  decorator1 = new DslDiagrams::ShapeDecorator(field1, DslDiagrams::ShapeDecoratorPosition.Center, DslDiagrams::PointD.Empty);

            decorators.Add(decorator1);

            DslDiagrams::TextField field2 = new DslDiagrams::TextField("CardinalidadIzqDecorator");

            field2.DefaultText      = global::UPM_IPS.DRQPJPFMAMPracticaDSLTools.DRQPJPFMAMPracticaDSLToolsDomainModel.SingletonResourceManager.GetString("FormaRelacionCardinalidadIzqDecoratorDefaultText");
            field2.DefaultFocusable = true;
            field2.DefaultAutoSize  = true;
            field2.AnchoringBehavior.MinimumHeightInLines     = 1;
            field2.AnchoringBehavior.MinimumWidthInCharacters = 1;
            field2.DefaultAccessibleState = global::System.Windows.Forms.AccessibleStates.Invisible;
            DslDiagrams::Decorator decorator2 = new DslDiagrams::ShapeDecorator(field2, DslDiagrams::ShapeDecoratorPosition.OuterMiddleLeft, DslDiagrams::PointD.Empty, true);

            decorators.Add(decorator2);

            DslDiagrams::TextField field3 = new DslDiagrams::TextField("CardinalidadDerDecorator");

            field3.DefaultText      = global::UPM_IPS.DRQPJPFMAMPracticaDSLTools.DRQPJPFMAMPracticaDSLToolsDomainModel.SingletonResourceManager.GetString("FormaRelacionCardinalidadDerDecoratorDefaultText");
            field3.DefaultFocusable = true;
            field3.DefaultAutoSize  = true;
            field3.AnchoringBehavior.MinimumHeightInLines     = 1;
            field3.AnchoringBehavior.MinimumWidthInCharacters = 1;
            field3.DefaultAccessibleState = global::System.Windows.Forms.AccessibleStates.Invisible;
            DslDiagrams::Decorator decorator3 = new DslDiagrams::ShapeDecorator(field3, DslDiagrams::ShapeDecoratorPosition.OuterMiddleRight, DslDiagrams::PointD.Empty, true);

            decorators.Add(decorator3);
        }
Beispiel #3
0
        /// <summary>
        /// Initialize the collection of decorators associated with this shape type.  This method also
        /// creates shape fields for outer decorators, because these are not part of the shape fields collection
        /// associated with the shape, so they must be created here rather than in InitializeShapeFields.
        /// </summary>
        protected override void InitializeDecorators(global::System.Collections.Generic.IList <DslDiagrams::ShapeField> shapeFields, global::System.Collections.Generic.IList <DslDiagrams::Decorator> decorators)
        {
            base.InitializeDecorators(shapeFields, decorators);

            DslDiagrams::ShapeField field1     = DslDiagrams::ShapeElement.FindShapeField(shapeFields, "NameDecorator");
            DslDiagrams::Decorator  decorator1 = new DslDiagrams::ShapeDecorator(field1, DslDiagrams::ShapeDecoratorPosition.Center, DslDiagrams::PointD.Empty);

            decorators.Add(decorator1);

            DslDiagrams::ShapeField field2     = DslDiagrams::ShapeElement.FindShapeField(shapeFields, "DeathDecorator");
            DslDiagrams::Decorator  decorator2 = new DslDiagrams::ShapeDecorator(field2, DslDiagrams::ShapeDecoratorPosition.InnerBottomRight, DslDiagrams::PointD.Empty);

            decorators.Add(decorator2);

            DslDiagrams::ShapeField field3     = DslDiagrams::ShapeElement.FindShapeField(shapeFields, "BirthDecorator");
            DslDiagrams::Decorator  decorator3 = new DslDiagrams::ShapeDecorator(field3, DslDiagrams::ShapeDecoratorPosition.InnerBottomLeft, DslDiagrams::PointD.Empty);

            decorators.Add(decorator3);

            DslDiagrams::ShapeField field4     = DslDiagrams::ShapeElement.FindShapeField(shapeFields, "FemaleIcon");
            DslDiagrams::Decorator  decorator4 = new DslDiagrams::ShapeDecorator(field4, DslDiagrams::ShapeDecoratorPosition.InnerTopRight, DslDiagrams::PointD.Empty);

            decorators.Add(decorator4);

            DslDiagrams::ShapeField field5     = DslDiagrams::ShapeElement.FindShapeField(shapeFields, "MaleIcon");
            DslDiagrams::Decorator  decorator5 = new DslDiagrams::ShapeDecorator(field5, DslDiagrams::ShapeDecoratorPosition.InnerTopRight, DslDiagrams::PointD.Empty);

            decorators.Add(decorator5);

            DslDiagrams::ShapeField field6     = DslDiagrams::ShapeElement.FindShapeField(shapeFields, "NewMaleIcon");
            DslDiagrams::Decorator  decorator6 = new DslDiagrams::ShapeDecorator(field6, DslDiagrams::ShapeDecoratorPosition.InnerMiddleRight, DslDiagrams::PointD.Empty);

            decorators.Add(decorator6);
        }
Beispiel #4
0
        /// <summary>
        /// Initialize the collection of decorators associated with this shape type.  This method also
        /// creates shape fields for outer decorators, because these are not part of the shape fields collection
        /// associated with the shape, so they must be created here rather than in InitializeShapeFields.
        /// </summary>
        protected override void InitializeDecorators(global::System.Collections.Generic.IList <DslDiagrams::ShapeField> shapeFields, global::System.Collections.Generic.IList <DslDiagrams::Decorator> decorators)
        {
            base.InitializeDecorators(shapeFields, decorators);

            DslDiagrams::ShapeField field1     = DslDiagrams::ShapeElement.FindShapeField(shapeFields, "ExpandCollapse");
            DslDiagrams::Decorator  decorator1 = new DslDiagrams::ExpandCollapseDecorator(this.Store, (DslDiagrams::ToggleButtonField)field1, DslDiagrams::ShapeDecoratorPosition.InnerTopRight, DslDiagrams::PointD.Empty);

            decorators.Add(decorator1);

            DslDiagrams::ShapeField field2     = DslDiagrams::ShapeElement.FindShapeField(shapeFields, "BaseTypeName");
            DslDiagrams::Decorator  decorator2 = new DslDiagrams::ShapeDecorator(field2, DslDiagrams::ShapeDecoratorPosition.InnerTopLeft, new DslDiagrams::PointD(0.4, 0.125));

            decorators.Add(decorator2);

            DslDiagrams::ShapeField field3     = DslDiagrams::ShapeElement.FindShapeField(shapeFields, "IconDecorator");
            DslDiagrams::Decorator  decorator3 = new DslDiagrams::ShapeDecorator(field3, DslDiagrams::ShapeDecoratorPosition.InnerTopLeft, DslDiagrams::PointD.Empty);

            decorators.Add(decorator3);

            DslDiagrams::ShapeField field4     = DslDiagrams::ShapeElement.FindShapeField(shapeFields, "Name");
            DslDiagrams::Decorator  decorator4 = new DslDiagrams::ShapeDecorator(field4, DslDiagrams::ShapeDecoratorPosition.InnerTopLeft, new DslDiagrams::PointD(0.25, 0));

            decorators.Add(decorator4);

            DslDiagrams::ShapeField field5     = DslDiagrams::ShapeElement.FindShapeField(shapeFields, "BaseTypeIconDecorator");
            DslDiagrams::Decorator  decorator5 = new DslDiagrams::ShapeDecorator(field5, DslDiagrams::ShapeDecoratorPosition.InnerTopLeft, new DslDiagrams::PointD(0.25, 0.125));

            decorators.Add(decorator5);
        }
        /// <summary>
        /// Initialize the collection of decorators associated with this shape type.  This method also
        /// creates shape fields for outer decorators, because these are not part of the shape fields collection
        /// associated with the shape, so they must be created here rather than in InitializeShapeFields.
        /// </summary>
        protected override void InitializeDecorators(global::System.Collections.Generic.IList <DslDiagrams::ShapeField> shapeFields, global::System.Collections.Generic.IList <DslDiagrams::Decorator> decorators)
        {
            base.InitializeDecorators(shapeFields, decorators);

            DslDiagrams::ShapeField field1     = DslDiagrams::ShapeElement.FindShapeField(shapeFields, "BarkerEntityNameDecorator");
            DslDiagrams::Decorator  decorator1 = new DslDiagrams::ShapeDecorator(field1, DslDiagrams::ShapeDecoratorPosition.InnerTopCenter, DslDiagrams::PointD.Empty);

            decorators.Add(decorator1);
        }
Beispiel #6
0
        /// <summary>
        /// Initialize the collection of decorators associated with this shape type.  This method also
        /// creates shape fields for outer decorators, because these are not part of the shape fields collection
        /// associated with the shape, so they must be created here rather than in InitializeShapeFields.
        /// </summary>
        protected override void InitializeDecorators(global::System.Collections.Generic.IList <DslDiagrams::ShapeField> shapeFields, global::System.Collections.Generic.IList <DslDiagrams::Decorator> decorators)
        {
            base.InitializeDecorators(shapeFields, decorators);

            DslDiagrams::ShapeField field1     = DslDiagrams::ShapeElement.FindShapeField(shapeFields, "Name");
            DslDiagrams::Decorator  decorator1 = new DslDiagrams::ShapeDecorator(field1, DslDiagrams::ShapeDecoratorPosition.InnerTopCenter, DslDiagrams::PointD.Empty);

            decorators.Add(decorator1);

            DslDiagrams::ShapeField field2     = DslDiagrams::ShapeElement.FindShapeField(shapeFields, "ExpandCollapseDecorator");
            DslDiagrams::Decorator  decorator2 = new DslDiagrams::ExpandCollapseDecorator(this.Store, (DslDiagrams::ToggleButtonField)field2, DslDiagrams::ShapeDecoratorPosition.InnerTopRight, DslDiagrams::PointD.Empty);

            decorators.Add(decorator2);
        }
Beispiel #7
0
        /// <summary>
        /// Initialize the collection of decorators associated with this shape type.  This method also
        /// creates shape fields for outer decorators, because these are not part of the shape fields collection
        /// associated with the shape, so they must be created here rather than in InitializeShapeFields.
        /// </summary>
        protected override void InitializeDecorators(global::System.Collections.Generic.IList <DslDiagrams::ShapeField> shapeFields, global::System.Collections.Generic.IList <DslDiagrams::Decorator> decorators)
        {
            base.InitializeDecorators(shapeFields, decorators);

            DslDiagrams::ShapeField field1     = DslDiagrams::ShapeElement.FindShapeField(shapeFields, "Name");
            DslDiagrams::Decorator  decorator1 = new DslDiagrams::ShapeDecorator(field1, DslDiagrams::ShapeDecoratorPosition.InnerTopCenter, DslDiagrams::PointD.Empty);

            decorators.Add(decorator1);

            DslDiagrams::ShapeField field2     = DslDiagrams::ShapeElement.FindShapeField(shapeFields, "ReturnType");
            DslDiagrams::Decorator  decorator2 = new DslDiagrams::ShapeDecorator(field2, DslDiagrams::ShapeDecoratorPosition.InnerBottomCenter, DslDiagrams::PointD.Empty);

            decorators.Add(decorator2);

            DslDiagrams::ShapeField field3     = DslDiagrams::ShapeElement.FindShapeField(shapeFields, "DeviceType");
            DslDiagrams::Decorator  decorator3 = new DslDiagrams::ShapeDecorator(field3, DslDiagrams::ShapeDecoratorPosition.Center, DslDiagrams::PointD.Empty);

            decorators.Add(decorator3);
        }
Beispiel #8
0
        /// <summary>
        /// Initialize the collection of decorators associated with this shape type.  This method also
        /// creates shape fields for outer decorators, because these are not part of the shape fields collection
        /// associated with the shape, so they must be created here rather than in InitializeShapeFields.
        /// </summary>
        protected override void InitializeDecorators(global::System.Collections.Generic.IList <DslDiagrams::ShapeField> shapeFields, global::System.Collections.Generic.IList <DslDiagrams::Decorator> decorators)
        {
            base.InitializeDecorators(shapeFields, decorators);

            DslDiagrams::ShapeField field1     = DslDiagrams::ShapeElement.FindShapeField(shapeFields, "Nombre");
            DslDiagrams::Decorator  decorator1 = new DslDiagrams::ShapeDecorator(field1, DslDiagrams::ShapeDecoratorPosition.InnerTopLeft, DslDiagrams::PointD.Empty);

            decorators.Add(decorator1);

            DslDiagrams::ShapeField field2     = DslDiagrams::ShapeElement.FindShapeField(shapeFields, "Tipo de letra");
            DslDiagrams::Decorator  decorator2 = new DslDiagrams::ShapeDecorator(field2, DslDiagrams::ShapeDecoratorPosition.InnerTopLeft, DslDiagrams::PointD.Empty);

            decorators.Add(decorator2);

            DslDiagrams::ShapeField field3     = DslDiagrams::ShapeElement.FindShapeField(shapeFields, "Tamaño de letra");
            DslDiagrams::Decorator  decorator3 = new DslDiagrams::ShapeDecorator(field3, DslDiagrams::ShapeDecoratorPosition.InnerTopLeft, DslDiagrams::PointD.Empty);

            decorators.Add(decorator3);

            DslDiagrams::ShapeField field4     = DslDiagrams::ShapeElement.FindShapeField(shapeFields, "Color de letra");
            DslDiagrams::Decorator  decorator4 = new DslDiagrams::ShapeDecorator(field4, DslDiagrams::ShapeDecoratorPosition.InnerTopLeft, DslDiagrams::PointD.Empty);

            decorators.Add(decorator4);
        }