/// <summary> /// 构造函数 /// </summary> /// <param name="id">集合ID。</param> /// <param name="items">数据列表。</param> /// <param name="pens">画笔数组。</param> /// <param name="settings">时刻,时间段,交易数设置。</param> public SymmetricMultipleChartItemCollection(CollectionId id, IEnumerable <MultipleChartItem> items, IPen[] pens, SymmetricCommonSettings settings) : base(id, items, pens) { sValue = valueNA; FixedVisibleCount = settings.TradingCount; IsScalesOptimized = false; Settings = settings; }
/// <summary> /// 构造函数。 /// </summary> /// <param name="id">集合ID。</param> /// <param name="items">数据集合列表。</param> /// <param name="penRaise">上升画笔。<see cref="DrawingObjectFactory.CreatePen(Brush, double)"></see></param> /// <param name="penFall">下降画笔。<see cref="DrawingObjectFactory.CreatePen(Brush, double)"></see></param> /// <param name="settings">时刻,时间段,交易数设置。</param> public SymmetricVolumnItemCollection(CollectionId id, IEnumerable <VolumnItem> items, IPen penRaise, IPen penFall, SymmetricCommonSettings settings) : base(id, items, penRaise, penFall, false) { FixedVisibleCount = settings.TradingCount; VolumnItemStyle = VolumnItemStyle.Slim; IsScalesOptimized = false; Settings = settings; }
/// <summary> /// 构造函数。 /// </summary> /// <param name="id">集合ID。</param> /// <param name="items">数据集合列表。</param> /// <param name="pen">画笔</param> /// <param name="fill">填充颜色,暂时不用</param> /// <param name="settings">时刻,时间段,交易数设置。</param> public SymmetricChartItemCollection(CollectionId id, IEnumerable <ChartItem> items, IPen pen, Brush fill, SymmetricCommonSettings settings) : base(id, items, pen, fill) { sValue = valueNA; FixedVisibleCount = settings.TradingCount; IsScalesOptimized = false; StartDate = DateTime.Now; Settings = settings; }
/// <summary> /// <see cref="ChartItemCollection.CopyFromMaster"/> /// </summary> protected override void CopyFromMaster() { base.CopyFromMaster(); var sColl = masterCollection as SymmetricVolumnItemCollection; if (sColl != null) { StartDate = sColl.StartDate; Settings = sColl.Settings; } }