/// <summary> /// Ctor. /// With explicit offset. /// </summary> /// <param name="source">The source <see cref="ISeriesItem"/>.</param> /// <param name="xo"></param> public ItemStateDependentCore(ISeriesItem source, double xo) { if (source == null) { throw new ArgumentNullException(nameof(source)); } Source = source; XOffset = xo; }
/// <summary> /// Ctor. /// </summary> /// <param name="wrap">Wrap item.</param> /// <param name="yv">Y value.</param> /// <param name="ch">Channel number.</param> public ItemStateValueWrapper(ISeriesItem wrap, double yv, int ch) { if (wrap == null) { throw new ArgumentNullException(nameof(wrap)); } Original = wrap; Value = yv; Channel = ch; }
/// <summary> /// Ctor. /// </summary> /// <param name="wrap">Wrap item.</param> /// <param name="isis">Channel details. SHOULD be <see cref="ItemStateValueWrapper"/> et al. THIS takes ownership.</param> public ItemStateMultiChannelWrapper(ISeriesItem wrap, ISeriesItemValue[] isis) { if (wrap == null) { throw new ArgumentNullException(nameof(wrap)); } if (isis == null) { throw new ArgumentNullException(nameof(isis)); } Source = wrap; YValues = isis; }
internal SeriesItemState(ISeriesItem isi, ISeriesItemValueDouble isivd, Point loc, Point dir, object cv) : base(isi, isivd, loc.X, loc.Y, null) { Direction = dir; CustomValue = cv; }
/// <summary> /// Ctor. /// </summary> /// <param name="wrap">Wrap item.</param> /// <param name="yv">Y value.</param> /// <param name="cv">Custom value.</param> /// <param name="ch">Channel number.</param> public ItemStateValueCustomWrapper(ISeriesItem wrap, double yv, object cv, int ch) : base(wrap, yv, ch) { CustomValue = cv; }
/// <summary> /// Ctor. /// </summary> /// <param name="source">Source item.</param> /// <param name="isivd">The value item.</param> /// <param name="xo">The x-offset.</param> /// <param name="yv">y-value item.</param> /// <param name="ele">Generated element.</param> public ItemStateDependent(ISeriesItem source, ISeriesItemValueDouble isivd, double xo, double yv, EL ele) : base(source, xo) { Value = yv; ValueSource = isivd; Element = ele; }
/// <summary> /// Ctor. /// Offset initialized from <see cref="Source"/>. /// </summary> /// <param name="source">The source <see cref="ISeriesItem"/>.</param> public ItemStateDependentCore(ISeriesItem source) : this(source, source.XOffset) { }