mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-27 03:33:25 +08:00
项目结构调整
This commit is contained in:
@@ -0,0 +1,91 @@
|
||||
//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.
|
||||
|
||||
namespace LiveCharts.Definitions.Charts
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public interface IAxisSectionView
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the model.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The model.
|
||||
/// </value>
|
||||
AxisSectionCore Model { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the value.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The value.
|
||||
/// </value>
|
||||
double Value { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the width of the section.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The width of the section.
|
||||
/// </value>
|
||||
double SectionWidth { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether this <see cref="IAxisSectionView"/> is draggable.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// <c>true</c> if draggable; otherwise, <c>false</c>.
|
||||
/// </value>
|
||||
bool Draggable { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether the section is animated
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// <c>true</c> if [disable animations]; otherwise, <c>false</c>.
|
||||
/// </value>
|
||||
bool DisableAnimations { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether the section should display a label that displays its current value.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// <c>true</c> if [data label]; otherwise, <c>false</c>.
|
||||
/// </value>
|
||||
bool DataLabel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Draws the or move.
|
||||
/// </summary>
|
||||
/// <param name="source">The source.</param>
|
||||
/// <param name="axis">The axis.</param>
|
||||
void DrawOrMove(AxisOrientation source, int axis);
|
||||
/// <summary>
|
||||
/// Removes this instance.
|
||||
/// </summary>
|
||||
void Remove();
|
||||
/// <summary>
|
||||
/// Ases the core element.
|
||||
/// </summary>
|
||||
/// <param name="axis">The axis.</param>
|
||||
/// <param name="source">The source.</param>
|
||||
/// <returns></returns>
|
||||
AxisSectionCore AsCoreElement(AxisCore axis, AxisOrientation source);
|
||||
}
|
||||
}
|
||||
190
Others/Live-Charts-master/Core/Definitions/Charts/IAxisView.cs
Normal file
190
Others/Live-Charts-master/Core/Definitions/Charts/IAxisView.cs
Normal file
@@ -0,0 +1,190 @@
|
||||
//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
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public interface IAxisView
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the model.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The model.
|
||||
/// </value>
|
||||
AxisCore Model { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether [disable animations].
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// <c>true</c> if [disable animations]; otherwise, <c>false</c>.
|
||||
/// </value>
|
||||
bool DisableAnimations { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether [show labels].
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// <c>true</c> if [show labels]; otherwise, <c>false</c>.
|
||||
/// </value>
|
||||
bool ShowLabels { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the maximum value.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The maximum value.
|
||||
/// </value>
|
||||
double MaxValue { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the minimum value.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The minimum value.
|
||||
/// </value>
|
||||
double MinValue { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the minimum range.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The minimum range.
|
||||
/// </value>
|
||||
double MinRange { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the maximum range.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The maximum range.
|
||||
/// </value>
|
||||
double MaxRange { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the labels rotation.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The labels rotation.
|
||||
/// </value>
|
||||
double LabelsRotation { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether this instance is merged.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// <c>true</c> if this instance is merged; otherwise, <c>false</c>.
|
||||
/// </value>
|
||||
bool IsMerged { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the bar unit.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The bar unit.
|
||||
/// </value>
|
||||
double Unit { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the bar unit.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The bar unit.
|
||||
/// </value>
|
||||
[Obsolete]
|
||||
double BarUnit { get; set; }
|
||||
/// <summary>
|
||||
/// Gets the previous maximum value.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The previous maximum value.
|
||||
/// </value>
|
||||
double PreviousMaxValue { get; }
|
||||
/// <summary>
|
||||
/// Gets the previous minimum value.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The previous minimum value.
|
||||
/// </value>
|
||||
double PreviousMinValue { get; }
|
||||
/// <summary>
|
||||
/// Gets the axis orientation.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The axis orientation.
|
||||
/// </value>
|
||||
AxisOrientation AxisOrientation { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Updates the title.
|
||||
/// </summary>
|
||||
/// <param name="chart">The chart.</param>
|
||||
/// <param name="rotationAngle">The rotation angle.</param>
|
||||
/// <returns></returns>
|
||||
CoreSize UpdateTitle(ChartCore chart, double rotationAngle = 0);
|
||||
/// <summary>
|
||||
/// Sets the title top.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
void SetTitleTop(double value);
|
||||
/// <summary>
|
||||
/// Sets the title left.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
void SetTitleLeft(double value);
|
||||
/// <summary>
|
||||
/// Gets the title left.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
double GetTitleLeft();
|
||||
/// <summary>
|
||||
/// Gets the tile top.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
double GetTileTop();
|
||||
/// <summary>
|
||||
/// Gets the size of the label.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
CoreSize GetLabelSize();
|
||||
/// <summary>
|
||||
/// Ases the core element.
|
||||
/// </summary>
|
||||
/// <param name="chart">The chart.</param>
|
||||
/// <param name="source">The source.</param>
|
||||
/// <returns></returns>
|
||||
AxisCore AsCoreElement(ChartCore chart, AxisOrientation source);
|
||||
/// <summary>
|
||||
/// Renders the separator.
|
||||
/// </summary>
|
||||
/// <param name="model">The model.</param>
|
||||
/// <param name="chart">The chart.</param>
|
||||
void RenderSeparator(SeparatorElementCore model, ChartCore chart);
|
||||
/// <summary>
|
||||
/// Cleans this instance.
|
||||
/// </summary>
|
||||
void Clean();
|
||||
/// <summary>
|
||||
/// Sets the range.
|
||||
/// </summary>
|
||||
/// <param name="min">The minimum.</param>
|
||||
/// <param name="max">The maximum.</param>
|
||||
void SetRange(double min, double max);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
//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.
|
||||
|
||||
namespace LiveCharts.Definitions.Charts
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <seealso cref="LiveCharts.Definitions.Charts.IChartView" />
|
||||
public interface ICartesianChart : IChartView
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the visual elements.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The visual elements.
|
||||
/// </value>
|
||||
VisualElementsCollection VisualElements { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
//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 LiveCharts.Charts;
|
||||
|
||||
namespace LiveCharts.Definitions.Charts
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public interface ICartesianVisualElement
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the x.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The x.
|
||||
/// </value>
|
||||
double X { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the y.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The y.
|
||||
/// </value>
|
||||
double Y { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the axis x.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The axis x.
|
||||
/// </value>
|
||||
int AxisX { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the axis y.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The axis y.
|
||||
/// </value>
|
||||
int AxisY { get; set; }
|
||||
/// <summary>
|
||||
/// Adds the or move.
|
||||
/// </summary>
|
||||
/// <param name="chart">The chart.</param>
|
||||
void AddOrMove(ChartCore chart);
|
||||
/// <summary>
|
||||
/// Removes the specified chart.
|
||||
/// </summary>
|
||||
/// <param name="chart">The chart.</param>
|
||||
void Remove(ChartCore chart);
|
||||
}
|
||||
}
|
||||
253
Others/Live-Charts-master/Core/Definitions/Charts/IChartView.cs
Normal file
253
Others/Live-Charts-master/Core/Definitions/Charts/IChartView.cs
Normal file
@@ -0,0 +1,253 @@
|
||||
//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
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public interface IChartView
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the model.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The model.
|
||||
/// </value>
|
||||
ChartCore Model { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Occurs when [data click].
|
||||
/// </summary>
|
||||
event DataClickHandler DataClick;
|
||||
|
||||
/// <summary>
|
||||
/// Occurs when [data hover]
|
||||
/// </summary>
|
||||
event DataHoverHandler DataHover;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the series.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The series.
|
||||
/// </value>
|
||||
SeriesCollection Series { get; set; }
|
||||
/// <summary>
|
||||
/// Gets the actual series.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The actual series.
|
||||
/// </value>
|
||||
IEnumerable<ISeriesView> ActualSeries { get; }
|
||||
/// <summary>
|
||||
/// Gets or sets the tooltip timeout.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The tooltip timeout.
|
||||
/// </value>
|
||||
TimeSpan TooltipTimeout { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the zoom.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The zoom.
|
||||
/// </value>
|
||||
ZoomingOptions Zoom { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the zoom.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The zoom.
|
||||
/// </value>
|
||||
PanningOptions Pan { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the zooming speed.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The zooming speed.
|
||||
/// </value>
|
||||
double ZoomingSpeed { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the legend location.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The legend location.
|
||||
/// </value>
|
||||
LegendLocation LegendLocation { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether [disable animations].
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// <c>true</c> if [disable animations]; otherwise, <c>false</c>.
|
||||
/// </value>
|
||||
bool DisableAnimations { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the animations speed.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The animations speed.
|
||||
/// </value>
|
||||
TimeSpan AnimationsSpeed { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the state of the updater.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The state of the updater.
|
||||
/// </value>
|
||||
UpdaterState UpdaterState { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether this instance has tooltip.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// <c>true</c> if this instance has tooltip; otherwise, <c>false</c>.
|
||||
/// </value>
|
||||
bool HasTooltip { get; }
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether this instance has data click event attached.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// <c>true</c> if this instance has data click event attached; otherwise, <c>false</c>.
|
||||
/// </value>
|
||||
bool HasDataClickEventAttached { get; }
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether this instance has data hover event attached.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// <c>true</c> if this instance has data hover event attached; otherwise, <c>false</c>.
|
||||
/// </value>
|
||||
bool HasDataHoverEventAttached { get; }
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether this <see cref="IChartView"/> is hoverable.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// <c>true</c> if hoverable; otherwise, <c>false</c>.
|
||||
/// </value>
|
||||
bool Hoverable { get; }
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether this instance is control loaded.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// <c>true</c> if this instance is control loaded; otherwise, <c>false</c>.
|
||||
/// </value>
|
||||
bool IsControlLoaded { get; }
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether this instance is in design mode.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// <c>true</c> if this instance is in design mode; otherwise, <c>false</c>.
|
||||
/// </value>
|
||||
bool IsInDesignMode { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Sets the draw margin top.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
void SetDrawMarginTop(double value);
|
||||
/// <summary>
|
||||
/// Sets the draw margin left.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
void SetDrawMarginLeft(double value);
|
||||
/// <summary>
|
||||
/// Sets the height of the draw margin.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
void SetDrawMarginHeight(double value);
|
||||
/// <summary>
|
||||
/// Sets the width of the draw margin.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
void SetDrawMarginWidth(double value);
|
||||
|
||||
/// <summary>
|
||||
/// Adds to view.
|
||||
/// </summary>
|
||||
/// <param name="element">The element.</param>
|
||||
void AddToView(object element);
|
||||
/// <summary>
|
||||
/// Adds to draw margin.
|
||||
/// </summary>
|
||||
/// <param name="element">The element.</param>
|
||||
void AddToDrawMargin(object element);
|
||||
/// <summary>
|
||||
/// Removes from view.
|
||||
/// </summary>
|
||||
/// <param name="element">The element.</param>
|
||||
void RemoveFromView(object element);
|
||||
/// <summary>
|
||||
/// Removes from draw margin.
|
||||
/// </summary>
|
||||
/// <param name="element">The element.</param>
|
||||
void RemoveFromDrawMargin(object element);
|
||||
/// <summary>
|
||||
/// Ensures the element belongs to current view.
|
||||
/// </summary>
|
||||
/// <param name="element">The element.</param>
|
||||
void EnsureElementBelongsToCurrentView(object element);
|
||||
/// <summary>
|
||||
/// Ensures the element belongs to current draw margin.
|
||||
/// </summary>
|
||||
/// <param name="element">The element.</param>
|
||||
void EnsureElementBelongsToCurrentDrawMargin(object element);
|
||||
|
||||
/// <summary>
|
||||
/// Hides the tooltip.
|
||||
/// </summary>
|
||||
void HideTooltip();
|
||||
/// <summary>
|
||||
/// Shows the legend.
|
||||
/// </summary>
|
||||
/// <param name="at">At.</param>
|
||||
void ShowLegend(CorePoint at);
|
||||
/// <summary>
|
||||
/// Hides the legend.
|
||||
/// </summary>
|
||||
void HideLegend();
|
||||
|
||||
/// <summary>
|
||||
/// Loads the legend.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
CoreSize LoadLegend();
|
||||
/// <summary>
|
||||
/// Maps the x axes.
|
||||
/// </summary>
|
||||
/// <param name="chart">The chart.</param>
|
||||
/// <returns></returns>
|
||||
List<AxisCore> MapXAxes(ChartCore chart);
|
||||
/// <summary>
|
||||
/// Maps the y axes.
|
||||
/// </summary>
|
||||
/// <param name="chart">The chart.</param>
|
||||
/// <returns></returns>
|
||||
List<AxisCore> MapYAxes(ChartCore chart);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
//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.
|
||||
|
||||
namespace LiveCharts.Definitions.Charts
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <seealso cref="LiveCharts.Definitions.Charts.IAxisView" />
|
||||
public interface ILogarithmicAxisView : IAxisView
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the base.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The base.
|
||||
/// </value>
|
||||
double Base { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
//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.
|
||||
|
||||
namespace LiveCharts.Definitions.Charts
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <seealso cref="LiveCharts.Definitions.Charts.IChartView" />
|
||||
public interface IPieChart : IChartView
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the inner radius.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The inner radius.
|
||||
/// </value>
|
||||
double InnerRadius { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the starting rotation angle.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The starting rotation angle.
|
||||
/// </value>
|
||||
double StartingRotationAngle { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the hover push out.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The hover push out.
|
||||
/// </value>
|
||||
double HoverPushOut { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
//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 LiveCharts.Charts;
|
||||
using LiveCharts.Dtos;
|
||||
|
||||
namespace LiveCharts.Definitions.Charts
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public interface ISeparatorElementView
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the model.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The model.
|
||||
/// </value>
|
||||
SeparatorElementCore Model { get; }
|
||||
/// <summary>
|
||||
/// Gets the label model.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The label model.
|
||||
/// </value>
|
||||
LabelEvaluation LabelModel { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Updates the label.
|
||||
/// </summary>
|
||||
/// <param name="text">The text.</param>
|
||||
/// <param name="axis">The axis.</param>
|
||||
/// <param name="source">The source.</param>
|
||||
/// <returns></returns>
|
||||
LabelEvaluation UpdateLabel(string text, AxisCore axis, AxisOrientation source);
|
||||
|
||||
/// <summary>
|
||||
/// Clears the specified chart.
|
||||
/// </summary>
|
||||
/// <param name="chart">The chart.</param>
|
||||
void Clear(IChartView chart);
|
||||
|
||||
//No animated methods
|
||||
/// <summary>
|
||||
/// Places the specified chart.
|
||||
/// </summary>
|
||||
/// <param name="chart">The chart.</param>
|
||||
/// <param name="axis">The axis.</param>
|
||||
/// <param name="direction">The direction.</param>
|
||||
/// <param name="axisIndex">Index of the axis.</param>
|
||||
/// <param name="toLabel">To label.</param>
|
||||
/// <param name="toLine">To line.</param>
|
||||
/// <param name="tab">The tab.</param>
|
||||
void Place(ChartCore chart, AxisCore axis, AxisOrientation direction, int axisIndex, double toLabel, double toLine, double tab);
|
||||
/// <summary>
|
||||
/// Removes the specified chart.
|
||||
/// </summary>
|
||||
/// <param name="chart">The chart.</param>
|
||||
void Remove(ChartCore chart);
|
||||
|
||||
//Animated methods
|
||||
/// <summary>
|
||||
/// Moves the specified chart.
|
||||
/// </summary>
|
||||
/// <param name="chart">The chart.</param>
|
||||
/// <param name="axis">The axis.</param>
|
||||
/// <param name="direction">The direction.</param>
|
||||
/// <param name="axisIndex">Index of the axis.</param>
|
||||
/// <param name="toLabel">To label.</param>
|
||||
/// <param name="toLine">To line.</param>
|
||||
/// <param name="tab">The tab.</param>
|
||||
void Move(ChartCore chart, AxisCore axis, AxisOrientation direction, int axisIndex, double toLabel, double toLine, double tab);
|
||||
/// <summary>
|
||||
/// Fades the in.
|
||||
/// </summary>
|
||||
/// <param name="axis">The axis.</param>
|
||||
/// <param name="chart">The chart.</param>
|
||||
void FadeIn(AxisCore axis, ChartCore chart);
|
||||
/// <summary>
|
||||
/// Fades the out and remove.
|
||||
/// </summary>
|
||||
/// <param name="chart">The chart.</param>
|
||||
void FadeOutAndRemove(ChartCore chart);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
//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.
|
||||
|
||||
namespace LiveCharts.Definitions.Charts
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public interface ISeparatorView
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether this instance is enabled.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// <c>true</c> if this instance is enabled; otherwise, <c>false</c>.
|
||||
/// </value>
|
||||
bool IsEnabled { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets separator step, this means the value between each line, use double.NaN for auto.
|
||||
/// </summary>
|
||||
double Step { get; set; }
|
||||
/// <summary>
|
||||
/// Gets the axis orientation.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The axis orientation.
|
||||
/// </value>
|
||||
AxisOrientation AxisOrientation { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Ases the core element.
|
||||
/// </summary>
|
||||
/// <param name="axis">The axis.</param>
|
||||
/// <param name="source">The source.</param>
|
||||
/// <returns></returns>
|
||||
SeparatorConfigurationCore AsCoreElement(AxisCore axis, AxisOrientation source);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user