XUIStateDisplay()

Methods

GetBgColor() → {String}

获取背景颜色
Returns:
String

GetBgImage() → {String}

获取背景图
Returns:
String

GetBoxHeight() → {Number}

获取方块高度
Returns:
Number

GetBoxWidth() → {Number}

获取方块宽度
Returns:
Number

GetFontAbout() → {Number}

获取文字左右位置
Returns:
Number

GetFontColor() → {String}

获取文字颜色
Returns:
String

GetFontContent() → {String}

获取文字内容
Returns:
String

GetFontPostion() → {Number}

获取文字上下位置
Returns:
Number

GetFontSize() → {Number}

获取文字大小
Returns:
Number

GetLampAbout() → {Number}

获取电源灯左右位置
Returns:
Number

GetLampColor() → {String}

获取电源灯颜色
Returns:
String

GetLampHeight() → {Number}

获取电源灯高
Returns:
Number

GetLampPostion() → {Number}

获取电源灯上下位置
Returns:
Number

GetLampShape() → {String}

获取指示灯形状
Returns:
String

GetLampWidth() → {Number}

获取电源灯宽
Returns:
Number

GetStateColor() → {String}

获取电源灯颜色
Returns:
String

IsDrawColor() → {Boolean}

是否绘制图标背景色
Returns:
Boolean

SetBgColor(strColor)

背景颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
BgColor Color ""

SetBgImage(strImage)

背景图
Parameters:
Name Type Description
strImage ImageProp 颜色
Properties:
Name Type Description
strImage ImageProp ""

SetBoxHeight(nBoxHeight)

设置方块高度
Parameters:
Name Type Description
nBoxHeight Number 方块高度
Properties:
Name Type Description
BoxHeight Number 90

SetBoxWidth(nBoxWidth)

设置方块宽度
Parameters:
Name Type Description
nBoxWidth Number 方块宽度
Properties:
Name Type Description
BoxWidth Number 70

SetDrawColor(bDraw)

是否绘制背景色
Parameters:
Name Type Description
bDraw Boolean true背景色,false背景图
Properties:
Name Type Description
DrawBgColor Boolean true

SetFontAbout(nFontAbout)

设置文字左右位置
Parameters:
Name Type Description
nFontAbout Number 电源灯左右位置
Properties:
Name Type Description
FontAbout Number 0

SetFontColor(strFontColor)

设置文字颜色
Parameters:
Name Type Description
strFontColor String 文字内容
Properties:
Name Type Description
strFontColor Color "0xff000000"

SetFontContent(strFontContent)

设置文字内容
Parameters:
Name Type Description
strFontContent String 文字内容
Properties:
Name Type Description
strFontContent String ""

SetFontPostion(nFontPostion)

设置文字上下位置
Parameters:
Name Type Description
nFontPostion Number 文字上下位置
Properties:
Name Type Description
FontPostion Number 30

SetFontSize(nFontSize)

设置文字大小
Parameters:
Name Type Description
nFontSize Number 文字大小
Properties:
Name Type Description
FontSize Number 15

SetLampAbout(nLampAbout)

设置电源灯左右位置
Parameters:
Name Type Description
nLampAbout Number 电源灯左右位置
Properties:
Name Type Description
LampAbout Number 0

SetLampColor(strLampColor)

设置电源灯颜色
Parameters:
Name Type Description
strLampColor String 电源灯颜色
Properties:
Name Type Description
strLampColor Color "0xff86E865"

SetLampPostion(nLampPostion)

设置电源灯上下位置
Parameters:
Name Type Description
nLampPostion Number 电源灯上下位置
Properties:
Name Type Description
LampPostion Number 10

SetLampShape(strLampShape)

设置指示灯形状
Parameters:
Name Type Description
strLampShape String 指示灯形状
Properties:
Name Type Description
strLampShape Combo ["circular","square"]

SetLampSize(nLampHeight, nLampWidth)

设置电源灯宽高
Parameters:
Name Type Description
nLampHeight Number 方块高度
nLampWidth Number 方块宽度
Properties:
Name Type Description
LampSize Collection [15,15]

SetStateNum(nNum, strStates)

设置指示灯状态及对应数值
Parameters:
Name Type Description
nNum Number 对应数值
strStates String 指示灯颜色

SetStateNumStyle(nStateNum, nStateStyle)

设置指示灯状态值及其类型
Parameters:
Name Type Description
nStateNum Number 状态值
nStateStyle String 指示灯状态类型
Properties:
Name Type Description
nStateNum Collection [1,"background"]