XUIHorThermometer()

Methods

GetCurrentValue() → {Number}

获取当前值
Returns:
Number

GetLowerLimitValue() → {Number}

获取下限值
Returns:
Number

GetNormalValue() → {Number}

获取正常值
Returns:
Number

GetUpperLimitValue() → {Number}

获取上限值
Returns:
Number

SetAxisLineColor(strColor)

轴颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
AxisLineColor Color "0xff3f4855"

SetAxisLineWidth(nWidth)

轴线宽
Parameters:
Name Type Description
nWidth Number 颜色
Properties:
Name Type Description
AxisLineWidth Number 2

SetAxisTickLen(nLen)

轴刻度线长
Parameters:
Name Type Description
nLen Number 颜色
Properties:
Name Type Description
AxisTickLen Number 10

SetBarRoundRadius(nRadius)

柱圆角
Parameters:
Name Type Description
nRadius Number 颜色
Properties:
Name Type Description
BarRoundRadius Number 20

SetBarWidth(nWidth)

柱宽
Parameters:
Name Type Description
nWidth Number 颜色
Properties:
Name Type Description
BarWidth Number 20

SetBgColor(strColor)

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

SetBorderColor(strColor)

边框颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
BorderColor Color "0xff3f4855"

SetCurrentValue(nValue)

当前值
Parameters:
Name Type Description
nValue Number 颜色
Properties:
Name Type Description
CurrentValue Number 30

SetCurValueSymbolColor(strColor)

当前值图标颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
CurValueSymbolColor Color "0xffff0000"

SetCurValueSymbolSize(nSize)

当前值图标大小
Parameters:
Name Type Description
nSize Number 大小
Properties:
Name Type Description
CurValueSymbolSize Number 20

SetDownAxisOffset(nOffset)

下轴位移
Parameters:
Name Type Description
nOffset Number 最小值
Properties:
Name Type Description
DownAxisOffset Number 10

SetDownAxisScaleVisible(bVisible)

下轴刻度显示
Parameters:
Name Type Description
bVisible Boolean 是否显示
Properties:
Name Type Description
DownAxisScaleVisible Boolean true

SetDownAxisVisible(bVisible)

下轴显示
Parameters:
Name Type Description
bVisible Boolean 是否显示
Properties:
Name Type Description
DownAxisVisible Boolean true

SetLowerLimitColor(strColor)

下限部分颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
LowerLimitColor Color "0xff0060dd"

SetLowerLimitValue(nValue)

下限值
Parameters:
Name Type Description
nValue Number 颜色
Properties:
Name Type Description
LowerLimitValue Number 0

SetMiddlePartColor(strColor)

中间部分颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
MiddlePartColor Color "0xff31c526"

SetNormalValue(nValue)

正常值
Parameters:
Name Type Description
nValue Number 颜色
Properties:
Name Type Description
NormalValue Number 80

SetUpAxisOffset(nOffset)

上轴位移
Parameters:
Name Type Description
nOffset Number 最小值
Properties:
Name Type Description
UpAxisOffset Number 10

SetUpAxisScaleVisible(bVisible)

上轴刻度显示
Parameters:
Name Type Description
bVisible Boolean 是否显示
Properties:
Name Type Description
UpAxisScaleVisible Boolean false

SetUpAxisVisible(bVisible)

上轴显示
Parameters:
Name Type Description
bVisible Boolean 是否显示
Properties:
Name Type Description
UpAxisVisible Boolean true

SetUpperLimitColor(strColor)

上限部分颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
UpperLimitColor Color "0xffff0000"

SetUpperLimitValue(nValue)

上限值
Parameters:
Name Type Description
nValue Number 颜色
Properties:
Name Type Description
UpperLimitValue Number 120

SetValueRange(nMin, nMax)

取值范围
Parameters:
Name Type Description
nMin Number 最小值
nMax Number 最大值
Properties:
Name Type Description
ValueRange Collection [-30,140]