Beispiel #1
0
 private void timeKValueToolStripMenuItem_Click(object sender, EventArgs e)
 {
     this.Text = "Time K value";
     this.Invalidate();
     ShowLayer(0);
     timeGraph.BringToFront();
     if (first_layer_LabelView_mode)
     {
         LabelView.BringToFront();
     }
     else
     {
         LabelViewCC.BringToFront();
     }
     timeGraph.Reset();
     timeGraph.NotifyRedraw();
 }
Beispiel #2
0
 private void graphToolStripMenuItem_Click(object sender, EventArgs e)
 {
     this.Text = "Graph";
     this.Invalidate();
     ShowLayer(0);
     graph_table.BringToFront();
     if (first_layer_LabelView_mode)
     {
         LabelView.BringToFront();
     }
     else
     {
         LabelViewCC.BringToFront();
     }
     graph_table.ReInit();
     first_layer_LabelView_mode = true;
     if (timeGraph.flag)
     {
         UpdateGraphTable();
     }
 }
Beispiel #3
0
        public void initThirdLayer()
        {
            timeGraph.Size     = new Size((int)(this.Width * 0.8), (int)(this.Size.Height * 0.425));
            timeGraph.Location = new Point(0, (int)(this.Height * 0.09));


            graph_table.Size     = new Size((int)(this.Width * 0.55), (int)(this.Height * 0.425));
            graph_table.Location = new Point((int)(this.Width * 0.25), (int)(this.Height * 0.5125));

            scatterPlot.Size     = new Size((int)(this.Width * 0.25), (int)(this.Height * 0.425));
            scatterPlot.Location = new Point(0, (int)(this.Height * 0.5125));

            LabelView.BringToFront();

            LabelViewCC.Size     = new Size((int)(this.Width * 0.2), (int)(this.Height * 0.85));
            LabelViewCC.Location = new Point((int)(this.Width * 0.8), (int)(this.Height * 0.09));
            LabelView.Size       = new Size((int)(this.Width * 0.2), (int)(this.Height * 0.85));
            LabelView.Location   = new Point((int)(this.Width * 0.8), (int)(this.Height * 0.09));
            LabelViewCC.BringToFront();

            graph_table.Init();


            alphaBar.Location = new Point((int)(this.Width - alphaBar.Width * 1.1), (int)(this.Height * 0.05));
            alphaBar.Value    = 100;

            mode.Location = new Point((int)(this.Width - alphaBar.Width * 1.1 - mode.Width * 1.3), (int)(this.Height * 0.045));

            List <Control> lc = new List <Control>();

            lc.Add(timeGraph);
            lc.Add(graph_table);
            lc.Add(LabelView);
            lc.Add(LabelViewCC);
            lc.Add(scatterPlot);
            lc.Add(alphaBar);
            lc.Add(mode);
            Panel_Layer.Add(lc);
        }
Beispiel #4
0
        public void initFirstLayer()
        {
            //this.BackColor = Color.Black;
            graph_table.Size     = new Size(this.Size.Width, (int)(this.Size.Height * 0.48));
            graph_table.Location = new Point(0, (int)(this.Height * 0.09));
            graph_table.rce      = graph_table_MouseDown;

            timeGraph.Size     = new Size(this.Size.Width, (int)(this.Size.Height * 0.48));
            timeGraph.Location = new Point(0, (int)(this.Height * 0.09));
            timeGraph.rce      = timeGraph_MouseDown;
            timeGraph.cb       = SetDateByString;
            timeGraph.SendToBack();

            /*
             * LabelList.Location = new Point((int)(this.Width * 0.005), LabelList.Location.Y);
             * LabelList.Size = new Size((int)(this.Width * 0.99), LabelList.Height );
             *
             * foreach (string s in dp.label)
             *  LabelList.Items.Add(s);
             */

            LabelView.BringToFront();

            LabelViewCC.Location = new Point((int)(this.Width * 0.005), (int)(this.Height * 0.6));
            LabelViewCC.Size     = new Size((int)(this.Width * 0.99), (int)(this.Height * 0.3));

            LabelViewCC.Visible = false;



            LabelView.Location = new Point((int)(this.Width * 0.005), (int)(this.Height * 0.6));
            LabelView.Size     = new Size((int)(this.Width * 0.99), (int)(this.Height * 0.3));

            LabelView.Items.Add(new ListViewItem(firstLabel));
            foreach (string s in dp.label)
            {
                LabelView.Items.Add(new ListViewItem(s));
            }



            first_layer_LabelView_mode = true;


            LabelList.Visible = false;

            graph_table.Init();

            preTime.Location   = new Point(preTime.Location.X, this.Height - preTime.Height * 2);
            curTime.Location   = new Point(curTime.Location.X, this.Height - curTime.Height * 2);
            updateBtn.Location = new Point(this.Width - (int)(updateBtn.Width * 1.5), (int)(this.Height * 0.94));

            alphaBar.Location = new Point((int)(this.Width - alphaBar.Width * 1.1), (int)(this.Height * 0.05));
            alphaBar.Value    = 100;

            mode.Location = new Point((int)(this.Width - alphaBar.Width * 1.1 - mode.Width * 1.3), (int)(this.Height * 0.045));


            List <Control> lc = new List <Control>();

            lc.Add(graph_table);
            lc.Add(preTime);
            lc.Add(curTime);
            lc.Add(updateBtn);
            lc.Add(alphaBar);
            lc.Add(mode);
            lc.Add(LabelView);
            lc.Add(dataNumLabel);
            lc.Add(LabelViewCC);
            lc.Add(timeGraph);
            Panel_Layer.Add(lc);
        }