protected internal YLevelElement(PlotPane host, TimeSeries.YLevel level, float minScale, float maxScale) : base(host) { m_Level = level; // m_Style = new Style(null, getBaseStyle()); m_ScaleMin = minScale; m_ScaleMax = maxScale; computeCoords(); this.Region = new Rectangle(0, m_Y-2, host.Width, m_Y+2); }
protected TimeSeries(string name, int order, TimeSeries parent = null) { if (name.IsNullOrWhiteSpace()) throw new WFormsException(StringConsts.ARGUMENT_ERROR+"TimeSeries.ctor(name==null)"); m_Name = name; m_Order = order; if (parent!=null) { m_Parent.m_Children.RegisterOrReplace( this ); m_Parent = parent; } }
protected TimeSeries(string name, int order, TimeSeries parent = null) : base(name, order, parent) { }
/// <summary> /// Override to build elements that render the data by adding drawable elements to the chart. /// Returns how many samples could fit /// </summary> public abstract int BuildElements(TimeSeriesChart chart, PlotPane pane, TimeSeries series, int maxSampleWidth);
protected override void Destructor() { if (m_Parent!=null) { m_Parent.m_Children.Unregister( this ); m_Parent = null; } }
public CandleTimeSeries(string name, int order, TimeSeries parent = null) : base(name, order, parent) { }