예제 #1
0
 /// <summary>
 /// Initializes the plot area's line format common to all derived plot area renderers.
 /// If line format is given all uninitialized values will be set.
 /// </summary>
 protected void InitLineFormat(PlotAreaRendererInfo rendererInfo)
 {
     if (rendererInfo._plotArea._lineFormat != null)
     {
         rendererInfo.LineFormat = Converter.ToXPen(rendererInfo._plotArea._lineFormat, XColors.Black, DefaultLineWidth);
     }
 }
예제 #2
0
 /// <summary>
 /// Initializes the plot area's fill format common to all derived plot area renderers.
 /// If fill format is given all uninitialized values will be set.
 /// </summary>
 protected void InitFillFormat(PlotAreaRendererInfo rendererInfo)
 {
     if (rendererInfo._plotArea._fillFormat != null)
     {
         rendererInfo.FillFormat = Converter.ToXBrush(rendererInfo._plotArea._fillFormat, XColors.White);
     }
 }
예제 #3
0
        /// <summary>
        /// Returns an initialized PlotAreaRendererInfo.
        /// </summary>
        internal override RendererInfo Init()
        {
            PlotAreaRendererInfo pari = new PlotAreaRendererInfo
            {
                _plotArea = ((ChartRendererInfo)_rendererParms.RendererInfo)._chart._plotArea
            };

            InitLineFormat(pari);
            InitFillFormat(pari);
            return(pari);
        }