示例#1
0
        /// <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();
            }
        }
示例#2
0
 /// <summary>
 /// Sets the default values.
 /// </summary>
 /// <param name="model">
 /// The model.
 /// </param>
 protected internal override void SetDefaultValues(PlotModel model)
 {
     if (this.Color == null)
     {
         this.LineStyle    = model.GetDefaultLineStyle();
         this.defaultColor = model.GetDefaultColor();
     }
 }
 /// <summary>
 /// The set 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 == null)
         {
             slice.DefaultFillColor = model.GetDefaultColor();
         }
     }
 }
        /// <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;
                }
            }
        }
        /// <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;
                }
            }
        }
 /// <summary>
 /// Sets the default values.
 /// </summary>
 /// <param name="model">
 /// The model.
 /// </param>
 protected internal override void SetDefaultValues(PlotModel model)
 {
     if (this.Color == null)
     {
         this.LineStyle = model.GetDefaultLineStyle();
         this.defaultColor = model.GetDefaultColor();
     }
 }
 protected override void SetDefaultValues(PlotModel model)
 {
     if (this.Color.IsAutomatic())
     {
         this.defaultColor = model.GetDefaultColor();
     }
 }
 /// <summary>
 /// The set default values.
 /// </summary>
 /// <param name="model">
 /// The model.
 /// </param>
 protected internal override void SetDefaultValues(PlotModel model)
 {
     if (this.FillColor == null)
     {
         this.defaultFillColor = model.GetDefaultColor();
     }
 }
 /// <summary>
 /// The set 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 == null)
         {
             slice.DefaultFillColor = model.GetDefaultColor();
         }
     }
 }