Esempio n. 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);
        }
Esempio n. 2
0
        /// <summary>
        /// Layouts and calculates the space used by the column chart.
        /// </summary>
        internal override void Format()
        {
            ChartRendererInfo cri = (ChartRendererInfo)_rendererParms.RendererInfo;

            LegendRenderer lr = new ColumnLikeLegendRenderer(_rendererParms);

            lr.Format();

            // axes
            AxisRenderer xar = new HorizontalXAxisRenderer(_rendererParms);

            xar.Format();

            AxisRenderer yar = GetYAxisRenderer();

            yar.Format();

            // Calculate rects and positions.
            CalcLayout();

            // Calculated remaining plot area, now it's safe to format.
            PlotAreaRenderer renderer = GetPlotAreaRenderer();

            renderer.Format();

            DataLabelRenderer dlr = new ColumnDataLabelRenderer(_rendererParms);

            dlr.Format();
        }
    /// <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;
    }
Esempio n. 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);
        }
Esempio n. 5
0
        /// <summary>
        /// Draws the column chart.
        /// </summary>
        internal override void Draw()
        {
            ChartRendererInfo cri = (ChartRendererInfo)_rendererParms.RendererInfo;

            LegendRenderer lr = new ColumnLikeLegendRenderer(_rendererParms);

            lr.Draw();

            WallRenderer wr = new WallRenderer(_rendererParms);

            wr.Draw();

            GridlinesRenderer glr = new ColumnLikeGridlinesRenderer(_rendererParms);

            glr.Draw();

            PlotAreaBorderRenderer pabr = new PlotAreaBorderRenderer(_rendererParms);

            pabr.Draw();

            PlotAreaRenderer renderer = GetPlotAreaRenderer();

            renderer.Draw();

            DataLabelRenderer dlr = new ColumnDataLabelRenderer(_rendererParms);

            dlr.Draw();

            if (cri.xAxisRendererInfo._axis != null)
            {
                AxisRenderer xar = new HorizontalXAxisRenderer(_rendererParms);
                xar.Draw();
            }

            if (cri.yAxisRendererInfo._axis != null)
            {
                AxisRenderer yar = GetYAxisRenderer();
                yar.Draw();
            }
        }
Esempio n. 6
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;
        }
Esempio n. 7
0
        /// <summary>
        /// Draws the column chart.
        /// </summary>
        internal override void Draw()
        {
            CombinationRendererInfo cri = (CombinationRendererInfo)_rendererParms.RendererInfo;
            cri.seriesRendererInfos = cri._commonSeriesRendererInfos;

            LegendRenderer lr = new ColumnLikeLegendRenderer(_rendererParms);
            lr.Draw();

            WallRenderer wr = new WallRenderer(_rendererParms);
            wr.Draw();

            GridlinesRenderer glr = new ColumnLikeGridlinesRenderer(_rendererParms);
            glr.Draw();

            PlotAreaBorderRenderer pabr = new PlotAreaBorderRenderer(_rendererParms);
            pabr.Draw();

            PlotAreaRenderer renderer;
            if (cri._areaSeriesRendererInfos != null)
            {
                cri.seriesRendererInfos = cri._areaSeriesRendererInfos;
                renderer = new AreaPlotAreaRenderer(_rendererParms);
                renderer.Draw();
            }
            if (cri._columnSeriesRendererInfos != null)
            {
                cri.seriesRendererInfos = cri._columnSeriesRendererInfos;
                //TODO Check for Clustered- or StackedPlotAreaRenderer
                renderer = new ColumnClusteredPlotAreaRenderer(_rendererParms);
                renderer.Draw();
            }
            if (cri._lineSeriesRendererInfos != null)
            {
                cri.seriesRendererInfos = cri._lineSeriesRendererInfos;
                renderer = new LinePlotAreaRenderer(_rendererParms);
                renderer.Draw();
            }

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

            // Draw axes.
            cri.seriesRendererInfos = cri._commonSeriesRendererInfos;
            if (cri.xAxisRendererInfo._axis != null)
            {
                AxisRenderer xar = new HorizontalXAxisRenderer(_rendererParms);
                xar.Draw();
            }
            if (cri.yAxisRendererInfo._axis != null)
            {
                AxisRenderer yar = new VerticalYAxisRenderer(_rendererParms);
                yar.Draw();
            }
        }
Esempio n. 8
0
        /// <summary>
        /// Layouts and calculates the space used by the combination chart.
        /// </summary>
        internal override void Format()
        {
            CombinationRendererInfo cri = (CombinationRendererInfo)_rendererParms.RendererInfo;
            cri.seriesRendererInfos = cri._commonSeriesRendererInfos;

            LegendRenderer lr = new ColumnLikeLegendRenderer(_rendererParms);
            lr.Format();

            // axes
            AxisRenderer xar = new HorizontalXAxisRenderer(_rendererParms);
            xar.Format();

            AxisRenderer yar = new VerticalYAxisRenderer(_rendererParms);
            yar.Format();

            // Calculate rects and positions.
            XRect chartRect = LayoutLegend();
            cri.xAxisRendererInfo.X = chartRect.Left + cri.yAxisRendererInfo.Width;
            cri.xAxisRendererInfo.Y = chartRect.Bottom - cri.xAxisRendererInfo.Height;
            cri.xAxisRendererInfo.Width = chartRect.Width - cri.yAxisRendererInfo.Width;
            cri.yAxisRendererInfo.X = chartRect.Left;
            cri.yAxisRendererInfo.Y = chartRect.Top;
            cri.yAxisRendererInfo.Height = chartRect.Height - cri.xAxisRendererInfo.Height;
            cri.plotAreaRendererInfo.X = cri.xAxisRendererInfo.X;
            cri.plotAreaRendererInfo.Y = cri.yAxisRendererInfo.InnerRect.Y;
            cri.plotAreaRendererInfo.Width = cri.xAxisRendererInfo.Width;
            cri.plotAreaRendererInfo.Height = cri.yAxisRendererInfo.InnerRect.Height;

            // Calculated remaining plot area, now it's safe to format.
            PlotAreaRenderer renderer;
            if (cri._areaSeriesRendererInfos != null)
            {
                cri.seriesRendererInfos = cri._areaSeriesRendererInfos;
                renderer = new AreaPlotAreaRenderer(_rendererParms);
                renderer.Format();
            }
            if (cri._columnSeriesRendererInfos != null)
            {
                cri.seriesRendererInfos = cri._columnSeriesRendererInfos;
                //TODO Check for Clustered- or StackedPlotAreaRenderer
                renderer = new ColumnClusteredPlotAreaRenderer(_rendererParms);
                renderer.Format();
            }
            if (cri._lineSeriesRendererInfos != null)
            {
                cri.seriesRendererInfos = cri._lineSeriesRendererInfos;
                renderer = new LinePlotAreaRenderer(_rendererParms);
                renderer.Format();
            }

            // Draw data labels.
            if (cri._columnSeriesRendererInfos != null)
            {
                cri.seriesRendererInfos = cri._columnSeriesRendererInfos;
                DataLabelRenderer dlr = new ColumnDataLabelRenderer(_rendererParms);
                dlr.Format();
            }
        }
Esempio n. 9
0
        /// <summary>
        /// Draws the column chart.
        /// </summary>
        internal override void Draw()
        {
            CombinationRendererInfo cri = (CombinationRendererInfo)_rendererParms.RendererInfo;

            cri.seriesRendererInfos = cri._commonSeriesRendererInfos;

            LegendRenderer lr = new ColumnLikeLegendRenderer(_rendererParms);

            lr.Draw();

            WallRenderer wr = new WallRenderer(_rendererParms);

            wr.Draw();

            GridlinesRenderer glr = new ColumnLikeGridlinesRenderer(_rendererParms);

            glr.Draw();

            PlotAreaBorderRenderer pabr = new PlotAreaBorderRenderer(_rendererParms);

            pabr.Draw();

            PlotAreaRenderer renderer;

            if (cri._areaSeriesRendererInfos != null)
            {
                cri.seriesRendererInfos = cri._areaSeriesRendererInfos;
                renderer = new AreaPlotAreaRenderer(_rendererParms);
                renderer.Draw();
            }
            if (cri._columnSeriesRendererInfos != null)
            {
                cri.seriesRendererInfos = cri._columnSeriesRendererInfos;
                //TODO Check for Clustered- or StackedPlotAreaRenderer
                renderer = new ColumnClusteredPlotAreaRenderer(_rendererParms);
                renderer.Draw();
            }
            if (cri._lineSeriesRendererInfos != null)
            {
                cri.seriesRendererInfos = cri._lineSeriesRendererInfos;
                renderer = new LinePlotAreaRenderer(_rendererParms);
                renderer.Draw();
            }

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

            // Draw axes.
            cri.seriesRendererInfos = cri._commonSeriesRendererInfos;
            if (cri.xAxisRendererInfo._axis != null)
            {
                AxisRenderer xar = new HorizontalXAxisRenderer(_rendererParms);
                xar.Draw();
            }
            if (cri.yAxisRendererInfo._axis != null)
            {
                AxisRenderer yar = new VerticalYAxisRenderer(_rendererParms);
                yar.Draw();
            }
        }
Esempio n. 10
0
        /// <summary>
        /// Layouts and calculates the space used by the combination chart.
        /// </summary>
        internal override void Format()
        {
            CombinationRendererInfo cri = (CombinationRendererInfo)_rendererParms.RendererInfo;

            cri.seriesRendererInfos = cri._commonSeriesRendererInfos;

            LegendRenderer lr = new ColumnLikeLegendRenderer(_rendererParms);

            lr.Format();

            // axes
            AxisRenderer xar = new HorizontalXAxisRenderer(_rendererParms);

            xar.Format();

            AxisRenderer yar = new VerticalYAxisRenderer(_rendererParms);

            yar.Format();

            // Calculate rects and positions.
            XRect chartRect = LayoutLegend();

            cri.xAxisRendererInfo.X         = chartRect.Left + cri.yAxisRendererInfo.Width;
            cri.xAxisRendererInfo.Y         = chartRect.Bottom - cri.xAxisRendererInfo.Height;
            cri.xAxisRendererInfo.Width     = chartRect.Width - cri.yAxisRendererInfo.Width;
            cri.yAxisRendererInfo.X         = chartRect.Left;
            cri.yAxisRendererInfo.Y         = chartRect.Top;
            cri.yAxisRendererInfo.Height    = chartRect.Height - cri.xAxisRendererInfo.Height;
            cri.plotAreaRendererInfo.X      = cri.xAxisRendererInfo.X;
            cri.plotAreaRendererInfo.Y      = cri.yAxisRendererInfo.InnerRect.Y;
            cri.plotAreaRendererInfo.Width  = cri.xAxisRendererInfo.Width;
            cri.plotAreaRendererInfo.Height = cri.yAxisRendererInfo.InnerRect.Height;

            // Calculated remaining plot area, now it's safe to format.
            PlotAreaRenderer renderer;

            if (cri._areaSeriesRendererInfos != null)
            {
                cri.seriesRendererInfos = cri._areaSeriesRendererInfos;
                renderer = new AreaPlotAreaRenderer(_rendererParms);
                renderer.Format();
            }
            if (cri._columnSeriesRendererInfos != null)
            {
                cri.seriesRendererInfos = cri._columnSeriesRendererInfos;
                //TODO Check for Clustered- or StackedPlotAreaRenderer
                renderer = new ColumnClusteredPlotAreaRenderer(_rendererParms);
                renderer.Format();
            }
            if (cri._lineSeriesRendererInfos != null)
            {
                cri.seriesRendererInfos = cri._lineSeriesRendererInfos;
                renderer = new LinePlotAreaRenderer(_rendererParms);
                renderer.Format();
            }

            // Draw data labels.
            if (cri._columnSeriesRendererInfos != null)
            {
                cri.seriesRendererInfos = cri._columnSeriesRendererInfos;
                DataLabelRenderer dlr = new ColumnDataLabelRenderer(_rendererParms);
                dlr.Format();
            }
        }
    /// <summary>
    /// Layouts and calculates the space used by the column chart.
    /// </summary>
    internal override void Format()
    {
      ChartRendererInfo cri = (ChartRendererInfo)this.rendererParms.RendererInfo;

      LegendRenderer lr = new ColumnLikeLegendRenderer(this.rendererParms);
      lr.Format();

      // axes
      AxisRenderer xar = new HorizontalXAxisRenderer(this.rendererParms);
      xar.Format();

      AxisRenderer yar = GetYAxisRenderer();
      yar.Format();

      // Calculate rects and positions.
      CalcLayout();

      // Calculated remaining plot area, now it's safe to format.
      PlotAreaRenderer renderer = GetPlotAreaRenderer();
      renderer.Format();

      DataLabelRenderer dlr = new ColumnDataLabelRenderer(this.rendererParms);
      dlr.Format();
    }
    /// <summary>
    /// Draws the column chart.
    /// </summary>
    internal override void Draw()
    {
      ChartRendererInfo cri = (ChartRendererInfo)this.rendererParms.RendererInfo;
      
      LegendRenderer lr = new ColumnLikeLegendRenderer(this.rendererParms);
      lr.Draw();

      WallRenderer wr = new WallRenderer(this.rendererParms);
      wr.Draw();

      GridlinesRenderer glr = new ColumnLikeGridlinesRenderer(this.rendererParms);
      glr.Draw();

      PlotAreaBorderRenderer pabr = new PlotAreaBorderRenderer(this.rendererParms);
      pabr.Draw();

      PlotAreaRenderer renderer = GetPlotAreaRenderer();
      renderer.Draw();

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

      if (cri.xAxisRendererInfo.axis != null)
      {
        AxisRenderer xar = new HorizontalXAxisRenderer(this.rendererParms);
        xar.Draw();
      }

      if (cri.yAxisRendererInfo.axis != null)
      {
        AxisRenderer yar = GetYAxisRenderer();
        yar.Draw();
      }
    }