using System; using System.Collections.Generic; using System.Drawing; namespace DelftTools.Controls.Swf.Charting { /// /// Adapter of TChart series /// public interface IChartSeries { /// /// The title of the series /// string Title { get; set; } /// /// Color for this series /// Color Color { get; set; } /// /// Visibility of this series /// bool Visible { get; set; } /// /// Chart that this series belongs to /// IChart Chart { get; set; } /// /// Show the object in a legend /// bool ShowInLegend { get; set; } /// /// Default null value /// double DefaultNullValue { get; set; } /// /// Vertical axis that this series uses for displaying its values /// VerticalAxis VertAxis { get; set; } /// /// Show the series be updated? /// bool RefreshRequired { get; } /// /// Data source containing the series data /// object DataSource { get; set; } /// /// DataMember for horizontal axis /// string XValuesDataMember { get; set; } /// /// DataMember for vertical axis /// string YValuesDataMember { get; set; } /// /// Values that should not be rendered /// IList NoDataValues { get; set; } /// /// Should the series wait for the chart view timer to handle updates? /// True enables asynchronous timer based updates. False update immediately (slow) /// bool UpdateASynchronously { get; set; } /// /// Used to identify the ChartSeries. /// object Tag { get; set; } /// /// Adds a value to the series /// void Add(double? x, double? y); /// /// Adds a value to the series /// void Add(DateTime dateTime, double value); /// /// Add values of and to the series /// /// Values for the x axis /// Values for the y axis void Add(double?[] xValues, double?[] yValues); /// /// Clear data of the series /// void Clear(); /// /// Refreshes data used in the chart. /// void CheckDataSource(); /// /// Updates the series /// void Refresh(); /// /// Gives the x value for the provided (screen position) /// /// The X screen position /// Associated x value for the provided double XScreenToValue(int x); } }