//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 System.Collections.Generic; using LiveCharts.Charts; using LiveCharts.Definitions.Series; using LiveCharts.Dtos; using LiveCharts.Events; namespace LiveCharts.Definitions.Charts { /// /// /// public interface IChartView { /// /// Gets the model. /// /// /// The model. /// ChartCore Model { get; } /// /// Occurs when [data click]. /// event DataClickHandler DataClick; /// /// Occurs when [data hover] /// event DataHoverHandler DataHover; /// /// Gets or sets the series. /// /// /// The series. /// SeriesCollection Series { get; set; } /// /// Gets the actual series. /// /// /// The actual series. /// IEnumerable ActualSeries { get; } /// /// Gets or sets the tooltip timeout. /// /// /// The tooltip timeout. /// TimeSpan TooltipTimeout { get; set; } /// /// Gets or sets the zoom. /// /// /// The zoom. /// ZoomingOptions Zoom { get; set; } /// /// Gets or sets the zoom. /// /// /// The zoom. /// PanningOptions Pan { get; set; } /// /// Gets or sets the zooming speed. /// /// /// The zooming speed. /// double ZoomingSpeed { get; set; } /// /// Gets or sets the legend location. /// /// /// The legend location. /// LegendLocation LegendLocation { get; set; } /// /// Gets or sets a value indicating whether [disable animations]. /// /// /// true if [disable animations]; otherwise, false. /// bool DisableAnimations { get; set; } /// /// Gets or sets the animations speed. /// /// /// The animations speed. /// TimeSpan AnimationsSpeed { get; set; } /// /// Gets or sets the state of the updater. /// /// /// The state of the updater. /// UpdaterState UpdaterState { get; set; } /// /// Gets a value indicating whether this instance has tooltip. /// /// /// true if this instance has tooltip; otherwise, false. /// bool HasTooltip { get; } /// /// Gets a value indicating whether this instance has data click event attached. /// /// /// true if this instance has data click event attached; otherwise, false. /// bool HasDataClickEventAttached { get; } /// /// Gets a value indicating whether this instance has data hover event attached. /// /// /// true if this instance has data hover event attached; otherwise, false. /// bool HasDataHoverEventAttached { get; } /// /// Gets a value indicating whether this is hoverable. /// /// /// true if hoverable; otherwise, false. /// bool Hoverable { get; } /// /// Gets a value indicating whether this instance is control loaded. /// /// /// true if this instance is control loaded; otherwise, false. /// bool IsControlLoaded { get; } /// /// Gets a value indicating whether this instance is in design mode. /// /// /// true if this instance is in design mode; otherwise, false. /// bool IsInDesignMode { get; } /// /// Sets the draw margin top. /// /// The value. void SetDrawMarginTop(double value); /// /// Sets the draw margin left. /// /// The value. void SetDrawMarginLeft(double value); /// /// Sets the height of the draw margin. /// /// The value. void SetDrawMarginHeight(double value); /// /// Sets the width of the draw margin. /// /// The value. void SetDrawMarginWidth(double value); /// /// Adds to view. /// /// The element. void AddToView(object element); /// /// Adds to draw margin. /// /// The element. void AddToDrawMargin(object element); /// /// Removes from view. /// /// The element. void RemoveFromView(object element); /// /// Removes from draw margin. /// /// The element. void RemoveFromDrawMargin(object element); /// /// Ensures the element belongs to current view. /// /// The element. void EnsureElementBelongsToCurrentView(object element); /// /// Ensures the element belongs to current draw margin. /// /// The element. void EnsureElementBelongsToCurrentDrawMargin(object element); /// /// Hides the tooltip. /// void HideTooltip(); /// /// Shows the legend. /// /// At. void ShowLegend(CorePoint at); /// /// Hides the legend. /// void HideLegend(); /// /// Loads the legend. /// /// CoreSize LoadLegend(); /// /// Maps the x axes. /// /// The chart. /// List MapXAxes(ChartCore chart); /// /// Maps the y axes. /// /// The chart. /// List MapYAxes(ChartCore chart); } }