コード例 #1
0
ファイル: DateTimeScale.cs プロジェクト: olesar/Altaxo
 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"));
     }
 }
コード例 #2
0
ファイル: DateTimeScale.cs プロジェクト: olesar/Altaxo
 public DateTimeScale()
 {
     _dataBounds = new FiniteDateTimeBoundaries()
     {
         ParentObject = this
     };
     _rescaling = new DateTimeScaleRescaleConditions()
     {
         ParentObject = this
     };
     _tickSpacing = new Ticks.DateTimeTickSpacing()
     {
         ParentObject = this
     };
     UpdateTicksAndOrgEndUsingRescalingObject();
 }
コード例 #3
0
 public void ProcessDataBounds(DateTime xorg, DateTime xend, DateTimeScaleRescaleConditions rescaling)
 {
     rescaling.OnDataBoundsChanged(xorg, xend);
     ProcessDataBounds(rescaling.ResultingOrg, rescaling.IsResultingOrgFixed, rescaling.ResultingEnd, rescaling.IsResultingEndFixed);
 }
コード例 #4
0
 protected void InternalSetRescaling(DateTimeScaleRescaleConditions rescaling)
 {
     _rescaling = rescaling;
 }
コード例 #5
0
ファイル: DateTimeScale.cs プロジェクト: Altaxo/Altaxo
		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");
		}
コード例 #6
0
ファイル: DateTimeScale.cs プロジェクト: Altaxo/Altaxo
		public DateTimeScale()
		{
			_dataBounds = new FiniteDateTimeBoundaries() { ParentObject = this };
			_rescaling = new DateTimeScaleRescaleConditions() { ParentObject = this };
			_tickSpacing = new Ticks.DateTimeTickSpacing() { ParentObject = this };
			UpdateTicksAndOrgEndUsingRescalingObject();
		}
コード例 #7
0
ファイル: DateTimeScale.cs プロジェクト: Altaxo/Altaxo
		public void ProcessDataBounds(DateTime xorg, DateTime xend, DateTimeScaleRescaleConditions rescaling)
		{
			rescaling.OnDataBoundsChanged(xorg, xend);
			ProcessDataBounds(rescaling.ResultingOrg, rescaling.IsResultingOrgFixed, rescaling.ResultingEnd, rescaling.IsResultingEndFixed);
		}
コード例 #8
0
ファイル: DateTimeScale.cs プロジェクト: Altaxo/Altaxo
		protected void InternalSetRescaling(DateTimeScaleRescaleConditions rescaling)
		{
			this._rescaling = rescaling;
		}