Ejemplo n.º 1
0
        /// <summary>
        /// This routine ensures that the plot item updates all its cached data and send the appropriate
        /// events if something has changed. Called before the layer paint routine paints the axes because
        /// it must be ensured that the axes are scaled correctly before the plots are painted.
        /// </summary>
        /// <param name="layer">The plot layer.</param>
        public override void PrepareScales(IPlotArea layer)
        {
            if (null != _plotData)
            {
                _plotData.CalculateCachedData(layer.XAxis.DataBoundsObject, layer.YAxis.DataBoundsObject);

                if (null != _plotStyle)
                {
                    _plotStyle.PrepareScales(layer, _plotData);
                }
            }
        }