예제 #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"));
     }
 }
예제 #2
0
 /// <summary>
 /// Creates a default linear axis with org=0 and end=1.
 /// </summary>
 public InverseScale()
 {
     _dataBounds = new InverseNumericalBoundaries()
     {
         ParentObject = this
     };
     _rescaling = new InverseScaleRescaleConditions()
     {
         ParentObject = this
     };
     _tickSpacing = new Ticks.InverseTickSpacing()
     {
         ParentObject = this
     };
     UpdateTicksAndOrgEndUsingRescalingObject();
 }