XUIFlatGauge()

new XUIFlatGauge()

Methods

GetCenterCircleColor() → {String}

获取中心圆颜色
Returns:
String

GetCenterCircleRadius() → {String}

获取中心圆半径
Returns:
String

GetDetailShow() → {Boolean}

获取中心圈文字显示状态
Returns:
Boolean

GetFirstLineColor() → {String}

获取最外圈轴线颜色
Returns:
String

GetFirstLineRadius() → {String}

获取最外圈轴线半径
Returns:
String

GetFirstLineShow() → {Boolean}

获取最外圈轴线显示状态
Returns:
Boolean

GetFirstLineWidth() → {Number}

获取最外圈轴线宽度
Returns:
Number

GetSecLineAfterColor() → {String}

获取外圈进度轴运行后颜色
Returns:
String

GetSecLineBeforeColor() → {String}

获取外圈进度轴运行前颜色
Returns:
String

GetSecLineRadius() → {String}

获取外圈进度轴半径
Returns:
String

GetSecLineShow() → {Boolean}

获取外圈进度轴显示状态
Returns:
Boolean

GetSecLineWidth() → {Number}

获取外圈进度轴宽度
Returns:
Number

GetThirdLineAfterColor() → {String}

获取内圈进度轴运行后颜色
Returns:
String

GetThirdLineBeforeColor() → {String}

获取内圈进度轴运行前颜色
Returns:
String

GetThirdLineRadius() → {String}

获取内圈进度轴半径
Returns:
String

GetThirdLineShow() → {Boolean}

获取内圈进度轴显示状态
Returns:
Boolean

GetThirdLineSplitColor() → {String}

获取分隔线颜色
Returns:
String

GetThirdLineSplitLength() → {Number}

获取分隔线长度
Returns:
Number

GetThirdLineSplitShow() → {Boolean}

获取分隔线显示状态
Returns:
Boolean

GetThirdLineSplitWidth() → {Number}

获取分隔线宽度
Returns:
Number

GetThirdLineWidth() → {Number}

获取内圈进度轴宽度
Returns:
Number

SetAngle(nStart, nEnd)

设置进度条角度
Parameters:
Name Type Description
nStart Number 开始角度
nEnd Number 结束角度
Properties:
Name Type Description
Angle Collection [-220,40]

SetCenterCircleColor(strColor)

中心圆颜色
Parameters:
Name Type Description
strColor String 中心圆颜色
Properties:
Name Type Description
CenterCircleColor Color "0xff031E43"

SetCenterCircleRadius(strRadius)

中心圆半径
Parameters:
Name Type Description
strRadius String 半径大小
Properties:
Name Type Description
CenterCircleRadius String "55%"

SetCtrlBgColor(strBgColor)

背景颜色
Parameters:
Name Type Description
strBgColor String 背景颜色
Properties:
Name Type Description
CtrlBgColor Color "0xff0A181C"

SetCtrlBgImg()

// * 背景图片 // * @param {ImageProp} strBgImg 背景图片 // * @property {ImageProp} CtrlBgImg "images/bg.png" //

SetDetailShow(bShow)

中心圈文字是否显示
Parameters:
Name Type Description
bShow Boolean 文字是否显示
Properties:
Name Type Description
DetailShow Boolean true

SetDrawColor(bDrawColor)

背景颜色绘制
Parameters:
Name Type Description
bDrawColor Boolean 是否背景颜色绘制
Properties:
Name Type Description
BgDrawColor Boolean true

SetFirstLineColor(strColor)

最外圈轴线颜色
Parameters:
Name Type Description
strColor String 轴线颜色
Properties:
Name Type Description
FirstLineColor Color "0xff01407F"

SetFirstLineRadius(strRadius)

最外圈轴线半径
Parameters:
Name Type Description
strRadius String 轴线半径
Properties:
Name Type Description
FirstLineRadius String "90%"

SetFirstLineShow(bShow)

最外圈轴线是否显示
Parameters:
Name Type Description
bShow Boolean 轴线是否显示
Properties:
Name Type Description
FirstLineShow Boolean true

SetFirstLineWidth(nWidth)

最外圈轴线宽度
Parameters:
Name Type Description
nWidth Number 轴线宽度
Properties:
Name Type Description
FirstLineWidth Number 4

SetPicModel(strModel)

图片绘制模式
Parameters:
Name Type Description
strModel String 绘制模式
Properties:
Name Type Description
PicModel Combo ["no-repeat","repeat-x","repeat-y","repeat"]

SetSecLineColor(strColor1, strColor2)

外圈进度轴颜色
Parameters:
Name Type Description
strColor1 String 运行前颜色
strColor2 String 运行后颜色
Properties:
Name Type Description
SecLineColor Collection ["0xff01407F","0xffff0000"]

SetSecLineRadius(strRadius)

外圈进度轴半径
Parameters:
Name Type Description
strRadius String 轴线半径
Properties:
Name Type Description
SecLineRadius String "86%"

SetSecLineShow(bShow)

外圈进度轴是否显示
Parameters:
Name Type Description
bShow Boolean 是否显示
Properties:
Name Type Description
SecLineShow Boolean true

SetSecLineWidth(nWidth)

外圈进度轴宽度
Parameters:
Name Type Description
nWidth Number 进度轴宽度
Properties:
Name Type Description
SecLineWidth Number 10

SetThirdLineColor(strColor1, strColor2)

内圈进度轴颜色
Parameters:
Name Type Description
strColor1 String 运行后颜色
strColor2 String 运行前颜色
Properties:
Name Type Description
ThirdLineColor Collection ["0xff00E1ff","0xff009ffe"]

SetThirdLineRadius(strRadius)

内圈进度轴半径
Parameters:
Name Type Description
strRadius String 半径大小
Properties:
Name Type Description
ThirdLineRadius String "80%"

SetThirdLineShow(bShow)

内圈进度轴是否显示
Parameters:
Name Type Description
bShow Boolean 是否显示
Properties:
Name Type Description
ThirdLineShow Boolean true

SetThirdLineSplitColor(strColor)

分隔线颜色
Parameters:
Name Type Description
strColor String 分隔线颜色
Properties:
Name Type Description
ThirdLineSplitColor Color "0xff021233"

SetThirdLineSplitLength(nLength)

分隔线长度
Parameters:
Name Type Description
nLength Number 分隔线长度
Properties:
Name Type Description
ThirdLineSplitLength Number 40

SetThirdLineSplitShow(bShow)

分隔线是否显示
Parameters:
Name Type Description
bShow Boolean 是否显示
Properties:
Name Type Description
ThirdLineSplitShow Boolean true

SetThirdLineSplitWidth(nWidth)

分隔线宽度
Parameters:
Name Type Description
nWidth Number 分隔线宽度
Properties:
Name Type Description
ThirdLineSplitWidth Number 8

SetThirdLineWidth(nWidth)

内圈进度轴宽度
Parameters:
Name Type Description
nWidth Number 进度圈宽度
Properties:
Name Type Description
ThirdLineWidth Number 40

SetValue(nValue)

设置进度
Parameters:
Name Type Description
nValue Number 进度
Properties:
Name Type Description
Value Number 68.5