Example #1
0
        private void Test_Load(object sender, EventArgs e)
        {
            List <DataModel> list = new List <DataModel>();

            for (int i = 200; i > 0; i--)
            {
                list.Add(new DataModel("0000" + i, (int)(0 + i * 0.5)));
            }
            //radius_Rectangle_ReportView1.Height = 2000;
            ViewPanel.padding            = 20;
            ViewPanel.isVerticalShowData = true;
            radius_Rectangle_ReportView1.StrokenWidth    = 5;
            radius_Rectangle_ReportView1.TextSize        = 10;
            radius_Rectangle_ReportView1.DataSize        = 10;
            radius_Rectangle_ReportView1.LineColor       = ReportViewUtils.perferBlue;
            radius_Rectangle_ReportView1.TextColor       = ReportViewUtils.perferWhite;
            radius_Rectangle_ReportView1.DataColor       = ReportViewUtils.perferWhite;
            radius_Rectangle_ReportView1.BackGroundColor = ReportViewUtils.perferBlue_Deep;
            ReportViewAdapter adapter = new SimapleListViewAdapter();

            //设置数据源
            adapter.setData(list);
            //用于设置起始位置
            adapter.setBasePostitionRect(new AreaPositionRect(0, 20, 300, 38));
            radius_Rectangle_ReportView1.setAdapter(adapter);//设置panel的高度
            radius_Rectangle_ReportView1.OnMouseMove_ReportViewPanelEvent += OnMouseMoveCallBack;
            ///radius_Rectangle_ReportView1.setOnMouseMoveCallBack(this);
        }
Example #2
0
        private void CircleSpliteReportViewTest_Load(object sender, EventArgs e)
        {
            List <DataModel> list = new List <DataModel>();

            for (int i = 2; i > 0; i--)
            {
                list.Add(new ThreeTextAndDataModel("编号 1", 20, "编号 2", 30, "编号 3", 40));
            }
            ViewPanel.padding            = 60;
            ViewPanel.isVerticalShowData = false;
            ReportViewAdapter adapter = new SimapleListViewAdapter();

            //设置数据源
            adapter.setData(list);
            //用于设置起始位置和宽高
            adapter.setBasePostitionRect(new AreaPositionRect(10, 20, 110, 120));
            circle_Splite_ReportView1.setAdapter(adapter);
            circle_Splite_ReportView1.OnMouseMove_ReportViewPanelEvent += OnMouseMoveCallBack;
        }
Example #3
0
        private void ArcSpliteTest_Load(object sender, EventArgs e)
        {
            List <DataModel> list = new List <DataModel>();

            for (int i = 3; i > 0; i--)
            {
                list.Add(new ChildDataModel("平台接入" + i, (int)(0 + i * 30), "同比上升", 40));
            }
            ViewPanel.padding            = 60;
            ViewPanel.isVerticalShowData = false;
            ReportViewAdapter adapter = new SimapleListViewAdapter();

            //设置数据源
            adapter.setData(list);
            //用于设置起始位置和宽高
            adapter.setBasePostitionRect(new AreaPositionRect(10, 20, 110, 120));
            arc_Splite_ReportView1.setAdapter(adapter);
            arc_Splite_ReportView1.OnMouseMove_ReportViewPanelEvent += OnMouseMoveCallBack;
        }