Esempio n. 1
0
 public void UpdateFrame()
 {
     colorBar.NotifyRedraw();
     dimGraph.NotifyRedraw();
     SubDimGraph.NotifyRedraw();
     pcpGraph.NotifyRedraw();
 }
Esempio n. 2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            tags    = DataLoader.ReadTags(databasePath + "tags.csv");
            allData = DataLoader.ReadData(databasePath + "effect.csv");

            for (int i = 0; i < 16; i++)
            {
                List <List <double> > tmp = DataLoader.ReadData(databasePath + "\\data\\d" + i + ".csv");
                idvData.Add(tmp);
            }
            SubDimGraph.horizontalLabel = false;
            SubDimGraph.balance         = true;
            SubDimGraph.SetVerLabel(tags);
            SubDimGraph.SetInfo(idvData[0].Count, tags.Count, 20, 1, 20, tags.Count, tags.Count * 20, colorBar);
            SubDimGraph.GenerateVerticalLabel(true, null, null);
            List <String> v = new List <String>();
            List <double> r = new List <double>();

            for (int i = 0; i <= 5; i++)
            {
                v.Add((i * 500).ToString());
                r.Add(i * (500.0 / (double)idvData[0].Count));
            }
            SubDimGraph.GenerateHorizontalLabel(false, r, v);

            //SubDimGraph.Visible = false;
            //dimGraph.balance = true;
            dimGraph.SetData(allData);
            dimGraph.SetHorLabel(tags);
            dimGraph.SetVerLabel(tags);
            dimGraph.SetInfo(tags.Count, tags.Count, 20, 20, 20, tags.Count, tags.Count * 20, colorBar);
            dimGraph.cbFunc = SetSubData;
            colorBar.cbFunc = UpdateFrame;



            SetPCPGraph();
            LatentFig.Location = new Point((int)(this.Width * 0.07), (int)(this.Height * 0.08));
            LatentFig.Size     = new Size((int)(this.Width * 0.28), (int)(this.Width * 0.21));

            dimGraph.Location = new Point(LatentFig.Location.X + LatentFig.Width, (int)(this.Height * 0.05));
            dimGraph.Size     = new Size((int)(this.Width * 0.3), (int)(this.Height * 0.5));
            //colorBar.SetSize(20, dimGraph.GetGridHeight(), 20);

            colorBar.Location = new Point(dimGraph.Location.X + colorBar.width + padRight, dimGraph.Location.Y + dimGraph.padTop - colorBar.padTop);
            colorBar.SetSize(20, dimGraph.GetGridHeight(), 20);
            colorBar.SetInfo(-0.3, 0.3, 0, Color.LimeGreen, Color.OrangeRed, Color.White, 4);

            SubDimGraph.Size     = new Size((int)(this.Width * 0.3), (int)(this.Height * 0.5));
            SubDimGraph.Location = new Point(dimGraph.Location.X + dimGraph.Width, (int)(this.Height * 0.05));



            UpdateFrame();
        }
Esempio n. 3
0
 public void SetSubData(int index)
 {
     SubDimGraph.SetData(idvData[index]);
     SubDimGraph.TriggerLabel(index);
     SubDimGraph.NotifyRedraw();
 }
Esempio n. 4
0
 private void button1_Click(object sender, EventArgs e)
 {
     dimGraph.NotifyRedraw();
     colorBar.NotifyRedraw();
     SubDimGraph.NotifyRedraw();
 }