//The MIT License(MIT) //Copyright(c) 2016 Alberto Rodriguez & LiveCharts Contributors //Permission is hereby granted, free of charge, to any person obtaining a copy //of this software and associated documentation files (the "Software"), to deal //in the Software without restriction, including without limitation the rights //to use, copy, modify, merge, publish, distribute, sublicense, and/or sell //copies of the Software, and to permit persons to whom the Software is //furnished to do so, subject to the following conditions: //The above copyright notice and this permission notice shall be included in all //copies or substantial portions of the Software. //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR //IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, //FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE //AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER //LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, //OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE //SOFTWARE. using System; using LiveCharts.Definitions.Points; namespace LiveCharts.Definitions.Series { /// /// /// public interface ISeriesView { /// /// Gets or sets the model. /// /// /// The model. /// SeriesAlgorithm Model { get; set; } /// /// Gets or sets the values. /// /// /// The values. /// IChartValues Values { get; set; } /// /// Gets a value indicating whether [data labels]. /// /// /// true if [data labels]; otherwise, false. /// bool DataLabels { get; } /// /// Gets or sets the scales x at. /// /// /// The scales x at. /// int ScalesXAt { get; set; } /// /// Gets or sets the scales y at. /// /// /// The scales y at. /// int ScalesYAt { get; set; } /// /// Gets or sets the configuration. /// /// /// The configuration. /// object Configuration { get; set; } /// /// Gets a value indicating whether this instance is series visible. /// /// /// true if this instance is series visible; otherwise, false. /// bool IsSeriesVisible { get; } /// /// Gets or sets the label point. /// /// /// The label point. /// Func LabelPoint { get; set; } /// /// Gets the actual values. /// /// /// The actual values. /// IChartValues ActualValues { get; } /// /// Gets the title. /// /// /// The title. /// string Title { get; } /// /// Gets a value indicating whether this instance is first draw. /// /// /// true if this instance is first draw; otherwise, false. /// bool IsFirstDraw { get; } /// /// Gets the point view. /// /// The point. /// The label. /// IChartPointView GetPointView(ChartPoint point, string label); /// /// Called when [series update start]. /// void OnSeriesUpdateStart(); /// /// Erases the specified remove from view. /// /// if set to true [remove from view]. void Erase(bool removeFromView); /// /// Called when [series updated finish]. /// void OnSeriesUpdatedFinish(); /// /// Initializes the colors. /// void InitializeColors(); /// /// Draws the specialized elements. /// void DrawSpecializedElements(); /// /// Places the specialized elements. /// void PlaceSpecializedElements(); /// /// Gets the label point formatter. /// /// Func GetLabelPointFormatter(); } }