public override void Add(Main.SelfAccumulateableEventArgs e) { var other = e as ScaleInstanceChangedEventArgs; if (null == other) { throw new ArgumentException("Expect event args of type: " + typeof(ScaleInstanceChangedEventArgs).ToString()); } if (ScaleIndex != other.ScaleIndex) { throw new InvalidProgramException("This should not happen, because the overrides for GetHashCode and Equals should prevent this."); } _newScale = other._newScale; }
public TransformedScale(Altaxo.Graph.Scales.Scale scale, double offset) { _originalScale = scale; _offset = offset; }
public ScaleInstanceChangedEventArgs(Altaxo.Graph.Scales.Scale oldScale, Altaxo.Graph.Scales.Scale newScale) { _oldScale = oldScale; _newScale = newScale; }
public override void FinalProcessScaleBoundaries(Altaxo.Data.AltaxoVariant org, Altaxo.Data.AltaxoVariant end, Altaxo.Graph.Scales.Scale scale) { _org = org; _end = end; try { if (_showRatioEndOrg) { _span = end / org; } else { _span = end - org; } } catch (Exception) { _span = new Data.AltaxoVariant(string.Empty); } }