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

The style of area. 区域填充样式。 More...

Inheritance diagram for XCharts.AreaStyle:
Collaboration diagram for XCharts.AreaStyle:

Public Types

enum  AreaOrigin { AreaOrigin.Auto, AreaOrigin.Start, AreaOrigin.End }
 Origin position of area. 图形区域的起始位置。默认情况下,图形会从坐标轴轴线到数据间进行填充。如果需要填充的区域是坐标轴最大值到数据间,或者坐标轴最小值到数据间,则可以通过这个配置项进行设置。 More...
 

Public Member Functions

Color32 GetColor ()
 
Color32 GetColor (Color32 themeColor)
 
- Public Member Functions inherited from XCharts.ChartComponent
virtual void SetVerticesDirty ()
 
virtual void ClearVerticesDirty ()
 
virtual void SetComponentDirty ()
 
virtual void ClearComponentDirty ()
 
virtual void ClearDirty ()
 
virtual void SetAllDirty ()
 

Properties

bool show [get, set]
 Set this to false to prevent the areafrom showing. 是否显示区域填充。 More...
 
AreaOrigin origin [get, set]
 the origin of area. 区域填充的起始位置。 More...
 
Color32 color [get, set]
 the color of area,default use serie color. 区域填充的颜色,如果toColor不是默认值,则表示渐变色的起点颜色。 More...
 
Color32 toColor [get, set]
 Gradient color, start color to toColor. 渐变色的终点颜色。 More...
 
float opacity [get, set]
 Opacity of the component. Supports value from 0 to 1, and the component will not be drawn when set to 0. 图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。 More...
 
bool tooltipHighlight [get, set]
 鼠标悬浮时是否高亮之前的区域 More...
 
Color32 highlightColor [get, set]
 the color of area,default use serie color. 高亮时区域填充的颜色,如果highlightToColor不是默认值,则表示渐变色的起点颜色。 More...
 
Color32 highlightToColor [get, set]
 Gradient color, start highlightColor to highlightToColor. 高亮时渐变色的终点颜色。 More...
 
static AreaStyle defaultAreaStyle [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

The style of area. 区域填充样式。

Definition at line 18 of file AreaStyle.cs.

Member Enumeration Documentation

◆ AreaOrigin

Origin position of area. 图形区域的起始位置。默认情况下,图形会从坐标轴轴线到数据间进行填充。如果需要填充的区域是坐标轴最大值到数据间,或者坐标轴最小值到数据间,则可以通过这个配置项进行设置。

Enumerator
Auto 

to fill between axis line to data. 填充坐标轴轴线到数据间的区域。

Start 

to fill between min axis value (when not inverse) to data. 填充坐标轴底部到数据间的区域。

End 

to fill between max axis value (when not inverse) to data. 填充坐标轴顶部到数据间的区域。

Definition at line 24 of file AreaStyle.cs.

25  {
30  Auto,
35  Start,
40  End
41  }

Property Documentation

◆ color

Color32 XCharts.AreaStyle.color
getset

the color of area,default use serie color. 区域填充的颜色,如果toColor不是默认值,则表示渐变色的起点颜色。

Definition at line 74 of file AreaStyle.cs.

74  {
75  get { return m_Color; }
76  set { if (PropertyUtil.SetColor(ref m_Color, value)) SetVerticesDirty(); }
77  }

◆ highlightColor

Color32 XCharts.AreaStyle.highlightColor
getset

the color of area,default use serie color. 高亮时区域填充的颜色,如果highlightToColor不是默认值,则表示渐变色的起点颜色。

Definition at line 109 of file AreaStyle.cs.

109  {
110  get { return m_HighlightColor; }
111  set { if (PropertyUtil.SetColor(ref m_HighlightColor, value)) SetVerticesDirty(); }
112  }

◆ highlightToColor

Color32 XCharts.AreaStyle.highlightToColor
getset

Gradient color, start highlightColor to highlightToColor. 高亮时渐变色的终点颜色。

Definition at line 118 of file AreaStyle.cs.

118  {
119  get { return m_HighlightToColor; }
120  set { if (PropertyUtil.SetColor(ref m_HighlightToColor, value)) SetVerticesDirty(); }
121  }

◆ opacity

float XCharts.AreaStyle.opacity
getset

Opacity of the component. Supports value from 0 to 1, and the component will not be drawn when set to 0. 图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。

Definition at line 92 of file AreaStyle.cs.

92  {
93  get { return m_Opacity; }
94  set { if (PropertyUtil.SetStruct(ref m_Opacity, value)) SetVerticesDirty(); }
95  }

◆ origin

AreaOrigin XCharts.AreaStyle.origin
getset

the origin of area. 区域填充的起始位置。

Definition at line 65 of file AreaStyle.cs.

65  {
66  get { return m_Origin; }
67  set { if (PropertyUtil.SetStruct(ref m_Origin, value)) SetVerticesDirty(); }
68  }

◆ show

bool XCharts.AreaStyle.show
getset

Set this to false to prevent the areafrom showing. 是否显示区域填充。

Definition at line 56 of file AreaStyle.cs.

56  {
57  get { return m_Show; }
58  set { if (PropertyUtil.SetStruct(ref m_Show, value)) SetVerticesDirty(); }
59  }

◆ toColor

Color32 XCharts.AreaStyle.toColor
getset

Gradient color, start color to toColor. 渐变色的终点颜色。

Definition at line 83 of file AreaStyle.cs.

83  {
84  get { return m_ToColor; }
85  set { if (PropertyUtil.SetColor(ref m_ToColor, value)) SetVerticesDirty(); }
86  }

◆ tooltipHighlight

bool XCharts.AreaStyle.tooltipHighlight
getset

鼠标悬浮时是否高亮之前的区域

Definition at line 100 of file AreaStyle.cs.

100  {
101  get { return m_TooltipHighlight; }
102  set { if (PropertyUtil.SetStruct(ref m_TooltipHighlight, value)) SetVerticesDirty(); }
103  }

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