AirControl  1.3.0
Open Source, Modular, and Extensible Flight Simulator For Deep Learning Research
XCharts.AxisLabel Class Reference

Settings related to axis label. 坐标轴刻度标签的相关设置。 More...

Inheritance diagram for XCharts.AxisLabel:
Collaboration diagram for XCharts.AxisLabel:

Public Member Functions

override void ClearComponentDirty ()
 
AxisLabel Clone ()
 
void Copy (AxisLabel axisLabel)
 
void SetRelatedText (ChartText txt, float labelWidth)
 
string GetFormatterContent (int labelIndex, string category)
 
string GetFormatterContent (int labelIndex, double value, double minValue, double maxValue, bool isLog=false)
 
string GetFormatterDateTime (int labelIndex, double value)
 
- Public Member Functions inherited from XCharts.ChartComponent
virtual void SetVerticesDirty ()
 
virtual void ClearVerticesDirty ()
 
virtual void SetComponentDirty ()
 
virtual void ClearDirty ()
 
virtual void SetAllDirty ()
 

Properties

bool show [get, set]
 Set this to false to prevent the axis label from appearing. 是否显示刻度标签。 More...
 
int interval [get, set]
 The display interval of the axis label. 坐标轴刻度标签的显示间隔,在类目轴中有效。0表示显示所有标签,1表示隔一个隔显示一个标签,以此类推。 More...
 
bool inside [get, set]
 Set this to true so the axis labels face the inside direction. 刻度标签是否朝内,默认朝外。 More...
 
float margin [get, set]
 The margin between the axis label and the axis line. 刻度标签与轴线之间的距离。 More...
 
string formatter [get, set]
 图例内容字符串模版格式器。支持用
换行。 模板变量为图例名称 {value}。 More...
 
string numericFormatter [get, set]
 Standard numeric format strings. 标准数字格式字符串。用于将数值格式化显示为字符串。 使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。 参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings More...
 
bool showAsPositiveNumber [get, set]
 Show negative number as positive number. 将负数数值显示为正数。一般和SerieshowAsPositiveNumber配合使用。 More...
 
bool onZero [get, set]
 刻度标签显示在0刻度上。 More...
 
float width [get, set]
 文本的宽。为0时会自动匹配。 More...
 
float height [get, set]
 文本的高。为0时会自动匹配。 More...
 
bool showStartLabel [get, set]
 Whether to display the first label. 是否显示第一个文本。 More...
 
bool showEndLabel [get, set]
 Whether to display the last label. 是否显示最后一个文本。 More...
 
TextLimit textLimit [get, set]
 文本限制。 More...
 
TextStyle textStyle [get, set]
 The text style of axis name. 文本样式。 More...
 
DelegateAxisLabelFormatter formatterFunction [set]
 
override bool componentDirty [get]
 
static AxisLabel defaultAxisLabel [get]
 
- Properties inherited from XCharts.ChartComponent
virtual bool vertsDirty [get]
 图表重绘标记。 More...
 
virtual bool componentDirty [get]
 组件重新初始化标记。 More...
 
bool anyDirty [get]
 需要重绘图表或重新初始化组件。 More...
 
Painter painter [get, set]
 
Action refreshComponent [get, set]
 
GameObject gameObject [get, set]
 

Additional Inherited Members

- Protected Attributes inherited from XCharts.ChartComponent
bool m_VertsDirty
 
bool m_ComponentDirty
 
Painter m_Painter
 

Detailed Description

Settings related to axis label. 坐标轴刻度标签的相关设置。

Definition at line 19 of file AxisLabel.cs.

Property Documentation

◆ formatter

string XCharts.AxisLabel.formatter
getset

图例内容字符串模版格式器。支持用
换行。 模板变量为图例名称 {value}。

Definition at line 78 of file AxisLabel.cs.

78  {
79  get { return m_Formatter; }
80  set { if (PropertyUtil.SetClass(ref m_Formatter, value)) SetComponentDirty(); }
81  }

◆ height

float XCharts.AxisLabel.height
getset

文本的高。为0时会自动匹配。

Definition at line 126 of file AxisLabel.cs.

126  {
127  get { return m_Height; }
128  set { if (PropertyUtil.SetStruct(ref m_Height, value)) SetComponentDirty(); }
129  }

◆ inside

bool XCharts.AxisLabel.inside
getset

Set this to true so the axis labels face the inside direction. 刻度标签是否朝内,默认朝外。

Definition at line 60 of file AxisLabel.cs.

60  {
61  get { return m_Inside; }
62  set { if (PropertyUtil.SetStruct(ref m_Inside, value)) SetComponentDirty(); }
63  }

◆ interval

int XCharts.AxisLabel.interval
getset

The display interval of the axis label. 坐标轴刻度标签的显示间隔,在类目轴中有效。0表示显示所有标签,1表示隔一个隔显示一个标签,以此类推。

Definition at line 51 of file AxisLabel.cs.

51  {
52  get { return m_Interval; }
53  set { if (PropertyUtil.SetStruct(ref m_Interval, value)) SetComponentDirty(); }
54  }

◆ margin

float XCharts.AxisLabel.margin
getset

The margin between the axis label and the axis line. 刻度标签与轴线之间的距离。

Definition at line 69 of file AxisLabel.cs.

69  {
70  get { return m_Margin; }
71  set { if (PropertyUtil.SetStruct(ref m_Margin, value)) SetComponentDirty(); }
72  }

◆ numericFormatter

string XCharts.AxisLabel.numericFormatter
getset

Standard numeric format strings. 标准数字格式字符串。用于将数值格式化显示为字符串。 使用Axx的形式:A是格式说明符的单字符,支持C货币、D十进制、E指数、F定点数、G常规、N数字、P百分比、R往返、X十六进制的。xx是精度说明,从0-99。 参考:https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings

Definition at line 91 of file AxisLabel.cs.

91  {
92  get { return m_NumericFormatter; }
93  set { if (PropertyUtil.SetClass(ref m_NumericFormatter, value)) SetComponentDirty(); }
94  }

◆ onZero

bool XCharts.AxisLabel.onZero
getset

刻度标签显示在0刻度上。

Definition at line 110 of file AxisLabel.cs.

110  {
111  get { return m_OnZero; }
112  set { if (PropertyUtil.SetStruct(ref m_OnZero, value)) SetComponentDirty(); }
113  }

◆ show

bool XCharts.AxisLabel.show
getset

Set this to false to prevent the axis label from appearing. 是否显示刻度标签。

Definition at line 42 of file AxisLabel.cs.

42  {
43  get { return m_Show; }
44  set { if (PropertyUtil.SetStruct(ref m_Show, value)) SetComponentDirty(); }
45  }

◆ showAsPositiveNumber

bool XCharts.AxisLabel.showAsPositiveNumber
getset

Show negative number as positive number. 将负数数值显示为正数。一般和SerieshowAsPositiveNumber配合使用。

Definition at line 101 of file AxisLabel.cs.

101  {
102  get { return m_ShowAsPositiveNumber; }
103  set { if (PropertyUtil.SetStruct(ref m_ShowAsPositiveNumber, value)) SetComponentDirty(); }
104  }

◆ showEndLabel

bool XCharts.AxisLabel.showEndLabel
getset

Whether to display the last label. 是否显示最后一个文本。

Definition at line 144 of file AxisLabel.cs.

144  {
145  get { return m_ShowEndLabel; }
146  set { if (PropertyUtil.SetStruct(ref m_ShowEndLabel, value)) SetComponentDirty(); }
147  }

◆ showStartLabel

bool XCharts.AxisLabel.showStartLabel
getset

Whether to display the first label. 是否显示第一个文本。

Definition at line 135 of file AxisLabel.cs.

135  {
136  get { return m_ShowStartLabel; }
137  set { if (PropertyUtil.SetStruct(ref m_ShowStartLabel, value)) SetComponentDirty(); }
138  }

◆ textLimit

TextLimit XCharts.AxisLabel.textLimit
getset

文本限制。

Definition at line 152 of file AxisLabel.cs.

152  {
153  get { return m_TextLimit; }
154  set { if (value != null) { m_TextLimit = value; SetComponentDirty(); } }
155  }

◆ textStyle

TextStyle XCharts.AxisLabel.textStyle
getset

The text style of axis name. 文本样式。

Definition at line 162 of file AxisLabel.cs.

162  {
163  get { return m_TextStyle; }
164  set { if (PropertyUtil.SetClass(ref m_TextStyle, value)) SetComponentDirty(); }
165  }

◆ width

float XCharts.AxisLabel.width
getset

文本的宽。为0时会自动匹配。

Definition at line 118 of file AxisLabel.cs.

118  {
119  get { return m_Width; }
120  set { if (PropertyUtil.SetStruct(ref m_Width, value)) SetComponentDirty(); }
121  }

The documentation for this class was generated from the following file: