diff options
Diffstat (limited to 'Software/Visual_Studio/SideChains/RealTimeGraphEx/Components')
| -rw-r--r-- | Software/Visual_Studio/SideChains/RealTimeGraphEx/Components/ComponentBase.cs | 11 | ||||
| -rw-r--r-- | Software/Visual_Studio/SideChains/RealTimeGraphEx/Components/YAxisScroll.cs | 5 |
2 files changed, 16 insertions, 0 deletions
diff --git a/Software/Visual_Studio/SideChains/RealTimeGraphEx/Components/ComponentBase.cs b/Software/Visual_Studio/SideChains/RealTimeGraphEx/Components/ComponentBase.cs index 3e2294068..5bdef111c 100644 --- a/Software/Visual_Studio/SideChains/RealTimeGraphEx/Components/ComponentBase.cs +++ b/Software/Visual_Studio/SideChains/RealTimeGraphEx/Components/ComponentBase.cs @@ -37,10 +37,16 @@ namespace RealTimeGraphEx.Components { Graph.ZoomComplete += OnGraphZoomComplete; Graph.PanningComplete += OnGraphPanningComplete; + Graph.MinMaxChanged += Graph_MinMaxChanged; Render(Graph); } } + private void Graph_MinMaxChanged(object sender, EventArgs e) + { + OnGraphMinMaxChanged(); + } + public abstract void Render(RealTimeGraphExBase graph, bool animate = false); public void RemoveFromParent() @@ -97,5 +103,10 @@ namespace RealTimeGraphEx.Components { } + + protected virtual void OnGraphMinMaxChanged() + { + + } } } diff --git a/Software/Visual_Studio/SideChains/RealTimeGraphEx/Components/YAxisScroll.cs b/Software/Visual_Studio/SideChains/RealTimeGraphEx/Components/YAxisScroll.cs index 40a6ca5cb..618cdc27e 100644 --- a/Software/Visual_Studio/SideChains/RealTimeGraphEx/Components/YAxisScroll.cs +++ b/Software/Visual_Studio/SideChains/RealTimeGraphEx/Components/YAxisScroll.cs @@ -192,6 +192,11 @@ namespace RealTimeGraphEx.Components Render(Graph, true); } + protected override void OnGraphMinMaxChanged() + { + Render(Graph); + } + protected override void OnGraphPanningComplete(Point translate) { if (innerGrid != null) |
