public TextScale() { _dataBounds = new TextBoundaries(); _dataBounds.BoundaryChanged += EhBoundariesChanged; _rescaling = new NumericAxisRescaleConditions(); }
public TextScale() { _dataBounds = new TextBoundaries { ParentObject = this }; _rescaling = new LinearScaleRescaleConditions(); }
protected void InternalSetDataBounds(TextBoundaries bounds) { if (_dataBounds != null) { _dataBounds = null; } _dataBounds = bounds; _dataBounds.ParentObject = this; }
void CopyFrom(TextScale from) { _dataBounds = (TextBoundaries)from._dataBounds.Clone(); _dataBounds.BoundaryChanged += EhBoundariesChanged; _rescaling = from._rescaling == null ? null : (NumericAxisRescaleConditions)from._rescaling.Clone(); _cachedAxisOrg = from._cachedAxisOrg; _cachedAxisEnd = from._cachedAxisEnd; _cachedAxisSpan = from._cachedAxisSpan; _cachedOneByAxisSpan = from._cachedOneByAxisSpan; }
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")); } }
private void CopyFrom(TextScale from) { if (object.ReferenceEquals(this, from)) { return; } _dataBounds = (TextBoundaries)from._dataBounds.Clone(); _dataBounds.ParentObject = this; _rescaling = from._rescaling == null ? null : (NumericScaleRescaleConditions)from._rescaling.Clone(); _rescaling.ParentObject = this; _cachedAxisOrg = from._cachedAxisOrg; _cachedAxisEnd = from._cachedAxisEnd; _cachedAxisSpan = from._cachedAxisSpan; _cachedOneByAxisSpan = from._cachedOneByAxisSpan; }