Beispiel #1
0
        /// <summary>
        /// Returns an initialized and renderer specific rendererInfo.
        /// </summary>
        internal override RendererInfo Init()
        {
            ChartRendererInfo cri = new ChartRendererInfo();

            cri._chart = (Chart)_rendererParms.DrawingItem;
            _rendererParms.RendererInfo = cri;

            InitSeriesRendererInfo();

            LegendRenderer lr = new ColumnLikeLegendRenderer(_rendererParms);

            cri.legendRendererInfo = (LegendRendererInfo)lr.Init();

            AxisRenderer xar = new HorizontalXAxisRenderer(_rendererParms);

            cri.xAxisRendererInfo = (AxisRendererInfo)xar.Init();

            AxisRenderer yar = GetYAxisRenderer();

            cri.yAxisRendererInfo = (AxisRendererInfo)yar.Init();

            PlotArea         plotArea = cri._chart.PlotArea;
            PlotAreaRenderer renderer = GetPlotAreaRenderer();

            cri.plotAreaRendererInfo = (PlotAreaRendererInfo)renderer.Init();

            DataLabelRenderer dlr = new ColumnDataLabelRenderer(_rendererParms);

            dlr.Init();

            return(cri);
        }
    /// <summary>
    /// Returns an initialized and renderer specific rendererInfo.
    /// </summary>
    internal override RendererInfo Init()
    {
      ChartRendererInfo cri = new ChartRendererInfo();
      cri.chart = (Chart)this.rendererParms.DrawingItem;
      this.rendererParms.RendererInfo = cri;

      InitSeriesRendererInfo();

      LegendRenderer lr = new ColumnLikeLegendRenderer(this.rendererParms);
      cri.legendRendererInfo = (LegendRendererInfo)lr.Init();

      AxisRenderer xar = new HorizontalXAxisRenderer(this.rendererParms);
      cri.xAxisRendererInfo = (AxisRendererInfo)xar.Init();

      AxisRenderer yar = GetYAxisRenderer();
      cri.yAxisRendererInfo = (AxisRendererInfo)yar.Init();

      PlotArea plotArea = cri.chart.PlotArea;
      PlotAreaRenderer renderer = GetPlotAreaRenderer();
      cri.plotAreaRendererInfo = (PlotAreaRendererInfo)renderer.Init();

      DataLabelRenderer dlr = new ColumnDataLabelRenderer(this.rendererParms);
      dlr.Init();

      return cri;
    }
        /// <summary>
        /// Returns an initialized and renderer specific rendererInfo.
        /// </summary>
        internal override RendererInfo Init()
        {
            ChartRendererInfo cri = new ChartRendererInfo();

            cri.chart = (Chart)this.rendererParms.DrawingItem;
            this.rendererParms.RendererInfo = cri;

            InitSeriesRendererInfo();

            LegendRenderer lr = new ColumnLikeLegendRenderer(this.rendererParms);

            cri.legendRendererInfo = (LegendRendererInfo)lr.Init();

            AxisRenderer xar = new HorizontalXAxisRenderer(this.rendererParms);

            cri.xAxisRendererInfo = (AxisRendererInfo)xar.Init();

            AxisRenderer yar = new VerticalYAxisRenderer(this.rendererParms);

            cri.yAxisRendererInfo = (AxisRendererInfo)yar.Init();

            PlotArea         plotArea = cri.chart.PlotArea;
            PlotAreaRenderer renderer = new AreaPlotAreaRenderer(this.rendererParms);

            cri.plotAreaRendererInfo = (PlotAreaRendererInfo)renderer.Init();

            return(cri);
        }
Beispiel #4
0
        /// <summary>
        /// Returns an initialized and renderer specific rendererInfo.
        /// </summary>
        internal override RendererInfo Init()
        {
            CombinationRendererInfo cri = new CombinationRendererInfo();

            cri._chart = (Chart)_rendererParms.DrawingItem;
            _rendererParms.RendererInfo = cri;

            InitSeriesRendererInfo();
            DistributeSeries();

            if (cri._areaSeriesRendererInfos != null)
            {
                cri.seriesRendererInfos = cri._areaSeriesRendererInfos;
                AreaChartRenderer renderer = new AreaChartRenderer(_rendererParms);
                renderer.InitSeries();
            }
            if (cri._columnSeriesRendererInfos != null)
            {
                cri.seriesRendererInfos = cri._columnSeriesRendererInfos;
                ColumnChartRenderer renderer = new ColumnChartRenderer(_rendererParms);
                renderer.InitSeries();
            }
            if (cri._lineSeriesRendererInfos != null)
            {
                cri.seriesRendererInfos = cri._lineSeriesRendererInfos;
                LineChartRenderer renderer = new LineChartRenderer(_rendererParms);
                renderer.InitSeries();
            }
            cri.seriesRendererInfos = cri._commonSeriesRendererInfos;

            LegendRenderer lr = new ColumnLikeLegendRenderer(_rendererParms);

            cri.legendRendererInfo = (LegendRendererInfo)lr.Init();

            AxisRenderer xar = new HorizontalXAxisRenderer(_rendererParms);

            cri.xAxisRendererInfo = (AxisRendererInfo)xar.Init();

            AxisRenderer yar = new VerticalYAxisRenderer(_rendererParms);

            cri.yAxisRendererInfo = (AxisRendererInfo)yar.Init();

            PlotArea         plotArea = cri._chart.PlotArea;
            PlotAreaRenderer apar     = new AreaPlotAreaRenderer(_rendererParms);

            cri.plotAreaRendererInfo = (PlotAreaRendererInfo)apar.Init();

            // Draw data labels.
            if (cri._columnSeriesRendererInfos != null)
            {
                cri.seriesRendererInfos = cri._columnSeriesRendererInfos;
                DataLabelRenderer dlr = new ColumnDataLabelRenderer(_rendererParms);
                dlr.Init();
            }

            return(cri);
        }
        /// <summary>
        /// Returns an initialized and renderer specific rendererInfo.
        /// </summary>
        internal override RendererInfo Init()
        {
            CombinationRendererInfo cri = new CombinationRendererInfo();
            cri._chart = (Chart)_rendererParms.DrawingItem;
            _rendererParms.RendererInfo = cri;

            InitSeriesRendererInfo();
            DistributeSeries();

            if (cri._areaSeriesRendererInfos != null)
            {
                cri.seriesRendererInfos = cri._areaSeriesRendererInfos;
                AreaChartRenderer renderer = new AreaChartRenderer(_rendererParms);
                renderer.InitSeries();
            }
            if (cri._columnSeriesRendererInfos != null)
            {
                cri.seriesRendererInfos = cri._columnSeriesRendererInfos;
                ColumnChartRenderer renderer = new ColumnChartRenderer(_rendererParms);
                renderer.InitSeries();
            }
            if (cri._lineSeriesRendererInfos != null)
            {
                cri.seriesRendererInfos = cri._lineSeriesRendererInfos;
                LineChartRenderer renderer = new LineChartRenderer(_rendererParms);
                renderer.InitSeries();
            }
            cri.seriesRendererInfos = cri._commonSeriesRendererInfos;

            LegendRenderer lr = new ColumnLikeLegendRenderer(_rendererParms);
            cri.legendRendererInfo = (LegendRendererInfo)lr.Init();

            AxisRenderer xar = new HorizontalXAxisRenderer(_rendererParms);
            cri.xAxisRendererInfo = (AxisRendererInfo)xar.Init();

            AxisRenderer yar = new VerticalYAxisRenderer(_rendererParms);
            cri.yAxisRendererInfo = (AxisRendererInfo)yar.Init();

            PlotArea plotArea = cri._chart.PlotArea;
            PlotAreaRenderer apar = new AreaPlotAreaRenderer(_rendererParms);
            cri.plotAreaRendererInfo = (PlotAreaRendererInfo)apar.Init();

            // Draw data labels.
            if (cri._columnSeriesRendererInfos != null)
            {
                cri.seriesRendererInfos = cri._columnSeriesRendererInfos;
                DataLabelRenderer dlr = new ColumnDataLabelRenderer(_rendererParms);
                dlr.Init();
            }

            return cri;
        }
Beispiel #6
0
        /// <summary>
        /// Returns an initialized and renderer specific rendererInfo.
        /// </summary>
        internal override RendererInfo Init()
        {
            ChartRendererInfo cri = new ChartRendererInfo();
            cri._chart = (Chart)_rendererParms.DrawingItem;
            _rendererParms.RendererInfo = cri;

            InitSeriesRendererInfo();

            LegendRenderer lr = new ColumnLikeLegendRenderer(_rendererParms);
            cri.legendRendererInfo = (LegendRendererInfo)lr.Init();

            AxisRenderer xar = new HorizontalXAxisRenderer(_rendererParms);
            cri.xAxisRendererInfo = (AxisRendererInfo)xar.Init();

            AxisRenderer yar = new VerticalYAxisRenderer(_rendererParms);
            cri.yAxisRendererInfo = (AxisRendererInfo)yar.Init();

            PlotArea plotArea = cri._chart.PlotArea;
            PlotAreaRenderer renderer = new AreaPlotAreaRenderer(_rendererParms);
            cri.plotAreaRendererInfo = (PlotAreaRendererInfo)renderer.Init();

            return cri;
        }