예제 #1
0
 public ShimChartSeries(Chart owner, int seriesIndex, ShimChartMember seriesParentMember)
     : base(owner, seriesIndex)
 {
     this.m_cells      = new List <ShimChartDataPoint>();
     this.m_plotAsLine = seriesParentMember.CurrentRenderChartMember.IsPlotTypeLine();
     this.GenerateChartDataPoints(seriesParentMember, null, owner.CategoryHierarchy.MemberCollection as ShimChartMemberCollection);
 }
 public ShimChartDataPoint(Chart owner, int rowIndex, int colIndex, ShimChartMember seriesParentMember, ShimChartMember categoryParentMember)
     : base(owner, rowIndex, colIndex)
 {
     this.m_dataValues           = null;
     this.m_seriesParentMember   = seriesParentMember;
     this.m_categoryParentMember = categoryParentMember;
 }
 public ShimChartMember(IDefinitionPath parentDefinitionPath, Chart owner, ShimChartMember parent, int parentCollectionIndex, bool isCategory, ShimRenderGroups renderGroups)
     : base(parentDefinitionPath, owner, parent, parentCollectionIndex)
 {
     this.m_definitionStartIndex = owner.GetCurrentMemberCellDefinitionIndex();
     this.m_isCategory           = isCategory;
     base.m_group = new Group(owner, renderGroups);
     this.GenerateInnerHierarchy(owner, parent, isCategory, ((AspNetCore.ReportingServices.ReportRendering.ChartMember)renderGroups[0]).Children);
     this.m_definitionEndIndex = owner.GetCurrentMemberCellDefinitionIndex();
 }
 public ShimChartMember(IDefinitionPath parentDefinitionPath, Chart owner, ShimChartMember parent, int parentCollectionIndex, bool isCategory, AspNetCore.ReportingServices.ReportRendering.ChartMember staticOrSubtotal)
     : base(parentDefinitionPath, owner, parent, parentCollectionIndex)
 {
     this.m_definitionStartIndex = owner.GetCurrentMemberCellDefinitionIndex();
     this.m_isCategory           = isCategory;
     this.m_staticOrSubtotal     = staticOrSubtotal;
     this.GenerateInnerHierarchy(owner, parent, isCategory, staticOrSubtotal.Children);
     this.m_definitionEndIndex = owner.GetCurrentMemberCellDefinitionIndex();
 }
 private void GenerateInnerHierarchy(Chart owner, ShimChartMember parent, bool isCategory, AspNetCore.ReportingServices.ReportRendering.ChartMemberCollection children)
 {
     if (children != null)
     {
         base.m_children = new ShimChartMemberCollection(this, owner, isCategory, this, children);
     }
     else
     {
         owner.GetAndIncrementMemberCellDefinitionIndex();
     }
 }
예제 #6
0
 private void AppendChartSeries(ShimChartMember seriesParentMember, ShimChartMemberCollection seriesMembers)
 {
     if (seriesMembers == null)
     {
         this.m_series.Add(new ShimChartSeries(base.m_owner, this.m_series.Count, seriesParentMember));
     }
     else
     {
         int count = seriesMembers.Count;
         for (int i = 0; i < count; i++)
         {
             ShimChartMember shimChartMember = ((ReportElementCollectionBase <ChartMember>)seriesMembers)[i] as ShimChartMember;
             this.AppendChartSeries(shimChartMember, shimChartMember.Children as ShimChartMemberCollection);
         }
     }
 }
예제 #7
0
 private void GenerateChartDataPoints(ShimChartMember seriesParentMember, ShimChartMember categoryParentMember, ShimChartMemberCollection categoryMembers)
 {
     if (categoryMembers == null)
     {
         this.m_cells.Add(new ShimChartDataPoint(base.m_chart, base.m_seriesIndex, this.m_cells.Count, seriesParentMember, categoryParentMember));
         this.TranslateChartType(base.m_chart.RenderChartDef.Type, base.m_chart.RenderChartDef.SubType);
     }
     else
     {
         int count = categoryMembers.Count;
         for (int i = 0; i < count; i++)
         {
             ShimChartMember shimChartMember = ((ReportElementCollectionBase <ChartMember>)categoryMembers)[i] as ShimChartMember;
             this.GenerateChartDataPoints(seriesParentMember, shimChartMember, shimChartMember.Children as ShimChartMemberCollection);
         }
     }
 }
예제 #8
0
 public void UpdateCells(ShimChartMember innermostMember)
 {
     if (innermostMember != null && innermostMember.Children == null)
     {
         if (!innermostMember.IsCategory)
         {
             int memberCellIndex = innermostMember.MemberCellIndex;
             int count           = this.m_series[memberCellIndex].Count;
             for (int i = 0; i < count; i++)
             {
                 ((ShimChartDataPoint)((ReportElementCollectionBase <ChartDataPoint>) this.m_series[memberCellIndex])[i]).SetNewContext();
             }
         }
         else
         {
             int memberCellIndex2 = innermostMember.MemberCellIndex;
             int count2           = this.m_series.Count;
             for (int j = 0; j < count2; j++)
             {
                 ((ShimChartDataPoint)((ReportElementCollectionBase <ChartDataPoint>) this.m_series[j])[memberCellIndex2]).SetNewContext();
             }
         }
     }
 }
예제 #9
0
        public ShimChartMemberCollection(IDefinitionPath parentDefinitionPath, Chart owner, bool isCategoryGroup, ShimChartMember parent, AspNetCore.ReportingServices.ReportRendering.ChartMemberCollection renderMemberCollection)
            : base(parentDefinitionPath, owner)
        {
            this.m_isCategoryGroup      = isCategoryGroup;
            this.m_definitionStartIndex = owner.GetCurrentMemberCellDefinitionIndex();
            int count = renderMemberCollection.Count;

            if (renderMemberCollection[0].IsStatic)
            {
                this.m_isDynamic = false;
                base.m_children  = new ShimChartMember[count];
                for (int i = 0; i < count; i++)
                {
                    base.m_children[i] = new ShimChartMember(this, owner, parent, i, isCategoryGroup, renderMemberCollection[i]);
                }
            }
            else
            {
                this.m_isDynamic   = true;
                base.m_children    = new ShimChartMember[1];
                base.m_children[0] = new ShimChartMember(this, owner, parent, 0, isCategoryGroup, new ShimRenderGroups(renderMemberCollection));
            }
            this.m_definitionEndIndex = owner.GetCurrentMemberCellDefinitionIndex();
        }