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;
        }
Ejemplo n.º 2
0
 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();
 }
Ejemplo n.º 3
0
 internal void view_onResetGraph(object sender, NewPlotEventArgs e)
 {
     this.creationController.ResetGraph(e);
     manipulationController.StopSort();
 }
Ejemplo n.º 4
0
 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);
 }