Exemplo n.º 1
0
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                LogarithmicScaleRescaleConditions s = null != o ? (LogarithmicScaleRescaleConditions)o : new LogarithmicScaleRescaleConditions();

                info.GetBaseValueEmbedded(s, "AltaxoBase,Altaxo.Graph.Scales.Rescaling.NumericAxisRescaleConditions,1", parent);

                return(s);
            }
Exemplo n.º 2
0
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                LogarithmicScaleRescaleConditions s = null != o ? (LogarithmicScaleRescaleConditions)o : new LogarithmicScaleRescaleConditions();

                info.GetBaseValueEmbedded(s, s.GetType().BaseType, parent);

                return(s);
            }
Exemplo n.º 3
0
 public LogarithmicScaleRescaleConditions(LogarithmicScaleRescaleConditions from)
     : base(from) // all is done here, since CopyFrom is virtual!
 {
 }
Exemplo n.º 4
0
		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");
		}
Exemplo n.º 5
0
		/// <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();
		}
		public LogarithmicScaleRescaleConditions(LogarithmicScaleRescaleConditions from)
			: base(from) // all is done here, since CopyFrom is virtual!
		{
		}
Exemplo n.º 7
0
		/// <summary>
		/// Copy constructor.
		/// </summary>
		/// <param name="from">The axis to copy from.</param>
		public Log10Scale(Log10Scale from)
		{
			this.IsLinked = from.IsLinked;

			this._dataBounds = null == from._dataBounds ? new PositiveFiniteNumericalBoundaries() { ParentObject = this } : (NumericalBoundaries)from._dataBounds.Clone();
			this._dataBounds.ParentObject = this;

			this._decadesPerMajorTick = from._decadesPerMajorTick;
			this._log10End = from._log10End;
			this._log10Org = from._log10Org;

			this._rescaling = null == from.Rescaling ? new LogarithmicScaleRescaleConditions() { ParentObject = this } : (LogarithmicScaleRescaleConditions)from.Rescaling.Clone();
			this._rescaling.ParentObject = this;
		}
Exemplo n.º 8
0
		/// <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 };
		}