/// <summary>
        /// Initializes style set resources for this shape type
        /// </summary>
        /// <param name="classStyleSet">The style set for this shape class</param>
        protected override void InitializeResources(DslDiagrams::StyleSet classStyleSet)
        {
            base.InitializeResources(classStyleSet);

            // Line pen settings for this connector.
            DslDiagrams::PenSettings linePen = new DslDiagrams::PenSettings();

            linePen.Color = global::System.Drawing.Color.FromKnownColor(global::System.Drawing.KnownColor.LightSlateGray);
            classStyleSet.OverridePen(DslDiagrams::DiagramPens.ConnectionLineDecorator, linePen);
            linePen.Width     = 0.01f;
            linePen.DashStyle = global::System.Drawing.Drawing2D.DashStyle.Dot;
            classStyleSet.OverridePen(DslDiagrams::DiagramPens.ConnectionLine, linePen);
            DslDiagrams::BrushSettings lineBrush = new DslDiagrams::BrushSettings();

            lineBrush.Color = global::System.Drawing.Color.FromKnownColor(global::System.Drawing.KnownColor.LightSlateGray);
            classStyleSet.OverrideBrush(DslDiagrams::DiagramBrushes.ConnectionLineDecorator, lineBrush);

            DslDiagrams::BrushSettings textBrush = new DslDiagrams::BrushSettings();

            textBrush.Color = global::System.Drawing.Color.FromKnownColor(global::System.Drawing.KnownColor.LightSlateGray);
            classStyleSet.OverrideBrush(DslDiagrams::DiagramBrushes.ShapeText, textBrush);

            // Custom font styles
            DslDiagrams::FontSettings fontSettings;

            fontSettings       = new DslDiagrams::FontSettings();
            fontSettings.Style = global::System.Drawing.FontStyle.Italic;
            fontSettings.Size  = 8 / 72.0F;
            classStyleSet.AddFont(new DslDiagrams::StyleSetResourceId(string.Empty, "ShapeTextItalic8"), DslDiagrams::DiagramFonts.ShapeText, fontSettings);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Gets an array of CompartmentDescription for all compartments shown on this shape
        /// (including compartments defined on base shapes).
        /// </summary>
        /// <returns></returns>
        public override DslDiagrams::CompartmentDescription[] GetCompartmentDescriptions()
        {
            if (compartmentDescriptions == null)
            {
                // Initialize the array of compartment descriptions if we haven't done so already.
                // First we get any compartment descriptions in base shapes, and add on any compartments
                // that are defined on this shape.
                DslDiagrams::CompartmentDescription[] baseCompartmentDescriptions = base.GetCompartmentDescriptions();

                int localCompartmentsOffset = 0;
                if (baseCompartmentDescriptions != null)
                {
                    localCompartmentsOffset = baseCompartmentDescriptions.Length;
                }
                compartmentDescriptions = new DslDiagrams::ElementListCompartmentDescription[3 + localCompartmentsOffset];

                if (baseCompartmentDescriptions != null)
                {
                    baseCompartmentDescriptions.CopyTo(compartmentDescriptions, 0);
                }
                {
                    DslDiagrams::FontSettings itemFont = new DslDiagrams::FontSettings();
                    itemFont.Style = global::System.Drawing.FontStyle.Italic;
                    itemFont.Size  = 9 / 72.0F;
                    string title = global::Maxsys.VisualLAL.VisualLALDomainModel.SingletonResourceManager.GetString("SimboloCompartmentNocaoCompartmentTitle");
                    DslDiagrams::ElementListCompartmentDescription descriptor = new DslDiagrams::ElementListCompartmentDescription("NocaoCompartment", title,
                                                                                                                                   global::System.Drawing.Color.FromKnownColor(global::System.Drawing.KnownColor.LightGray), false,
                                                                                                                                   global::System.Drawing.Color.FromKnownColor(global::System.Drawing.KnownColor.White), false,
                                                                                                                                   null, itemFont,
                                                                                                                                   false);
                    compartmentDescriptions[localCompartmentsOffset + 0] = descriptor;
                }
                {
                    DslDiagrams::FontSettings itemFont = new DslDiagrams::FontSettings();
                    itemFont.Style = global::System.Drawing.FontStyle.Italic;
                    itemFont.Size  = 9 / 72.0F;
                    string title = global::Maxsys.VisualLAL.VisualLALDomainModel.SingletonResourceManager.GetString("SimboloCompartmentImpactoCompartmentTitle");
                    DslDiagrams::ElementListCompartmentDescription descriptor = new DslDiagrams::ElementListCompartmentDescription("ImpactoCompartment", title,
                                                                                                                                   global::System.Drawing.Color.FromKnownColor(global::System.Drawing.KnownColor.LightGray), false,
                                                                                                                                   global::System.Drawing.Color.FromKnownColor(global::System.Drawing.KnownColor.White), false,
                                                                                                                                   null, itemFont,
                                                                                                                                   false);
                    compartmentDescriptions[localCompartmentsOffset + 1] = descriptor;
                }
                {
                    DslDiagrams::FontSettings itemFont = new DslDiagrams::FontSettings();
                    itemFont.Style = global::System.Drawing.FontStyle.Italic;
                    itemFont.Size  = 9 / 72.0F;
                    string title = global::Maxsys.VisualLAL.VisualLALDomainModel.SingletonResourceManager.GetString("SimboloCompartmentSinonimoCompartmentTitle");
                    DslDiagrams::ElementListCompartmentDescription descriptor = new DslDiagrams::ElementListCompartmentDescription("SinonimoCompartment", title,
                                                                                                                                   global::System.Drawing.Color.FromKnownColor(global::System.Drawing.KnownColor.LightGray), false,
                                                                                                                                   global::System.Drawing.Color.FromKnownColor(global::System.Drawing.KnownColor.White), false,
                                                                                                                                   null, itemFont,
                                                                                                                                   false);
                    compartmentDescriptions[localCompartmentsOffset + 2] = descriptor;
                }
            }

            return(SimboloCompartment.compartmentDescriptions);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Initializes style set resources for this shape type
        /// </summary>
        /// <param name="classStyleSet">The style set for this shape class</param>
        protected override void InitializeResources(DslDiagrams::StyleSet classStyleSet)
        {
            base.InitializeResources(classStyleSet);

            // Custom font styles
            DslDiagrams::FontSettings fontSettings;

            fontSettings       = new DslDiagrams::FontSettings();
            fontSettings.Style = global::System.Drawing.FontStyle.Regular;
            fontSettings.Size  = 1 / 72.0F;
            classStyleSet.AddFont(new DslDiagrams::StyleSetResourceId(string.Empty, "ShapeTextRegular1"), DslDiagrams::DiagramFonts.ShapeText, fontSettings);
        }
Exemplo n.º 4
0
        /// <summary>
        /// Initializes style set resources for this shape type
        /// </summary>
        /// <param name="classStyleSet">The style set for this shape class</param>
        protected override void InitializeResources(DslDiagrams::StyleSet classStyleSet)
        {
            base.InitializeResources(classStyleSet);

            // Outline pen settings for this shape.
            DslDiagrams::PenSettings outlinePen = new DslDiagrams::PenSettings();

            outlinePen.Width = 0.015625F;
            classStyleSet.OverridePen(DslDiagrams::DiagramPens.ShapeOutline, outlinePen);
            // Custom font styles
            DslDiagrams::FontSettings fontSettings;

            fontSettings       = new DslDiagrams::FontSettings();
            fontSettings.Style = global::System.Drawing.FontStyle.Bold;
            fontSettings.Size  = 10 / 72.0F;
            classStyleSet.AddFont(new DslDiagrams::StyleSetResourceId(string.Empty, "ShapeTextBold10"), DslDiagrams::DiagramFonts.ShapeText, fontSettings);
        }
        /// <summary>
        /// Initializes style set resources for this shape type
        /// </summary>
        /// <param name="classStyleSet">The style set for this shape class</param>
        protected override void InitializeResources(DslDiagrams::StyleSet classStyleSet)
        {
            base.InitializeResources(classStyleSet);

            // Line pen settings for this connector.
            DslDiagrams::PenSettings linePen = new DslDiagrams::PenSettings();

            linePen.Width     = 0.015625f;
            linePen.DashStyle = global::System.Drawing.Drawing2D.DashStyle.Dot;
            classStyleSet.OverridePen(DslDiagrams::DiagramPens.ConnectionLine, linePen);
            // Custom font styles
            DslDiagrams::FontSettings fontSettings;

            fontSettings       = new DslDiagrams::FontSettings();
            fontSettings.Style = global::System.Drawing.FontStyle.Italic;
            fontSettings.Size  = 8 / 72.0F;
            classStyleSet.AddFont(new DslDiagrams::StyleSetResourceId(string.Empty, "ShapeTextItalic8"), DslDiagrams::DiagramFonts.ShapeText, fontSettings);
        }
Exemplo n.º 6
0
Arquivo: Shapes.cs Projeto: rariv/IPS
        /// <summary>
        /// Initializes style set resources for this shape type
        /// </summary>
        /// <param name="classStyleSet">The style set for this shape class</param>
        protected override void InitializeResources(DslDiagrams::StyleSet classStyleSet)
        {
            base.InitializeResources(classStyleSet);

            // Fill brush settings for this shape.
            DslDiagrams::BrushSettings backgroundBrush = new DslDiagrams::BrushSettings();

            backgroundBrush.Color = global::System.Drawing.Color.FromKnownColor(global::System.Drawing.KnownColor.PaleTurquoise);
            classStyleSet.OverrideBrush(DslDiagrams::DiagramBrushes.ShapeBackground, backgroundBrush);

            // Custom font styles
            DslDiagrams::FontSettings fontSettings;

            fontSettings       = new DslDiagrams::FontSettings();
            fontSettings.Style = global::System.Drawing.FontStyle.Bold | global::System.Drawing.FontStyle.Underline;
            fontSettings.Size  = 10 / 72.0F;
            classStyleSet.AddFont(new DslDiagrams::StyleSetResourceId(string.Empty, "ShapeTextBold, Underline10"), DslDiagrams::DiagramFonts.ShapeText, fontSettings);
        }
Exemplo n.º 7
0
        /// <summary>
        /// Initializes style set resources for this shape type
        /// </summary>
        /// <param name="classStyleSet">The style set for this shape class</param>
        protected override void InitializeResources(DslDiagrams::StyleSet classStyleSet)
        {
            base.InitializeResources(classStyleSet);

            // Outline pen settings for this shape.
            DslDiagrams::PenSettings outlinePen = new DslDiagrams::PenSettings();

            outlinePen.Width = 0F;
            classStyleSet.OverridePen(DslDiagrams::DiagramPens.ShapeOutline, outlinePen);
            // Fill brush settings for this shape.
            DslDiagrams::BrushSettings backgroundBrush = new DslDiagrams::BrushSettings();

            backgroundBrush.Color = global::System.Drawing.Color.FromKnownColor(global::System.Drawing.KnownColor.WhiteSmoke);
            classStyleSet.OverrideBrush(DslDiagrams::DiagramBrushes.ShapeBackground, backgroundBrush);

            // Custom font styles
            DslDiagrams::FontSettings fontSettings;

            fontSettings       = new DslDiagrams::FontSettings();
            fontSettings.Style = global::System.Drawing.FontStyle.Bold | global::System.Drawing.FontStyle.Italic;
            fontSettings.Size  = 10 / 72.0F;
            classStyleSet.AddFont(new DslDiagrams::StyleSetResourceId(string.Empty, "ShapeTextBold, Italic10"), DslDiagrams::DiagramFonts.ShapeText, fontSettings);
        }
Exemplo n.º 8
0
        /// <summary>
        /// Initializes style set resources for this shape type
        /// </summary>
        /// <param name="classStyleSet">The style set for this shape class</param>
        protected override void InitializeResources(DslDiagrams::StyleSet classStyleSet)
        {
            base.InitializeResources(classStyleSet);

            // Line pen settings for this connector.
            DslDiagrams::PenSettings linePen = new DslDiagrams::PenSettings();

            linePen.Color = global::System.Drawing.Color.FromArgb(255, 113, 111, 110);
            classStyleSet.OverridePen(DslDiagrams::DiagramPens.ConnectionLineDecorator, linePen);
            linePen.Width = 0.01f;
            classStyleSet.OverridePen(DslDiagrams::DiagramPens.ConnectionLine, linePen);
            DslDiagrams::BrushSettings lineBrush = new DslDiagrams::BrushSettings();

            lineBrush.Color = global::System.Drawing.Color.FromArgb(255, 113, 111, 110);
            classStyleSet.OverrideBrush(DslDiagrams::DiagramBrushes.ConnectionLineDecorator, lineBrush);

            // Custom font styles
            DslDiagrams::FontSettings fontSettings;

            fontSettings       = new DslDiagrams::FontSettings();
            fontSettings.Style = global::System.Drawing.FontStyle.Bold;
            fontSettings.Size  = 7 / 72.0F;
            classStyleSet.AddFont(new DslDiagrams::StyleSetResourceId(string.Empty, "ShapeTextBold7"), DslDiagrams::DiagramFonts.ShapeText, fontSettings);
        }
Exemplo n.º 9
0
        /// <summary>
        /// Initializes style set resources for this shape type
        /// </summary>
        /// <param name="classStyleSet">The style set for this shape class</param>
        protected override void InitializeResources(DslDiagrams::StyleSet classStyleSet)
        {
            base.InitializeResources(classStyleSet);

            // Outline pen settings for this shape.
            DslDiagrams::PenSettings outlinePen = new DslDiagrams::PenSettings();

            outlinePen.Color = global::System.Drawing.Color.FromArgb(255, 24, 143, 222);
            outlinePen.Width = 0.01F;
            classStyleSet.OverridePen(DslDiagrams::DiagramPens.ShapeOutline, outlinePen);
            // Fill brush settings for this shape.
            DslDiagrams::BrushSettings backgroundBrush = new DslDiagrams::BrushSettings();

            backgroundBrush.Color = global::System.Drawing.Color.FromArgb(255, 0, 122, 204);
            classStyleSet.OverrideBrush(DslDiagrams::DiagramBrushes.ShapeBackground, backgroundBrush);

            // Custom font styles
            DslDiagrams::FontSettings fontSettings;

            fontSettings       = new DslDiagrams::FontSettings();
            fontSettings.Style = global::System.Drawing.FontStyle.Bold;
            fontSettings.Size  = 8 / 72.0F;
            classStyleSet.AddFont(new DslDiagrams::StyleSetResourceId(string.Empty, "ShapeTextBold8"), DslDiagrams::DiagramFonts.ShapeText, fontSettings);
        }
Exemplo n.º 10
0
		/// <summary>
		/// Initializes style set resources for this shape type
		/// </summary>
		/// <param name="classStyleSet">The style set for this shape class</param>
		protected override void InitializeResources(DslDiagrams::StyleSet classStyleSet)
		{
			base.InitializeResources(classStyleSet);
			
			// Line pen settings for this connector.
			DslDiagrams::PenSettings linePen = new DslDiagrams::PenSettings();
			linePen.Color = global::System.Drawing.Color.FromArgb(255, 113, 111, 110);
			classStyleSet.OverridePen(DslDiagrams::DiagramPens.ConnectionLineDecorator, linePen);
			linePen.Width = 0.01f;
			classStyleSet.OverridePen(DslDiagrams::DiagramPens.ConnectionLine, linePen);
			DslDiagrams::BrushSettings lineBrush = new DslDiagrams::BrushSettings();
			lineBrush.Color = global::System.Drawing.Color.FromArgb(255, 113, 111, 110);
			classStyleSet.OverrideBrush(DslDiagrams::DiagramBrushes.ConnectionLineDecorator, lineBrush);
			
			// Custom font styles
			DslDiagrams::FontSettings fontSettings;
			fontSettings = new DslDiagrams::FontSettings();
			fontSettings.Style =  global::System.Drawing.FontStyle.Bold ;
			fontSettings.Size = 7/72.0F;
			classStyleSet.AddFont(new DslDiagrams::StyleSetResourceId(string.Empty, "ShapeTextBold7"), DslDiagrams::DiagramFonts.ShapeText, fontSettings);
		}
Exemplo n.º 11
0
		/// <summary>
		/// Initializes style set resources for this shape type
		/// </summary>
		/// <param name="classStyleSet">The style set for this shape class</param>
		protected override void InitializeResources(DslDiagrams::StyleSet classStyleSet)
		{
			base.InitializeResources(classStyleSet);
			
			// Outline pen settings for this shape.
			DslDiagrams::PenSettings outlinePen = new DslDiagrams::PenSettings();
			outlinePen.Width = 0.0125F;
			classStyleSet.OverridePen(DslDiagrams::DiagramPens.ShapeOutline, outlinePen);
			// Fill brush settings for this shape.
			DslDiagrams::BrushSettings backgroundBrush = new DslDiagrams::BrushSettings();
			backgroundBrush.Color = global::System.Drawing.Color.FromKnownColor(global::System.Drawing.KnownColor.PaleGreen);
			classStyleSet.OverrideBrush(DslDiagrams::DiagramBrushes.ShapeBackground, backgroundBrush);
		
			// Custom font styles
			DslDiagrams::FontSettings fontSettings;
			fontSettings = new DslDiagrams::FontSettings();
			fontSettings.Style =  global::System.Drawing.FontStyle.Italic ;
			fontSettings.Size = 7/72.0F;
			classStyleSet.AddFont(new DslDiagrams::StyleSetResourceId(string.Empty, "ShapeTextItalic7"), DslDiagrams::DiagramFonts.ShapeText, fontSettings);
		}
Exemplo n.º 12
0
		/// <summary>
		/// Initializes style set resources for this shape type
		/// </summary>
		/// <param name="classStyleSet">The style set for this shape class</param>
		protected override void InitializeResources(DslDiagrams::StyleSet classStyleSet)
		{
			base.InitializeResources(classStyleSet);
			
			// Outline pen settings for this shape.
			DslDiagrams::PenSettings outlinePen = new DslDiagrams::PenSettings();
			outlinePen.Color = global::System.Drawing.Color.FromArgb(255, 113, 111, 110);
			outlinePen.Width = 0.01F;
			classStyleSet.OverridePen(DslDiagrams::DiagramPens.ShapeOutline, outlinePen);
			// Fill brush settings for this shape.
			DslDiagrams::BrushSettings backgroundBrush = new DslDiagrams::BrushSettings();
			backgroundBrush.Color = global::System.Drawing.Color.FromArgb(255, 242, 239, 229);
			classStyleSet.OverrideBrush(DslDiagrams::DiagramBrushes.ShapeBackground, backgroundBrush);
		
			// Custom font styles
			DslDiagrams::FontSettings fontSettings;
			fontSettings = new DslDiagrams::FontSettings();
			fontSettings.Style =  global::System.Drawing.FontStyle.Bold |  global::System.Drawing.FontStyle.Underline ;
			fontSettings.Size = 10/72.0F;
			classStyleSet.AddFont(new DslDiagrams::StyleSetResourceId(string.Empty, "ShapeTextBold, Underline10"), DslDiagrams::DiagramFonts.ShapeText, fontSettings);
			fontSettings = new DslDiagrams::FontSettings();
			fontSettings.Style =  global::System.Drawing.FontStyle.Bold ;
			fontSettings.Size = 10/72.0F;
			classStyleSet.AddFont(new DslDiagrams::StyleSetResourceId(string.Empty, "ShapeTextBold10"), DslDiagrams::DiagramFonts.ShapeText, fontSettings);
		}