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

The style of line. 线条样式。 注: 修改 lineStyle 中的颜色不会影响图例颜色,如果需要图例颜色和折线图颜色一致,需修改 itemStyle.color,线条颜色默认也会取该颜色。 toColor,toColor2可设置水平方向的渐变,如需要设置垂直方向的渐变,可使用VisualMap。 More...

Inheritance diagram for XCharts.LineStyle:
Collaboration diagram for XCharts.LineStyle:

Public Types

enum  Type {
  Type.Solid, Type.Dashed, Type.Dotted, Type.DashDot,
  Type.DashDotDot, None
}
 线的类型。 More...
 

Public Member Functions

 LineStyle (float width)
 
 LineStyle (LineStyle.Type type)
 
 LineStyle (LineStyle.Type type, float width)
 
LineStyle Clone ()
 
void Copy (LineStyle lineStyle)
 
Color32 GetColor ()
 
bool IsNeedGradient ()
 
Color32 GetGradientColor (float value, Color32 defaultColor)
 
Type GetType (Type themeType)
 
float GetWidth (float themeWidth)
 
float GetLength (float themeLength)
 
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]
 Whether show line. 是否显示线条。当作为子组件,它的父组件有参数控制是否显示时,改参数无效。 More...
 
Type type [get, set]
 the type of line. 线的类型。 More...
 
Color32 color [get, set]
 the color of line, default use serie color. 线的颜色。 More...
 
Color32 toColor [get, set]
 the middle color of line, default use serie color. 线的渐变颜色(需要水平方向渐变时)。 More...
 
Color32 toColor2 [get, set]
 the end color of line, default use serie color. 线的渐变颜色2(需要水平方向三个渐变色的渐变时)。 More...
 
float width [get, set]
 the width of line. 线宽。 /// More...
 
float length [get, set]
 the length of line. 线长。 /// More...
 
float opacity [get, set]
 Opacity of the line. Supports value from 0 to 1, and the line will not be drawn when set to 0. 线的透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。 More...
 
- 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 line. 线条样式。 注: 修改 lineStyle 中的颜色不会影响图例颜色,如果需要图例颜色和折线图颜色一致,需修改 itemStyle.color,线条颜色默认也会取该颜色。 toColor,toColor2可设置水平方向的渐变,如需要设置垂直方向的渐变,可使用VisualMap。

Definition at line 20 of file LineStyle.cs.

Member Enumeration Documentation

◆ Type

线的类型。

Enumerator
Solid 

实线

Dashed 

虚线

Dotted 

点线

DashDot 

点划线

DashDotDot 

双点划线

Definition at line 25 of file LineStyle.cs.

26  {
30  Solid,
34  Dashed,
38  Dotted,
42  DashDot,
46  DashDotDot,
47  None,
48  }

Property Documentation

◆ color

Color32 XCharts.LineStyle.color
getset

the color of line, default use serie color. 线的颜色。

Definition at line 81 of file LineStyle.cs.

81  {
82  get { return m_Color; }
83  set { if (PropertyUtil.SetColor(ref m_Color, value)) SetVerticesDirty(); }
84  }

◆ length

float XCharts.LineStyle.length
getset

the length of line. 线长。 ///

Definition at line 117 of file LineStyle.cs.

117  {
118  get { return m_Length; }
119  set { if (PropertyUtil.SetStruct(ref m_Length, value)) SetVerticesDirty(); }
120  }

◆ opacity

float XCharts.LineStyle.opacity
getset

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

Definition at line 126 of file LineStyle.cs.

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

◆ show

bool XCharts.LineStyle.show
getset

Whether show line. 是否显示线条。当作为子组件,它的父组件有参数控制是否显示时,改参数无效。

Definition at line 63 of file LineStyle.cs.

63  {
64  get { return m_Show; }
65  set { if (PropertyUtil.SetStruct(ref m_Show, value)) SetVerticesDirty(); }
66  }

◆ toColor

Color32 XCharts.LineStyle.toColor
getset

the middle color of line, default use serie color. 线的渐变颜色(需要水平方向渐变时)。

Definition at line 90 of file LineStyle.cs.

90  {
91  get { return m_ToColor; }
92  set { if (PropertyUtil.SetColor(ref m_ToColor, value)) SetVerticesDirty(); }
93  }

◆ toColor2

Color32 XCharts.LineStyle.toColor2
getset

the end color of line, default use serie color. 线的渐变颜色2(需要水平方向三个渐变色的渐变时)。

Definition at line 99 of file LineStyle.cs.

99  {
100  get { return m_ToColor2; }
101  set { if (PropertyUtil.SetColor(ref m_ToColor2, value)) SetVerticesDirty(); }
102  }

◆ type

Type XCharts.LineStyle.type
getset

the type of line. 线的类型。

Definition at line 72 of file LineStyle.cs.

72  {
73  get { return m_Type; }
74  set { if (PropertyUtil.SetStruct(ref m_Type, value)) SetVerticesDirty(); }
75  }

◆ width

float XCharts.LineStyle.width
getset

the width of line. 线宽。 ///

Definition at line 108 of file LineStyle.cs.

108  {
109  get { return m_Width; }
110  set { if (PropertyUtil.SetStruct(ref m_Width, value)) SetVerticesDirty(); }
111  }

The documentation for this class was generated from the following file:
XCharts.RoseType.None
@ None
Don't show as Nightingale chart.不展示成南丁格尔玫瑰图
XCharts.LineType.DashDotDot
@ DashDotDot
双点划线
XCharts.LineType.DashDot
@ DashDot
点划线