AirControl
1.3.0
Open Source, Modular, and Extensible Flight Simulator For Deep Learning Research
AxisName.cs
1
/************************************************/
2
/* */
3
/* Copyright (c) 2018 - 2021 monitor1394 */
4
/* https://github.com/monitor1394 */
5
/* */
6
/************************************************/
7
8
using
System;
9
using
UnityEngine;
10
11
namespace
XCharts
12
{
17
[Serializable]
18
public
class
AxisName
:
SubComponent
19
{
24
public
enum
Location
25
{
26
Start,
27
Middle,
28
End
29
}
30
[SerializeField]
private
bool
m_Show;
31
[SerializeField]
private
string
m_Name;
32
[SerializeField]
private
Location
m_Location;
33
[SerializeField]
private
TextStyle
m_TextStyle =
new
TextStyle
();
34
39
public
bool
show
40
{
41
get
{
return
m_Show; }
42
set
{
if
(PropertyUtil.SetStruct(ref m_Show, value)) SetComponentDirty(); }
43
}
48
public
string
name
49
{
50
get
{
return
m_Name; }
51
set
{
if
(PropertyUtil.SetClass(ref m_Name, value)) SetComponentDirty(); }
52
}
57
public
Location
location
58
{
59
get
{
return
m_Location; }
60
set
{
if
(PropertyUtil.SetStruct(ref m_Location, value)) SetComponentDirty(); }
61
}
62
67
public
TextStyle
textStyle
68
{
69
get
{
return
m_TextStyle; }
70
set
{
if
(PropertyUtil.SetClass(ref m_TextStyle, value)) SetComponentDirty(); }
71
}
72
73
public
static
AxisName
defaultAxisName
74
{
75
get
76
{
77
return
new
AxisName
()
78
{
79
m_Show =
false
,
80
m_Name =
"axisName"
,
81
m_Location =
Location
.End,
82
m_TextStyle =
new
TextStyle
(),
83
};
84
}
85
}
86
87
public
AxisName Clone()
88
{
89
var axisName =
new
AxisName();
90
axisName.show =
show
;
91
axisName.name =
name
;
92
axisName.location =
location
;
93
axisName.textStyle.Copy(
textStyle
);
94
return
axisName;
95
}
96
97
public
void
Copy(AxisName axisName)
98
{
99
show
= axisName.show;
100
name
= axisName.name;
101
location
= axisName.location;
102
textStyle
.Copy(axisName.textStyle);
103
}
104
}
105
}
XCharts.AxisName.textStyle
TextStyle textStyle
The text style of axis name. 文本样式。
Definition:
AxisName.cs:68
XCharts.AxisName.Location
Location
the location of axis name. 坐标轴名称显示位置。
Definition:
AxisName.cs:24
XCharts.Location
Location type. Quick to set the general location. 位置类型。通过Align快速设置大体位置,再通过left,right,top,bottom微调具体位置...
Definition:
Location.cs:21
XCharts.TextStyle
Settings related to text. 文本的相关设置。
Definition:
TextStyle.cs:21
XCharts.SubComponent
Definition:
ChartComponent.cs:71
XCharts
Definition:
RewardChart.cs:14
XCharts.AxisName.show
bool show
Whether to show axis name. 是否显示坐标名称。
Definition:
AxisName.cs:40
XCharts.AxisName
the name of axis. 坐标轴名称。
Definition:
AxisName.cs:18
XCharts.AxisName.location
Location location
Location of axis name. 坐标轴名称显示位置。
Definition:
AxisName.cs:58
XCharts.AxisName.name
string name
the name of axis. 坐标轴名称。
Definition:
AxisName.cs:49
Assets
XCharts
Runtime
Component
Sub
AxisName.cs
Github
|
About
| Developed with ❤️ in India