/// <summary> /// Creates a default logarithmic axis with org=1 and end=10. /// </summary> public Log10Scale() { _rescaling = new LogarithmicScaleRescaleConditions() { ParentObject = this }; _dataBounds = new PositiveFiniteNumericalBoundaries() { ParentObject = this }; }
/// <summary> /// Creates a default logarithmic axis with org=1 and end=10. /// </summary> public Log10Scale() { _dataBounds = new PositiveFiniteNumericalBoundaries() { ParentObject = this }; _rescaling = new LogarithmicScaleRescaleConditions() { ParentObject = this }; _tickSpacing = new Ticks.Log10TickSpacing() { ParentObject = this }; UpdateTicksAndOrgEndUsingRescalingObject(); }
protected override System.Collections.Generic.IEnumerable <Main.DocumentNodeAndName> GetDocumentNodeChildrenWithName() { if (null != _dataBounds) { yield return(new Main.DocumentNodeAndName(_dataBounds, () => _dataBounds = null, "DataBounds")); } if (null != _rescaling) { yield return(new Main.DocumentNodeAndName(_rescaling, () => _rescaling = null, "Rescaling")); } if (null != _tickSpacing) { yield return(new Main.DocumentNodeAndName(_tickSpacing, () => _tickSpacing = null, "TickSpacing")); } }
/// <summary> /// Copy constructor. /// </summary> /// <param name="from">The axis to copy from.</param> public Log10Scale(Log10Scale from) { IsLinked = from.IsLinked; _dataBounds = null == from._dataBounds ? new PositiveFiniteNumericalBoundaries() { ParentObject = this } : (NumericalBoundaries)from._dataBounds.Clone(); _dataBounds.ParentObject = this; _decadesPerMajorTick = from._decadesPerMajorTick; _log10End = from._log10End; _log10Org = from._log10Org; _rescaling = null == from.Rescaling ? new LogarithmicScaleRescaleConditions() { ParentObject = this } : (LogarithmicScaleRescaleConditions)from.Rescaling.Clone(); _rescaling.ParentObject = this; }