/// <summary> /// Emotion ZedGraph init /// </summary> private void EmotionGraphInit() { System.Windows.Forms.Integration.WindowsFormsHost emotionHost = new System.Windows.Forms.Integration.WindowsFormsHost(); emotionZedGraph = new ZedGraph.ZedGraphControl(); emotionZedGraph.IsEnableZoom = false; emotionHost.Child = emotionZedGraph; EmotionGrid.Children.Add(emotionHost); emotionGraph = new BasicDSP.Graph(emotionZedGraph.CreateGraphics(), emotionZedGraph); emotionGraphPane = emotionZedGraph.GraphPane; emotionLine = new ZedGraph.LineObj(System.Drawing.Color.Red, graphLineXPosition, emotionGraphPane.YAxis.Scale.Min, graphLineXPosition, emotionGraphPane.YAxis.Scale.Max); emotionLine.Line.Width = 1f; emotionGraphPane.GraphObjList.Add(emotionLine); EmotionZedGraphRefresh(); }
/// <summary> /// Activity ZedGraph init /// </summary> private void ActivityGraphInit() { System.Windows.Forms.Integration.WindowsFormsHost activityHost = new System.Windows.Forms.Integration.WindowsFormsHost(); activityZedGraph = new ZedGraph.ZedGraphControl(); activityZedGraph.IsEnableZoom = false; activityHost.Child = activityZedGraph; ActivityGrid.Children.Add(activityHost); activityGraph = new BasicDSP.Graph(activityZedGraph.CreateGraphics(), activityZedGraph); activityGraphPane = activityZedGraph.GraphPane; activityLine = new ZedGraph.LineObj(System.Drawing.Color.Red, graphLineXPosition, activityGraphPane.YAxis.Scale.Min, graphLineXPosition, activityGraphPane.YAxis.Scale.Max); activityLine.Line.Width = 1f; activityGraphPane.GraphObjList.Add(activityLine); ActivityZedGraphRefresh(); }
/// <summary> /// EEG ZedGraph init /// </summary> private void EEGGraphInit() { System.Windows.Forms.Integration.WindowsFormsHost host = new System.Windows.Forms.Integration.WindowsFormsHost(); eegZedGraph = new ZedGraph.ZedGraphControl(); eegZedGraph.IsEnableZoom = false; // http://goorman.free.fr/ZedGraph/zedgraph.org/wiki/indexa9f9.html?title=Edit_Points_by_Dragging_the_Mouse //zedGraph.MouseDownEvent += zedGraph_MouseDownEvent; host.Child = eegZedGraph; EEGGrid.Children.Add(host); eegGraph = new BasicDSP.Graph(eegZedGraph.CreateGraphics(), eegZedGraph); zedGraphPane = eegZedGraph.GraphPane; eegLine = new ZedGraph.LineObj(System.Drawing.Color.Red, graphLineXPosition, zedGraphPane.YAxis.Scale.Min, graphLineXPosition, zedGraphPane.YAxis.Scale.Max); eegLine.Line.Width = 1f; zedGraphPane.GraphObjList.Add(eegLine); EEGZedGraphRefresh(); }
/// <summary> /// Init spectrum ZedGraph /// </summary> private void SpectrumGraphInit() { System.Windows.Forms.Integration.WindowsFormsHost spectrumZedGraphHost = new System.Windows.Forms.Integration.WindowsFormsHost(); spectrumZedGraph = new ZedGraph.ZedGraphControl(); spectrumZedGraph.IsEnableZoom = false; spectrumZedGraphHost.Child = spectrumZedGraph; SpectrumGrid.Children.Add(spectrumZedGraphHost); spectrumGraph = new BasicDSP.Graph(spectrumZedGraph.CreateGraphics(), spectrumZedGraph); spectrumGraphPane = spectrumZedGraph.GraphPane; SpectrumZedGraphRefresh(); }