internal void SelectFirstPane() { if (m_Graph.MasterPane.PaneList.Count > 0) { SelectedPane = (LogGraphPane)m_Graph.MasterPane.PaneList[0]; } }
internal void Selected() { if (m_SelectedPane == null && m_Graph.MasterPane.PaneList.Count > 0) { m_SelectedPane = (LogGraphPane)m_Graph.MasterPane[0]; m_SelectedPane.Border.Color = Color.Red; m_SelectedPane.Border.Width = 2; } }
private bool OnGraphMouseDown(ZedGraphControl sender, MouseEventArgs e) { LogGraphPane pane = sender.MasterPane.FindPane(e.Location) as LogGraphPane; SelectedPane = pane; if (pane == null) { return(false); } return(pane.OnGraphMouseDown(sender, e)); }
internal void LoadSettings(PageSettings page) { m_Graph.IsSynchronizeXAxes = page.IsSynchronizeXAxes; m_Graph.IsSynchronizeYAxes = page.IsSynchronizeYAxes; foreach (PaneSettings ps in page.Panes) { LogGraphPane pane = AddPane(false); pane.Title.Text = ps.Name; pane.LoadSettings(ps); } m_HasChanged = false; }
public LogGraphPane AddPane(bool markAsChanged) { LogGraphPane pane = new LogGraphPane(this, m_Manager); pane.Title.IsVisible = false; pane.ItemDatabase = m_Database; pane.OnCurveItemSelected += new EventHandler(OnCurveSelected); m_Graph.MasterPane.Add(pane); UpdateCompleteGraph(); if (markAsChanged) { m_HasChanged = true; } return(pane); }
public LogGraphCurveItem(string itemID, LogGraphPane pane, ISynchronizeInvoke synchronizeInvoke) : base(itemID) { m_ItemID = itemID; m_SynchronizeInvoke = synchronizeInvoke; m_Pane = pane; Symbol.Type = SymbolType.Star; Symbol.IsVisible = false; this.Line.DashOn = 100; this.Line.DashOff = 10; this.Line.IsOptimizedDraw = true; this.Line.IsSmooth = false; this.Line.IsAntiAlias = false; this.IsSelectable = true; this.Line.StepType = StepType.ForwardStep; IsBoolean = true; DrawInfinitely = false; }
public void RemovePane(LogGraphPane pane) { if (pane != null) { pane.OnCurveItemSelected -= new EventHandler(OnCurveSelected); m_Graph.MasterPane.PaneList.Remove(pane); if (m_SelectedPane == pane) { m_SelectedPane = null; } if (OnSelectedPaneChanged != null) { OnSelectedPaneChanged(this, EventArgs.Empty); } UpdateCompleteGraph(); m_HasChanged = true; } }
internal void ResetAutoScale(LogGraphPane logGraphPane) { m_Graph.RestoreScale(logGraphPane); }