/// <summary> /// Needed for coordinate transforming styles to plot the data. /// </summary> /// <param name="g">Graphics context.</param> /// <param name="layer">The plot layer.</param> /// <param name="plotdata">The plot data. Since the data are transformed, you should not /// rely that the physical values in this item correspond to the area coordinates.</param> public virtual void Paint(Graphics g, IPlotArea layer, Processed2DPlotData plotdata) { if (null != this._plotStyles) { _plotStyles.Paint(g, layer, plotdata); } _cachedPlotDataUsedForPainting = plotdata; }
/// <summary> /// Needed for coordinate transforming styles to plot the data. /// </summary> /// <param name="g">Graphics context.</param> /// <param name="layer">The plot layer.</param> /// <param name="plotdata">The plot data. Since the data are transformed, you should not rely that the physical values in this item correspond to the area coordinates.</param> /// <param name="prevPlotData">Plot data of the previous plot item.</param> /// <param name="nextPlotData">Plot data of the next plot item.</param> public virtual void Paint(Graphics g, IPlotArea layer, Processed2DPlotData plotdata, Processed2DPlotData prevPlotData, Processed2DPlotData nextPlotData) { _cachedPlotDataUsedForPainting = plotdata ?? throw new ArgumentNullException(nameof(plotdata)); if (null != _plotStyles) { _plotStyles.Paint(g, layer, plotdata, prevPlotData, nextPlotData); } }