Methods
-
-
获取背景颜色
Returns:
String
-
-
获取背景图
Returns:
String
-
-
获取方块高度
Returns:
Number
-
-
获取方块宽度
Returns:
Number
-
-
获取文字左右位置
Returns:
Number
-
-
获取文字颜色
Returns:
String
-
-
获取文字内容
Returns:
String
-
-
获取文字上下位置
Returns:
Number
-
-
获取文字大小
Returns:
Number
-
-
获取电源灯左右位置
Returns:
Number
-
-
获取电源灯颜色
Returns:
String
-
-
获取电源灯高
Returns:
Number
-
-
获取电源灯上下位置
Returns:
Number
-
-
获取指示灯形状
Returns:
String
-
-
获取电源灯宽
Returns:
Number
-
-
获取电源灯颜色
Returns:
String
-
-
是否绘制图标背景色
Returns:
Boolean
-
-
背景颜色
Parameters:
Name |
Type |
Description |
strColor |
String
|
颜色 |
Properties:
Name |
Type |
Description |
BgColor |
Color
|
"" |
-
-
背景图
Parameters:
Name |
Type |
Description |
strImage |
ImageProp
|
颜色 |
Properties:
Name |
Type |
Description |
strImage |
ImageProp
|
"" |
-
-
设置方块高度
Parameters:
Name |
Type |
Description |
nBoxHeight |
Number
|
方块高度 |
Properties:
Name |
Type |
Description |
BoxHeight |
Number
|
90 |
-
-
设置方块宽度
Parameters:
Name |
Type |
Description |
nBoxWidth |
Number
|
方块宽度 |
Properties:
Name |
Type |
Description |
BoxWidth |
Number
|
70 |
-
-
是否绘制背景色
Parameters:
Name |
Type |
Description |
bDraw |
Boolean
|
true背景色,false背景图 |
Properties:
Name |
Type |
Description |
DrawBgColor |
Boolean
|
true |
-
-
设置文字左右位置
Parameters:
Name |
Type |
Description |
nFontAbout |
Number
|
电源灯左右位置 |
Properties:
Name |
Type |
Description |
FontAbout |
Number
|
0 |
-
-
设置文字颜色
Parameters:
Name |
Type |
Description |
strFontColor |
String
|
文字内容 |
Properties:
Name |
Type |
Description |
strFontColor |
Color
|
"0xff000000" |
-
-
设置文字内容
Parameters:
Name |
Type |
Description |
strFontContent |
String
|
文字内容 |
Properties:
Name |
Type |
Description |
strFontContent |
String
|
"" |
-
-
设置文字上下位置
Parameters:
Name |
Type |
Description |
nFontPostion |
Number
|
文字上下位置 |
Properties:
Name |
Type |
Description |
FontPostion |
Number
|
30 |
-
-
设置文字大小
Parameters:
Name |
Type |
Description |
nFontSize |
Number
|
文字大小 |
Properties:
Name |
Type |
Description |
FontSize |
Number
|
15 |
-
-
设置电源灯左右位置
Parameters:
Name |
Type |
Description |
nLampAbout |
Number
|
电源灯左右位置 |
Properties:
Name |
Type |
Description |
LampAbout |
Number
|
0 |
-
-
设置电源灯颜色
Parameters:
Name |
Type |
Description |
strLampColor |
String
|
电源灯颜色 |
Properties:
Name |
Type |
Description |
strLampColor |
Color
|
"0xff86E865" |
-
-
设置电源灯上下位置
Parameters:
Name |
Type |
Description |
nLampPostion |
Number
|
电源灯上下位置 |
Properties:
Name |
Type |
Description |
LampPostion |
Number
|
10 |
-
-
设置指示灯形状
Parameters:
Name |
Type |
Description |
strLampShape |
String
|
指示灯形状 |
Properties:
Name |
Type |
Description |
strLampShape |
Combo
|
["circular","square"] |
-
-
设置电源灯宽高
Parameters:
Name |
Type |
Description |
nLampHeight |
Number
|
方块高度 |
nLampWidth |
Number
|
方块宽度 |
Properties:
Name |
Type |
Description |
LampSize |
Collection
|
[15,15] |
-
-
设置指示灯状态及对应数值
Parameters:
Name |
Type |
Description |
nNum |
Number
|
对应数值 |
strStates |
String
|
指示灯颜色 |
-
-
设置指示灯状态值及其类型
Parameters:
Name |
Type |
Description |
nStateNum |
Number
|
状态值 |
nStateStyle |
String
|
指示灯状态类型 |
Properties:
Name |
Type |
Description |
nStateNum |
Collection
|
[1,"background"] |