Exemple #1
0
 /// <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();
     }
 }
 /// <summary>
 /// Sets the default values.
 /// </summary>
 /// <param name="model">The model.</param>
 protected internal override void SetDefaultValues(PlotModel model)
 {
     if (this.Color.IsAutomatic())
     {
         this.LineStyle    = model.GetDefaultLineStyle();
         this.defaultColor = model.GetDefaultColor();
     }
 }
Exemple #3
0
        /// <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.Automatic)
            {
                this.LineStyle2 = model.GetDefaultLineStyle();
            }
        }
Exemple #4
0
        /// <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;
                }
            }
        }
        /// <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;
                }
            }
        }
Exemple #6
0
        /// <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;
                }
            }
        }
        /// <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;
                }
            }
        }
Exemple #8
0
 /// <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();
     }
 }
 /// <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();
     }
 }
        /// <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();
            }
        }
        /// <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();
            }
        }