public void DrawLastMovement() { if (EnableLastValue.Checked) { ChartState.DrawLastMovement(); } }
private void OnEnableLastMouseMoveCheckStateChange(object sender, EventArgs e) { if (!EnableLastValue.Checked) { ChartState.ClearLastValue(); } }
public AccelCharts( RawAcceleration form, ChartXY sensitivityChart, ChartXY velocityChart, ChartXY gainChart, ToolStripMenuItem enableVelocityAndGain, ToolStripMenuItem enableLastMouseMove, Button writeButton, AccelCalculator accelCalculator) { var estimated = new EstimatedPoints(); var estimatedX = new EstimatedPoints(); var estimatedY = new EstimatedPoints(); SetupCharts(sensitivityChart, velocityChart, gainChart, estimated, estimatedX, estimatedY); var accelData = new AccelData(estimated, estimatedX, estimatedY); ChartStateManager = new ChartStateManager(sensitivityChart, velocityChart, gainChart, accelData, accelCalculator); ContainingForm = form; EnableVelocityAndGain = enableVelocityAndGain; EnableLastValue = enableLastMouseMove; WriteButton = writeButton; EnableVelocityAndGain.Click += new System.EventHandler(OnEnableClick); EnableVelocityAndGain.CheckedChanged += new System.EventHandler(OnEnableVelocityGainCheckStateChange); EnableLastValue.CheckedChanged += new System.EventHandler(OnEnableLastMouseMoveCheckStateChange); ChartState = ChartStateManager.InitialState(); ChartState.Activate(); HideVelocityAndGain(); }
private void HideVelocityAndGain() { ChartState.HideVelocityAndGain(); }
private void ShowVelocityAndGain() { ChartState.ShowVelocityAndGain(); }
public void SetLogarithmic(bool x, bool y) { ChartState.SetLogarithmic(x, y); }
public void Calculate(ManagedAccel accel, DriverSettings settings) { ChartState.SetUpCalculate(settings); ChartState.Calculate(accel, settings); }
public void Redraw() { ChartState.Redraw(); }
public void ShowActive(DriverSettings driverSettings) { ChartState = ChartStateManager.DetermineState(driverSettings); ChartState.Activate(); Bind(); }
public void Bind() { ChartState.Bind(); }
public void MakeDots(double x, double y, double timeInMs) { ChartState.MakeDots(x, y, timeInMs); }
public void MakeDots(int x, int y, double timeInMs) { ChartState.MakeDots(x, y, timeInMs); }
private void OnEnableStreamingModeCheckStateChange(object sender, EventArgs e) { ChartState.SetStreaming(EnableStreamingMode.Checked); }