public override object Clone()
        {
            LogarithmicAxisRescaleConditions result = new LogarithmicAxisRescaleConditions();

            result.CopyFrom(this);
            return(result);
        }
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                LogarithmicAxisRescaleConditions s = null != o ? (LogarithmicAxisRescaleConditions)o : new LogarithmicAxisRescaleConditions();

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

                return(s);
            }
 public LogarithmicAxisRescaleController(LogarithmicAxisRescaleConditions doc, NumericalScale ax)
   : base(doc,ax)
 {
 }
 public override  object Clone()
 {
   LogarithmicAxisRescaleConditions result = new LogarithmicAxisRescaleConditions();
   result.CopyFrom(this);
   return result;
 }
Beispiel #5
0
      public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
      {
        
        Log10Scale s = null!=o ? (Log10Scale)o : new Log10Scale();

        s._log10Org = (double)info.GetDouble("Log10Org");
        s._log10End = (double)info.GetDouble("Log10End");

        s._decadesPerMajorTick = (int)info.GetInt32("DecadesPerMajor");

        bool AxisOrgFixed = (bool)info.GetBoolean("OrgFixed");
        bool AxisEndFixed = (bool)info.GetBoolean("EndFixed");

        s._dataBounds = (PositiveFiniteNumericalBoundaries)info.GetValue("Bounds",typeof(PositiveFiniteNumericalBoundaries));
    
        s._dataBounds.BoundaryChanged += new BoundaryChangedHandler(s.OnBoundariesChanged);


        s._rescaling = new LogarithmicAxisRescaleConditions();
        s._rescaling.SetOrgAndEnd(AxisOrgFixed ? BoundaryRescaling.Fixed : BoundaryRescaling.Auto, s.Org, AxisEndFixed ? BoundaryRescaling.Fixed:BoundaryRescaling.Auto, s.End);

        LogarithmicAxisRescaleConditions rescaling = new LogarithmicAxisRescaleConditions();
        rescaling.SetOrgAndEnd(AxisOrgFixed ? BoundaryRescaling.Fixed : BoundaryRescaling.Auto, s.Org, AxisEndFixed ? BoundaryRescaling.Fixed:BoundaryRescaling.Auto, s.End);
        s._rescaling = rescaling;

        return s;
      }
Beispiel #6
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() : (NumericalBoundaries)from._dataBounds.Clone();
      _dataBounds.BoundaryChanged += new BoundaryChangedHandler(this.OnBoundariesChanged);
      this._decadesPerMajorTick = from._decadesPerMajorTick;
      this._log10End = from._log10End;
      this._log10Org = from._log10Org;

      this._rescaling = null==from.Rescaling ? new LogarithmicAxisRescaleConditions() : (LogarithmicAxisRescaleConditions)from.Rescaling.Clone();

    }
            public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
            {
                LogarithmicAxisRescaleConditions s = (LogarithmicAxisRescaleConditions)obj;

                info.AddBaseValueEmbedded(s, s.GetType().BaseType);
            }