//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.Charts;
using LiveCharts.Dtos;
namespace LiveCharts.Definitions.Charts
{
///
///
///
public interface IAxisView
{
///
/// Gets or sets the model.
///
///
/// The model.
///
AxisCore Model { get; set; }
///
/// Gets or sets a value indicating whether [disable animations].
///
///
/// true if [disable animations]; otherwise, false.
///
bool DisableAnimations { get; set; }
///
/// Gets or sets a value indicating whether [show labels].
///
///
/// true if [show labels]; otherwise, false.
///
bool ShowLabels { get; set; }
///
/// Gets or sets the maximum value.
///
///
/// The maximum value.
///
double MaxValue { get; set; }
///
/// Gets or sets the minimum value.
///
///
/// The minimum value.
///
double MinValue { get; set; }
///
/// Gets or sets the minimum range.
///
///
/// The minimum range.
///
double MinRange { get; set; }
///
/// Gets or sets the maximum range.
///
///
/// The maximum range.
///
double MaxRange { get; set; }
///
/// Gets or sets the labels rotation.
///
///
/// The labels rotation.
///
double LabelsRotation { get; set; }
///
/// Gets or sets a value indicating whether this instance is merged.
///
///
/// true if this instance is merged; otherwise, false.
///
bool IsMerged { get; set; }
///
/// Gets or sets the bar unit.
///
///
/// The bar unit.
///
double Unit { get; set; }
///
/// Gets or sets the bar unit.
///
///
/// The bar unit.
///
[Obsolete]
double BarUnit { get; set; }
///
/// Gets the previous maximum value.
///
///
/// The previous maximum value.
///
double PreviousMaxValue { get; }
///
/// Gets the previous minimum value.
///
///
/// The previous minimum value.
///
double PreviousMinValue { get; }
///
/// Gets the axis orientation.
///
///
/// The axis orientation.
///
AxisOrientation AxisOrientation { get; }
///
/// Updates the title.
///
/// The chart.
/// The rotation angle.
///
CoreSize UpdateTitle(ChartCore chart, double rotationAngle = 0);
///
/// Sets the title top.
///
/// The value.
void SetTitleTop(double value);
///
/// Sets the title left.
///
/// The value.
void SetTitleLeft(double value);
///
/// Gets the title left.
///
///
double GetTitleLeft();
///
/// Gets the tile top.
///
///
double GetTileTop();
///
/// Gets the size of the label.
///
///
CoreSize GetLabelSize();
///
/// Ases the core element.
///
/// The chart.
/// The source.
///
AxisCore AsCoreElement(ChartCore chart, AxisOrientation source);
///
/// Renders the separator.
///
/// The model.
/// The chart.
void RenderSeparator(SeparatorElementCore model, ChartCore chart);
///
/// Cleans this instance.
///
void Clean();
///
/// Sets the range.
///
/// The minimum.
/// The maximum.
void SetRange(double min, double max);
}
}