当前位置: 首页>>代码示例>>C#>>正文


C# PlotModel.GetDefaultColor方法代码示例

本文整理汇总了C#中PlotModel.GetDefaultColor方法的典型用法代码示例。如果您正苦于以下问题:C# PlotModel.GetDefaultColor方法的具体用法?C# PlotModel.GetDefaultColor怎么用?C# PlotModel.GetDefaultColor使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PlotModel的用法示例。


在下文中一共展示了PlotModel.GetDefaultColor方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SetDefaultValues

        /// <summary>
        /// The set default values.
        /// </summary>
        /// <param name="model">
        /// The model.
        /// </param>
        protected internal override void SetDefaultValues(PlotModel model)
        {
            if (this.MaximumFillColor == null)
            {
                this.defaultMaximumFillColor = model.GetDefaultColor();
            }

            if (this.MinimumFillColor == null)
            {
                this.defaultMinimumFillColor = model.GetDefaultColor();
            }
        }
开发者ID:jwolfm98,项目名称:HardwareMonitor,代码行数:18,代码来源:TornadoBarSeries.cs

示例2: SetDefaultValues

 /// <summary>
 /// Sets the default values.
 /// </summary>
 /// <param name="model">The model.</param>
 protected internal override void SetDefaultValues(PlotModel model)
 {
     if (this.FillColor.IsAutomatic())
     {
         this.defaultFillColor = model.GetDefaultColor();
     }
 }
开发者ID:Cheesebaron,项目名称:oxyplot,代码行数:11,代码来源:IntervalBarSeries.cs

示例3: SetDefaultValues

        /// <summary>
        /// The set default values.
        /// </summary>
        /// <param name="model">
        /// The model.
        /// </param>
        protected internal override void SetDefaultValues(PlotModel model)
        {
            // todo: should use ActualLineStyle
            if (this.Color == null)
            {
                if (this.LineStyle == LineStyle.Undefined)
                {
                    this.LineStyle = model.GetDefaultLineStyle();
                }

                this.defaultColor = model.GetDefaultColor();

                // And MarkerFill will be overridden if not set to null
                if (this.MarkerFill == null)
                {
                    this.MarkerFill = this.defaultColor;
                }
            }
        }
开发者ID:jwolfm98,项目名称:HardwareMonitor,代码行数:25,代码来源:LineSeries.cs

示例4: SetDefaultValues

        /// <summary>
        /// Sets default values from the plot model.
        /// </summary>
        /// <param name="model">The plot model.</param>
        protected internal override void SetDefaultValues(PlotModel model)
        {
            if (this.LineStyle == LineStyle.Automatic)
            {
                this.defaultLineStyle = model.GetDefaultLineStyle();
            }

            if (this.Color.IsAutomatic())
            {
                this.defaultColor = model.GetDefaultColor();

                if (this.MarkerFill.IsAutomatic())
                {
                    this.defaultMarkerFill = this.defaultColor;
                }
            }
        }
开发者ID:Keyabob,项目名称:MMG,代码行数:21,代码来源:LineSeries.cs

示例5: SetDefaultValues

 /// <summary>
 /// Sets the default values.
 /// </summary>
 /// <param name="model">The model.</param>
 protected internal override void SetDefaultValues(PlotModel model)
 {
     foreach (var slice in this.Slices)
     {
         if (slice.Fill.IsAutomatic())
         {
             slice.DefaultFillColor = model.GetDefaultColor();
         }
     }
 }
开发者ID:Cheesebaron,项目名称:oxyplot,代码行数:14,代码来源:PieSeries.cs

示例6: SetDefaultValues

 /// <summary>
 /// Sets default values from the plot model.
 /// </summary>
 /// <param name="model">The plot model.</param>
 protected internal override void SetDefaultValues(PlotModel model)
 {
     if (this.Color.IsAutomatic())
     {
         this.LineStyle = model.GetDefaultLineStyle();
         this.defaultColor = model.GetDefaultColor();
     }
 }
开发者ID:Celderon,项目名称:oxyplot,代码行数:12,代码来源:ContourSeries.cs

示例7: SetDefaultValues

 /// <summary>
 /// The set default values.
 /// </summary>
 /// <param name="model">
 /// The model.
 /// </param>
 protected internal override void SetDefaultValues(PlotModel model)
 {
     if (this.Color2 == null)
     {
         this.LineStyle2 = model.GetDefaultLineStyle();
         this.defaultColor2 = model.GetDefaultColor();
     }
 }
开发者ID:jwolfm98,项目名称:HardwareMonitor,代码行数:14,代码来源:TwoColorLineSeries.cs

示例8: SetDefaultValues

        /// <summary>
        /// Sets the default values.
        /// </summary>
        /// <param name="model">The model.</param>
        protected internal override void SetDefaultValues(PlotModel model)
        {
            base.SetDefaultValues(model);

            if (this.ColorLo.IsAutomatic())
            {
                this.defaultColorLo = model.GetDefaultColor();
            }

            if (this.LineStyleLo == LineStyle.Automatic)
            {
                this.LineStyleLo = model.GetDefaultLineStyle();
            }

            if (this.ColorHi.IsAutomatic())
            {
                this.defaultColorHi = model.GetDefaultColor();
            }

            if (this.LineStyleHi == LineStyle.Automatic)
            {
                this.LineStyleHi = model.GetDefaultLineStyle();
            }
        }
开发者ID:apmKrauser,项目名称:RCUModulTest,代码行数:28,代码来源:ThreeColorLineSeries.cs

示例9: SetDefaultValues

        /// <summary>
        /// Sets the default values.
        /// </summary>
        /// <param name="model">The model.</param>
        protected internal override void SetDefaultValues(PlotModel model)
        {
            base.SetDefaultValues(model);

            if (this.Color2.IsAutomatic())
            {
                this.defaultColor2 = model.GetDefaultColor();
            }

            if (this.LineStyle2 == LineStyle.Undefined)
            {
                this.LineStyle2 = model.GetDefaultLineStyle();
            }
        }
开发者ID:Cheesebaron,项目名称:oxyplot,代码行数:18,代码来源:TwoColorLineSeries.cs


注:本文中的PlotModel.GetDefaultColor方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。