/// <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(); } }
/// <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; } } }
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(); } }