Ejemplo n.º 1
0
 protected override 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"));
     }
 }
Ejemplo n.º 2
0
        protected AngularScale(AngularTickSpacing tickSpacing)
        {
            if (null == tickSpacing)
            {
                throw new ArgumentNullException("tickSpacing");
            }

            _cachedAxisSpan      = 2 * Math.PI;
            _cachedOneByAxisSpan = 1 / _cachedAxisSpan;
            _dataBounds          = new Boundaries.DummyNumericalBoundaries()
            {
                ParentObject = this
            };
            _rescaling = new Rescaling.AngularRescaleConditions()
            {
                ParentObject = this
            };
            ChildSetMember(ref _tickSpacing, tickSpacing);
            SetCachedValues();
            UpdateTicksAndOrgEndUsingRescalingObject();
        }
Ejemplo n.º 3
0
		protected override 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");
		}
Ejemplo n.º 4
0
		protected AngularScale(AngularTickSpacing tickSpacing)
		{
			if (null == tickSpacing)
				throw new ArgumentNullException("tickSpacing");

			_cachedAxisSpan = 2 * Math.PI;
			_cachedOneByAxisSpan = 1 / _cachedAxisSpan;
			_dataBounds = new Boundaries.DummyNumericalBoundaries() { ParentObject = this };
			_rescaling = new Rescaling.AngularRescaleConditions() { ParentObject = this };
			ChildSetMember(ref _tickSpacing, tickSpacing);
			SetCachedValues();
			UpdateTicksAndOrgEndUsingRescalingObject();
		}