new XUICabinetDiagram()
Methods
-
ClearEquipmentList()
-
清空机柜设备清单
-
GetBgColor() → {String}
-
获取背景颜色
Returns:
String -
GetBgImage() → {String}
-
获取背景图片
Returns:
String -
GetEquipmentListAlign(nIndex) → {String}
-
获取设备文本对齐方式
Parameters:
Name Type Description nIndex
Number 设备id Returns:
String -
GetEquipmentListColorByIndex(nIndex) → {String}
-
获设备文本颜色
Parameters:
Name Type Description nIndex
Number 设备id Returns:
String -
GetEquipmentListFontSizeByIndex(nIndex) → {Number}
-
获设备文本大小
Parameters:
Name Type Description nIndex
Number 设备id Returns:
Number -
GetTitileColor() → {String}
-
获取标题颜色
Returns:
String -
GetTitileFontSize() → {Number}
-
获取文本大小
Returns:
Number -
GetTitileText() → {String}
-
获取标题文本
Returns:
String -
IsBgDrawColor() → {Boolean}
-
背景是否以颜色绘制
Returns:
Boolean -
SetBgColor(strColor)
-
背景颜色
Parameters:
Name Type Description strColor
String 背景颜色 Properties:
Name Type Description CtrlBgColor
Color "0xff0f1c32" -
SetBgDrawColor(bDrawColor)
-
背景颜色绘制
Parameters:
Name Type Description bDrawColor
Boolean Properties:
Name Type Description BgDrawColor
Boolean true -
SetBgImage(strBgImg)
-
背景图片
Parameters:
Name Type Description strBgImg
ImageProp 背景图片 Properties:
Name Type Description CtrlBgImage
ImageProp "NUODT_JTFA/XUICabinetDiagram/images_blue/bg1.jpg" -
SetEquipmentList(arrUnit, arrType)
-
机柜设备清单
Parameters:
Name Type Description arrUnit
Array 计量单位 arrType
Array 设备类型 -
SetEquipmentListAlign(nIndex, strAlign)
-
设备文本对齐方式
Parameters:
Name Type Description nIndex
Number 设备id strAlign
String 对齐方式 -
SetEquipmentListColorByIndex(nIndex, strColor)
-
设备文本颜色
Parameters:
Name Type Description nIndex
Number 设备id strColor
String 设备文本颜色 -
SetEquipmentListFontSizeByIndex(nIndex, nSize)
-
设备文本大小
Parameters:
Name Type Description nIndex
Number 设备id nSize
Number 设备文本大小 -
SetEquipmentNormalByIndex(nIndex)
-
设备警报
Parameters:
Name Type Description nIndex
Number 索引 -
SetEquipmentWarningByIndex(nIndex)
-
设备警报
Parameters:
Name Type Description nIndex
Number 索引 -
SetScrollBarColor(bgColor, trackColor, ThumbColor, ButtonColor)
-
滚动条颜色
Parameters:
Name Type Description bgColor
String 滚动条颜色 trackColor
String 轨道圆角颜色 ThumbColor
String 滑块颜色 ButtonColor
String 按钮颜色 -
SetScrollBarFacade(nWidth, nTrackR, nThumbR, nButtonH, nButtonR)
-
滚动条样式
Parameters:
Name Type Description nWidth
Number 滚动条宽度 nTrackR
Number 轨道圆角 nThumbR
Number 滑块圆角 nButtonH
Number 按钮高度 nButtonR
Number 按钮圆角 -
SetSkin(nSkin)
-
换肤
Parameters:
Name Type Description nSkin
Number -
SetTitileColor(strColor)
-
标题文本颜色
Parameters:
Name Type Description strColor
String 标题文本颜色 Properties:
Name Type Description TitileColor
Color "0xffffffff" -
SetTitileFontSize(nSize)
-
标题文本大小
Parameters:
Name Type Description nSize
Number 标题文本大小 Properties:
Name Type Description TitileFontSize
Number 13 -
SetTitileText(strName)
-
设置标题文本
Parameters:
Name Type Description strName
String 标题文本 Properties:
Name Type Description CabinetTitileName
String "机柜STO201平面示意图"