XUIGaugeComplex()

Methods

GetLeftMaxValue() → {Number}

获取左仪表最大值
Returns:
Number

GetLeftMinValue() → {Number}

获取左仪表最小值
Returns:
Number

GetLeftNumber() → {Number}

获取左仪表数值
Returns:
Number

GetMainMaxValue() → {Number}

获取主仪表最大值
Returns:
Number

GetMainMinValue() → {Number}

获取主仪表最小值
Returns:
Number

GetMainNumber() → {Number}

获取主仪表数值
Returns:
Number

GetRightDownValue() → {Number}

获取右下表数值
Returns:
Number

GetRightTopValue() → {Number}

获取右上表数值
Returns:
Number

SetBackgroundColor(strColor)

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

SetLeftColor(strLeftFirstColor, strLeftSecondColor, strLeftThirdColor, nLeftStart, nLeftCenter, nLeftEnd)

左仪表颜色
Parameters:
Name Type Description
strLeftFirstColor String 表盘开始颜色
strLeftSecondColor String 表盘中间颜色
strLeftThirdColor String 表盘结束颜色
nLeftStart Double 初段结束比值
nLeftCenter Double 中段结束比值
nLeftEnd Double 末段结束比值
Properties:
Name Type Description
LeftColor Collection ["0xff91c7ae","0xff63869e","0xffc23531",0.2,0.8,1]

SetLeftLineLength(nLength)

左仪表刻度长
Parameters:
Name Type Description
nLength Number 仪表盘刻度长度
Properties:
Name Type Description
LeftLineLength Number 12

SetLeftLineWidth(nWidth)

左仪表宽度
Parameters:
Name Type Description
nWidth Number 坐标轴线宽度
Properties:
Name Type Description
LeftLineWidth Number 8

SetLeftMaxValue(nMax)

左仪表最大值
Parameters:
Name Type Description
nMax Number 仪表盘数值最大值
Properties:
Name Type Description
LeftMaxValue Number 7

SetLeftMinValue(nMin)

左仪表最小值
Parameters:
Name Type Description
nMin Number 仪表盘数值最小值
Properties:
Name Type Description
LeftMinValue Number 0

SetLeftNumber(dNumber)

左仪表数值
Parameters:
Name Type Description
dNumber Double 左边仪表盘主数值
Properties:
Name Type Description
LeftNumber Double 1.5

SetLeftNumColor(strColor)

左仪表数值颜色
Parameters:
Name Type Description
strColor String 左侧数值颜色
Properties:
Name Type Description
LeftNumColor Color "0xff000000"

SetLeftNumName(strName)

左仪表名称
Parameters:
Name Type Description
strName String 左仪表名称
Properties:
Name Type Description
LeftNumName String "示例文本2"

SetLeftSize(nSize)

左仪表大小
Parameters:
Name Type Description
nSize String 中间仪表盘大小
Properties:
Name Type Description
LeftSize String "35%"

SetLeftSplitLineLength(nLength)

左仪表分割线长
Parameters:
Name Type Description
nLength Number 左侧分割线长度
Properties:
Name Type Description
LeftSplitLineLength Number 20

SetLeftSplitNumber(nValue)

左仪表刻度个数
Parameters:
Name Type Description
nValue Number 中间仪表盘数值个数
Properties:
Name Type Description
LeftSplitNumber Number 7

SetLeftTitleColor(strColor)

左仪表标题颜色
Parameters:
Name Type Description
strColor String 仪表盘标题颜色
Properties:
Name Type Description
LeftTitleColor Color "0xff000000"

SetMainAxisLabelBackgroundColor(strColor)

主表刻度值背景色
Parameters:
Name Type Description
strColor String 表盘数值背景色
Properties:
Name Type Description
MainAxisLabelBgColor Color "0xFF000000"

SetMainAxisLabelPadding(nPadding)

主表刻度值内边距
Parameters:
Name Type Description
nPadding Number 数值内边距
Properties:
Name Type Description
MainAxisLabelPadding Number 5

SetMainBgColor(strColor)

主仪表数值背景色
Parameters:
Name Type Description
strColor String 表盘主数值背景色
Properties:
Name Type Description
MainBgColor Color "0xff444444"

SetMainBorderRadius(nRadius)

主仪表数值框圆角
Parameters:
Name Type Description
nRadius Number 边框圆角角度
Properties:
Name Type Description
MainBorderRadius Number 3

SetMainBorderWidth(nWidth)

主仪表数值边框宽
Parameters:
Name Type Description
nWidth Number 边框宽度
Properties:
Name Type Description
MainBorderWidth Number 2

SetMainColor(strFirstColor, strSecondColor, strThirdColor, nStart, nCenter, nEnd)

主仪表颜色
Parameters:
Name Type Description
strFirstColor String 表盘开始颜色
strSecondColor String 表盘中间颜色
strThirdColor String 表盘结束颜色
nStart Double 初段结束比值
nCenter Double 中段结束比值
nEnd Double 末段结束比值
Properties:
Name Type Description
MainColor Collection ["0xff91c7ae","0xff63869e","0xffc23531",0.2,0.8,1]

SetMainLineLength(nLength)

主仪表刻度长
Parameters:
Name Type Description
nLength Number 仪表盘刻度长度
Properties:
Name Type Description
MainLineLength Number 15

SetMainLineWidth(nWidth)

主仪表宽度
Parameters:
Name Type Description
nWidth Number 坐标轴线宽度
Properties:
Name Type Description
MainLineWidth Number 10

SetMainMaxValue(nMax)

主仪表最大值
Parameters:
Name Type Description
nMax Number 仪表盘数值最大值
Properties:
Name Type Description
MainMaxValue Number 220

SetMainMinValue(nMin)

主仪表最小值
Parameters:
Name Type Description
nMin Number 仪表盘数值最小值
Properties:
Name Type Description
MainMinValue Number 0

SetMainNumber(nValue)

主仪表数值
Parameters:
Name Type Description
nValue Number 仪表盘主数值
Properties:
Name Type Description
MainNumber Number 40

SetMainNumColor(strColor)

主仪表刻度值色
Parameters:
Name Type Description
strColor String 数值颜色
Properties:
Name Type Description
MainNumColor Color "0xff000000"

SetMainNumName(strName)

主仪表数值名称
Parameters:
Name Type Description
strName String 仪表盘主数值名称
Properties:
Name Type Description
MainNumName String "示例文本1"

SetMainRadius(strRadius)

主仪表大小
Parameters:
Name Type Description
strRadius String 中间仪表盘大小
Properties:
Name Type Description
MainRadius String "50%"

SetMainSplitLine(nSplitLine)

主仪表分割线长
Parameters:
Name Type Description
nSplitLine Number 分割线长度
Properties:
Name Type Description
MainSplitLine Number 20

SetMainSplitNumber(nValue)

主仪表刻度个数
Parameters:
Name Type Description
nValue Number 中间仪表盘数值个数
Properties:
Name Type Description
MainSplitNumber Number 10

SetMainTitleColor(strColor)

主仪表标题颜色
Parameters:
Name Type Description
strColor String 仪表盘标题颜色
Properties:
Name Type Description
MainTitleColor Color "0xFF000000"

SetMainTitleSize(nSize)

主仪表标题大小
Parameters:
Name Type Description
nSize Number 表盘标题大小
Properties:
Name Type Description
MainTitleSize Number 20

SetRightColor(strRightFirstColor, strRightSecondColor, strRightThirdColor, nRightStart, nRightCenter, nRightaEnd)

右上表颜色
Parameters:
Name Type Description
strRightFirstColor String 表盘开始颜色
strRightSecondColor String 表盘中间颜色
strRightThirdColor String 表盘结束颜色
nRightStart Double 初段结束比值
nRightCenter Double 中段结束比值
nRightaEnd Double 末段结束比值
Properties:
Name Type Description
RightColor Collection ["0xff91c7ae","0xff63869e","0xffc23531",0.2,0.8,1]

SetRightDownColor(strWaterFirstColor, strWaterSecondColor, strWaterThirdColor, nWaterStart, nWaterCenter, nWateraEnd)

右下表颜色
Parameters:
Name Type Description
strWaterFirstColor String 表盘开始颜色
strWaterSecondColor String 表盘中间颜色
strWaterThirdColor String 表盘结束颜色
nWaterStart Double 初段结束比值
nWaterCenter Double 中段结束比值
nWateraEnd Double 末段结束比值
Properties:
Name Type Description
RightDownColor Collection ["0xff91c7ae","0xff63869e","0xffc23531",0.2,0.8,1]

SetRightDownLabel(strLeft, strMiddle, strRight)

右下表文本
Parameters:
Name Type Description
strLeft String 左侧文本
strMiddle String 中间文本
strRight String 右侧文本
Properties:
Name Type Description
RightDownLabel Collection ["C","示例3","H"]

SetRightDownSize(strSize)

右下表大小
Parameters:
Name Type Description
strSize String 右侧水表大小
Properties:
Name Type Description
RightDownSize String "30%"

SetRightDownValue(dValue)

右下表数值
Parameters:
Name Type Description
dValue Double 右侧仪表盘水表数值
Properties:
Name Type Description
RightDownValue Double 0.5

SetRightTopLabel(strLeft, strMiddle, strRight)

右上表文本
Parameters:
Name Type Description
strLeft String 左侧文本
strMiddle String 中间文本
strRight String 右侧文本
Properties:
Name Type Description
RightTopLabel Collection ["E","示例4","F"]

SetRightTopValue(dValue)

右上表数值
Parameters:
Name Type Description
dValue Double 油表数值
Properties:
Name Type Description
RightTopValue Double 0.5

SetRightUpSize(strSize)

右上表大小
Parameters:
Name Type Description
strSize String 右侧油表大小
Properties:
Name Type Description
RightUpSize String "30%"