Class GraphVM
- Namespace
- TaleWorlds.Library.Graph
- Assembly
- TaleWorlds.Library.dll
public class GraphVM : ViewModel, IViewModel, INotifyPropertyChanged
- Inheritance
-
GraphVM
- Implements
- Inherited Members
Constructors
GraphVM(string, string)
public GraphVM(string horizontalAxisLabel, string verticalAxisLabel)
Parameters
Properties
HorizontalAxisLabel
[DataSourceProperty]
public string HorizontalAxisLabel { get; set; }
Property Value
HorizontalMaxValue
[DataSourceProperty]
public float HorizontalMaxValue { get; set; }
Property Value
HorizontalMinValue
[DataSourceProperty]
public float HorizontalMinValue { get; set; }
Property Value
Lines
[DataSourceProperty]
public MBBindingList<GraphLineVM> Lines { get; set; }
Property Value
VerticalAxisLabel
[DataSourceProperty]
public string VerticalAxisLabel { get; set; }
Property Value
VerticalMaxValue
[DataSourceProperty]
public float VerticalMaxValue { get; set; }
Property Value
VerticalMinValue
[DataSourceProperty]
public float VerticalMinValue { get; set; }
Property Value
Methods
Draw(IEnumerable<(GraphLineVM line, IEnumerable<GraphLinePointVM> points)>, in Vec2, in Vec2, float, float, bool, bool)
public void Draw(IEnumerable<(GraphLineVM line, IEnumerable<GraphLinePointVM> points)> linesWithPoints, in Vec2 horizontalRange, in Vec2 verticalRange, float autoRangeHorizontalCoefficient = 1, float autoRangeVerticalCoefficient = 1, bool useAutoHorizontalRange = false, bool useAutoVerticalRange = false)
Parameters
linesWithPoints
IEnumerable<(GraphLineVM line, IEnumerable<GraphLinePointVM> points)>horizontalRange
Vec2verticalRange
Vec2autoRangeHorizontalCoefficient
floatautoRangeVerticalCoefficient
floatuseAutoHorizontalRange
booluseAutoVerticalRange
bool
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).