コード例 #1
0
        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;
        }
コード例 #2
0
 public TransformedScale(Altaxo.Graph.Scales.Scale scale, double offset)
 {
     _originalScale = scale;
     _offset        = offset;
 }
コード例 #3
0
 public ScaleInstanceChangedEventArgs(Altaxo.Graph.Scales.Scale oldScale, Altaxo.Graph.Scales.Scale newScale)
 {
     _oldScale = oldScale;
     _newScale = newScale;
 }
コード例 #4
0
        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);
            }
        }