コード例 #1
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();
     }
 }
コード例 #2
0
        /// <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;
                }
            }
        }
コード例 #3
0
        /// <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;
                }
            }
        }
コード例 #4
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();
     }
 }