public PlotGraph CreateNewGraph(NewPlotEventArgs graphData) { //Have to reset the storyboard each time we create a new graph PlotPointViewRenderer.ResetStoryboard(); currentGraph = new PlotGraph(graphData.PlotPointCount, graphData.PointRadius, graphData.PointOpacity, graphData.Border); double aspectRatio = graphData.PlotDimensions.Width / graphData.PlotDimensions.Height; this.layoutNewGraph(currentGraph, graphData.InitialLayout, aspectRatio); this.initializeColors(currentGraph); this.initializeGraphProperties(); return currentGraph; }
internal void view_onNewGraph(object sender, NewPlotEventArgs e) { e.PointOpacity = view.plotManipulationPanel.PointOpacityValue; e.PointRadius = view.plotManipulationPanel.PointRadiusValue; e.Border = view.plotManipulationPanel.PointBorderValue; currentGraph = this.creationController.CreateNewGraph(e); DeltaCalculator.plotPoints = currentGraph.PlotPoints; view.CreatePlotGraph(currentGraph); view.plotManipulationPanel.IsEnabled = true; if (e.PlotPointCount > PointAnimationThreshold) { view.plotManipulationPanel.SetAnimationCheckbox(false); PlotPointViewRenderer.AnimationEnabled = false; } manipulationController.StopSort(); }
internal void view_onResetGraph(object sender, NewPlotEventArgs e) { this.creationController.ResetGraph(e); manipulationController.StopSort(); }
void plotCreationPanel_onResetGraph(object sender, NewPlotEventArgs e) { e.PlotDimensions = this.PlotDimensions; if (this.onResetGraph != null) this.onResetGraph(this, e); }
public void ResetGraph(NewPlotEventArgs graphData) { double aspectRatio = graphData.PlotDimensions.Width / graphData.PlotDimensions.Height; this.layoutNewGraph(currentGraph, graphData.InitialLayout, aspectRatio); }