new XUITopology()
Methods
-
GetAllCellIdSizeById()
-
获得所有单元Id大小
-
GetAllCellTextSize() → {Number}
-
获得所有单元文字大小
Returns:
Number -
GetAllLastNodeBgById(nId)
-
获得末节点面板背景
Parameters:
Name Type Description nId
Number id -
GetAllLastNodeTextSize() → {Number}
-
获得所有末节点面板文字大小
Returns:
Number -
GetAllMoudleTitleColor() → {String}
-
获得所有模块标题颜色
Returns:
String -
GetAllNodeBgColor() → {String}
-
获得所有节点背景颜色
Returns:
String -
GetAllNodeBgColorGreen() → {String}
-
获得所有节点背景换肤颜色
Returns:
String -
GetAllNodeBorderColor() → {String}
-
获得所有节点边框颜色
Returns:
String -
GetAllNodeBorderColorById(nIdM, nIdN) → {String}
-
获得单个节点边框颜色
Parameters:
Name Type Description nIdM
Number 模块id nIdN
Number id Returns:
String -
GetAllNodeBorderColorGreen()
-
获得所有节点边框换肤颜色
Properties:
Type Description String -
GetAllNodeTextById(nIdM, nIdN) → {String}
-
获得节点内容
Parameters:
Name Type Description nIdM
Number 模块id nIdN
Number id Returns:
String -
GetAllNodeTextColor() → {String}
-
获得所有节点文字颜色
Returns:
String -
GetAllNodeTextSize() → {Number}
-
获得所有节点文字大小
Returns:
Number -
GetAllTextColor() → {String}
-
获得所有块文字颜色
Returns:
String -
GetCellBackgroundById(nId) → {String}
-
获得单元背景
Parameters:
Name Type Description nId
Number 单元id Returns:
String -
GetCellIconById(nId) → {String}
-
获得单元Icon
Parameters:
Name Type Description nId
Number 单元id Returns:
String -
GetCellIdSizeById(nId) → {Number}
-
获得单元Id大小
Parameters:
Name Type Description nId
Number 单元id Returns:
Number -
GetCellTextById(nId) → {Array}
-
获得单元文字
Parameters:
Name Type Description nId
Number 单元id Returns:
Array -
GetLastNodeTextById(nId) → {String}
-
获得末节点面板文字
Parameters:
Name Type Description nId
Number id Returns:
String -
GetLastNodeTextColorById(nId) → {String}
-
获得末节点面板文字颜色
Parameters:
Name Type Description nId
Number id Returns:
String -
GetLastNodeTextSizeById(nId) → {Number}
-
获得末节点面板文字大小
Parameters:
Name Type Description nId
Number id Returns:
Number -
GetMoudleTitleByIndex(nIndex) → {String}
-
获得模块标题
Parameters:
Name Type Description nIndex
Number 模块索引 Returns:
String -
GetMoudleTitleSize() → {Number}
-
获得所有模块标题大小
Returns:
Number -
SetAllCellIdSize(nSize)
-
所有单元Id大小
Parameters:
Name Type Description nSize
Number 大小 Properties:
Name Type Description AllCellIdSize
Number 12 -
SetAllCellTextSize(nSize)
-
所有单元文字大小
Parameters:
Name Type Description nSize
Number 文字大小 -
SetAllLastNodeBgById(nId, strImg)
-
末节点面板背景
Parameters:
Name Type Description nId
Number id strImg
ImageProp 背景 -
SetAllLastNodeTextSize(nSize)
-
所有末节点面板文字大小
Parameters:
Name Type Description nSize
Number 大小 -
SetAllMoudleTitleColor(strColor)
-
所有模块标题颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description AllMoudleTitleColor
Color "0xffffffff" -
SetAllNodeBgColor(strColor)
-
所有节点背景颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description AllNodeBgColor
Color "0xff0B1733" -
SetAllNodeBgColorGreen(strColor)
-
所有节点换肤后背景颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description AllNodeBgColorGreen
Color "0xff0B1733" -
SetAllNodeBorderColor(strColor)
-
所有节点边框颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description AllNodeBorderColor
Color "0xff073f74" -
SetAllNodeBorderColorById(nIdM, nIdN, strColor)
-
单个节点边框颜色
Parameters:
Name Type Description nIdM
Number 模块id nIdN
Number id strColor
String 颜色 -
SetAllNodeBorderColorGreen(strColor)
-
所有节点边框换肤颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description AllNodeBorderColorGreen
Color "0xff1B4324" -
SetAllNodeTextById(nIdM, nIdN, strText)
-
节点内容
Parameters:
Name Type Description nIdM
Number 模块id nIdN
Number id strText
String 内容 -
SetAllNodeTextColor(strColor)
-
所有节点文字颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description AllNodeTextColor
Color "0xffffffff" -
SetAllNodeTextSize(nSize)
-
所有节点文字大小
Parameters:
Name Type Description nSize
Number 大小 -
SetAllTextColor(strColor)
-
所有块文字颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description AllTextColor
Color "0xffffffff" -
SetCellBackgroundById(nId, strImg)
-
单元背景
Parameters:
Name Type Description nId
Number 单元id strImg
ImageProp 背景 -
SetCellIconById(nId, strImg)
-
单元Icon
Parameters:
Name Type Description nId
Number 单元id strImg
ImageProp Icon -
SetCellIconStateById(nId, bState)
-
单元Icon状态
Parameters:
Name Type Description nId
Number id bState
Boolean false暗,true亮 -
SetCellIdSizeById(nId, nSize)
-
单元副文字大小
Parameters:
Name Type Description nId
Number 单元id nSize
Number 大小 -
SetCellStateById(nId, nState)
-
单元状态
Parameters:
Name Type Description nId
Number id nState
Number 状态0,1,2,3,4对应 灰,绿,蓝,黄,红 -
SetCellTextById(nIdN, strMainText, strSubText)
-
单元文字
Parameters:
Name Type Description nIdN
Number id strMainText
String 主文字 strSubText
String 副文字 -
SetLastNodeState(nNode, nState)
-
末节点状态
Parameters:
Name Type Description nNode
Number 序号,末节点01,则是1 nState
Number 0普通,1选中,2报警 -
SetLastNodeTextById(nId, strText)
-
末节点面板文字
Parameters:
Name Type Description nId
Number id strText
String 文字 -
SetLastNodeTextColorById(nId, strColor)
-
末节点面板文字颜色
Parameters:
Name Type Description nId
Number id strColor
String 颜色 -
SetLastNodeTextSizeById(nId, nSize)
-
末节点面板文字大小
Parameters:
Name Type Description nId
Number id nSize
Number 大小 -
SetMode(nMode)
-
模式
Parameters:
Name Type Description nMode
Number 模式 Properties:
Name Type Description Mode
Number 0 -
SetMoudleTitleByIndex(nIndex, strTitle)
-
某模块标题
Parameters:
Name Type Description nIndex
Number 模块索引 strTitle
String 标题 -
SetMoudleTitleSize(nSize)
-
所有模块标题大小
Parameters:
Name Type Description nSize
Number 大小 Properties:
Name Type Description MoudleTitleSize
Number 16 -
SetOtherSignalState(nId, nState)
-
其他信号
Parameters:
Name Type Description nId
Number id nState
Number 状态 -
SetSignalPath(nIdStart, nIdEnd, nState)
-
信号路径
Parameters:
Name Type Description nIdStart
Number 起点单元id nIdEnd
Number 终点单元id nState
Number 状态 -
SetSignalStateColor(strColor0, strColor1, strColor2, strColor3)
-
信号状态颜色
Parameters:
Name Type Description strColor0
String 状态0颜色 strColor1
String 状态1颜色 strColor2
String 状态2颜色 strColor3
String 状态3颜色 Properties:
Name Type Description SignalStateColor
Collection ["0xff8192B8", "0xffFFCD42", "0xffff0000","0xff007ACC"] -
SetSkin(nSkin)
-
换肤
Parameters:
Name Type Description nSkin
Number 颜色 -
SetTabTitle(strText)
-
时差监测Tab标题
Parameters:
Name Type Description strText
String 标题 -
SetTabTitleColor(strColor)
-
时差监测Tab标题文字颜色
Parameters:
Name Type Description strColor
String 颜色 -
SetTabTitleSize(nSize)
-
时差监测Tab标题文字大小
Parameters:
Name Type Description nSize
Number 标题