Example #1
0
 internal void SelectFirstPane()
 {
     if (m_Graph.MasterPane.PaneList.Count > 0)
     {
         SelectedPane = (LogGraphPane)m_Graph.MasterPane.PaneList[0];
     }
 }
Example #2
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;
            }
        }
Example #3
0
        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));
        }
Example #4
0
        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;
        }
Example #5
0
        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);
        }
Example #6
0
        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;
        }
Example #7
0
        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;
            }
        }
Example #8
0
 internal void ResetAutoScale(LogGraphPane logGraphPane)
 {
     m_Graph.RestoreScale(logGraphPane);
 }