![]() |
AirControl
1.3.0
Open Source, Modular, and Extensible Flight Simulator For Deep Learning Research
|
The style of line. 线条样式。 注: 修改 lineStyle 中的颜色不会影响图例颜色,如果需要图例颜色和折线图颜色一致,需修改 itemStyle.color,线条颜色默认也会取该颜色。 toColor,toColor2可设置水平方向的渐变,如需要设置垂直方向的渐变,可使用VisualMap。 More...
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) |
![]() | |
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... | |
![]() | |
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 | |
![]() | |
bool | m_VertsDirty |
bool | m_ComponentDirty |
Painter | m_Painter |
The style of line. 线条样式。 注: 修改 lineStyle 中的颜色不会影响图例颜色,如果需要图例颜色和折线图颜色一致,需修改 itemStyle.color,线条颜色默认也会取该颜色。 toColor,toColor2可设置水平方向的渐变,如需要设置垂直方向的渐变,可使用VisualMap。
Definition at line 20 of file LineStyle.cs.
|
strong |
线的类型。
Enumerator | |
---|---|
Solid | 实线 |
Dashed | 虚线 |
Dotted | 点线 |
DashDot | 点划线 |
DashDotDot | 双点划线 |
Definition at line 25 of file LineStyle.cs.
|
getset |
the color of line, default use serie color. 线的颜色。
Definition at line 81 of file LineStyle.cs.
|
getset |
the length of line. 线长。 ///
Definition at line 117 of file LineStyle.cs.
|
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.
|
getset |
Whether show line. 是否显示线条。当作为子组件,它的父组件有参数控制是否显示时,改参数无效。
Definition at line 63 of file LineStyle.cs.
|
getset |
the middle color of line, default use serie color. 线的渐变颜色(需要水平方向渐变时)。
Definition at line 90 of file LineStyle.cs.
|
getset |
the end color of line, default use serie color. 线的渐变颜色2(需要水平方向三个渐变色的渐变时)。
Definition at line 99 of file LineStyle.cs.
|
getset |
the type of line. 线的类型。
Definition at line 72 of file LineStyle.cs.
|
getset |
the width of line. 线宽。 ///
Definition at line 108 of file LineStyle.cs.