/**
* @constructor
*/
function XUITopology() {
}
XUITopology.prototype = {
//事件
/**
* 单元点击事件
* @eventname XUI_CLL_CLICK
* @eventid 0x00001005
*/
/**
* 末节点点击事件
* @eventname XUI_LASTNODE_CLICK
* @eventid 0x00001006
*/
/**
* 单元鼠标悬浮事件
* @eventname XUI_CLL_MOUSEOVER
* @eventid 0x00001007
*/
/**
* 单元鼠标右击事件
* @eventname XUI_CLL_CONTEXTMENU
* @eventid 0x00001010
*/
/**
* 小节点点击事件
* @eventname XUI_NODE_CLICK
* @eventid 0x00001012
*/
/**
* 小节点悬浮事件
* @eventname XUI_NODE_MOUSEOVER
* @eventid 0x00001013
*/
/**
* 小节点鼠标右击事件
* @eventname XUI_NODE_CONTEXTMENU
* @eventid 0x00001014
*/
/**
* 鼠标离开单元事件
* @eventname XUI_CLL_MOUSELEAVE
* @eventid 0x00001015
*/
/**
* 鼠标离开小节点事件
* @eventname XUI_NODE_MOUSELEAVE
* @eventid 0x00001017
*/
/**
* 单元双击事件
* @eventname XUI_CLL_DBCLICK
* @eventid 0x00001018
*/
//接口
/**
* 模式
* @param {Number} nMode 模式
* @property {Number} Mode 0
*/
SetMode:function (nMode) {
},
/**
* 单元状态
* @param {Number} nId id
* @param {Number} nState 状态0,1,2,3,4对应 灰,绿,蓝,黄,红
*/
SetCellStateById:function (nId,nState) {
},
/**
* 单元Icon状态
* @param {Number} nId id
* @param {Boolean} bState false暗,true亮
*/
SetCellIconStateById:function (nId,bState) {
},
/**
* 信号路径
* @param {Number} nIdStart 起点单元id
* @param {Number} nIdEnd 终点单元id
* @param {Number} nState 状态
*/
SetSignalPath:function (nIdStart,nIdEnd,nState) {
},
/**
* 信号状态颜色
* @param {String} strColor0 状态0颜色
* @param {String} strColor1 状态1颜色
* @param {String} strColor2 状态2颜色
* @param {String} strColor3 状态3颜色
* @property {Collection} SignalStateColor ["0xff8192B8", "0xffFFCD42", "0xffff0000","0xff007ACC"]
*/
SetSignalStateColor:function (strColor0,strColor1,strColor2,strColor3) {
},
/**
* 其他信号
* @param {Number} nId id
* @param {Number} nState 状态
*/
SetOtherSignalState:function (nId,nState) {
},
/**
* 换肤
* @param {Number} nSkin 颜色
*/
SetSkin:function (nSkin) {
},
/**
* 时差监测Tab标题
* @param {String} strText 标题
*/
SetTabTitle:function (strText) {
},
/**
* 时差监测Tab标题文字大小
* @param {Number} nSize 标题
*/
SetTabTitleSize:function (nSize) {
},
/**
* 时差监测Tab标题文字颜色
* @param {String} strColor 颜色
*/
SetTabTitleColor:function (strColor) {
},
/**
* 所有块文字颜色
* @param {String} strColor 颜色
* @property {Color} AllTextColor "0xffffffff"
*/
SetAllTextColor:function (strColor) {
},
/**
* 所有节点文字颜色
* @param {String} strColor 颜色
* @property {Color} AllNodeTextColor "0xffffffff"
*/
SetAllNodeTextColor:function (strColor) {
},
/**
* 所有模块标题颜色
* @param {String} strColor 颜色
* @property {Color} AllMoudleTitleColor "0xffffffff"
*/
SetAllMoudleTitleColor:function (strColor) {
},
/**
* 某模块标题
* @param {Number} nIndex 模块索引
* @param {String} strTitle 标题
*/
SetMoudleTitleByIndex:function (nIndex,strTitle) {
},
/**
* 所有模块标题大小
* @param {Number} nSize 大小
* @property {Number} MoudleTitleSize 16
*/
SetMoudleTitleSize:function (nSize) {
},
/**
* 单元背景
* @param {Number} nId 单元id
* @param {ImageProp} strImg 背景
*/
SetCellBackgroundById:function (nId,strImg) {
},
/**
* 单元Icon
* @param {Number} nId 单元id
* @param {ImageProp} strImg Icon
*/
SetCellIconById:function (nId,strImg) {
},
/**
* 节点内容
* @param {Number} nIdM 模块id
* @param {Number} nIdN id
* @param {String} strText 内容
*/
SetAllNodeTextById:function (nIdM,nIdN,strText) {
},
/**
* 所有节点文字大小
* @param {Number} nSize 大小
*/
SetAllNodeTextSize:function (nSize) {
},
/**
* 所有节点边框颜色
* @param {String} strColor 颜色
* @property {Color} AllNodeBorderColor "0xff073f74"
*/
SetAllNodeBorderColor:function (strColor) {
},
/**
* 所有节点边框换肤颜色
* @param {String} strColor 颜色
* @property {Color} AllNodeBorderColorGreen "0xff1B4324"
*/
SetAllNodeBorderColorGreen:function (strColor) {
},
/**
* 所有节点背景颜色
* @param {String} strColor 颜色
* @property {Color} AllNodeBgColor "0xff0B1733"
*/
SetAllNodeBgColor:function (strColor) {
},
/**
* 所有节点换肤后背景颜色
* @param {String} strColor 颜色
* @property {Color} AllNodeBgColorGreen "0xff0B1733"
*/
SetAllNodeBgColorGreen:function (strColor) {
},
/**
* 单个节点边框颜色
* @param {Number} nIdM 模块id
* @param {Number} nIdN id
* @param {String} strColor 颜色
*/
SetAllNodeBorderColorById:function (nIdM,nIdN,strColor) {
},
/**
* 单元文字
* @param {Number} nIdN id
* @param {String} strMainText 主文字
* @param {String} strSubText 副文字
*/
SetCellTextById:function (nIdN,strMainText,strSubText) {
},
/**
* 所有单元文字大小
* @param {Number} nSize 文字大小
*/
SetAllCellTextSize:function (nSize) {
},
/**
* 单元副文字大小
* @param {Number} nId 单元id
* @param {Number} nSize 大小
*/
SetCellIdSizeById:function (nId,nSize) {
},
/**
* 所有单元Id大小
* @param {Number} nSize 大小
* @property {Number} AllCellIdSize 12
*/
SetAllCellIdSize:function (nSize) {
},
/**
* 末节点面板文字
* @param {Number} nId id
* @param {String} strText 文字
*/
SetLastNodeTextById:function (nId,strText) {
},
/**
* 末节点面板文字颜色
* @param {Number} nId id
* @param {String} strColor 颜色
*/
SetLastNodeTextColorById:function (nId,strColor) {
},
/**
* 末节点面板文字大小
* @param {Number} nId id
* @param {Number} nSize 大小
*/
SetLastNodeTextSizeById:function (nId,nSize) {
},
/**
* 所有末节点面板文字大小
* @param {Number} nSize 大小
*/
SetAllLastNodeTextSize:function (nSize) {
},
/**
* 末节点状态
* @param {Number} nNode 序号,末节点01,则是1
* @param {Number} nState 0普通,1选中,2报警
*/
SetLastNodeState:function (nNode,nState) {
},
/**
* 末节点面板背景
* @param {Number} nId id
* @param {ImageProp} strImg 背景
*/
SetAllLastNodeBgById:function (nId,strImg) {
},
/**
* 获得所有块文字颜色
* @return {String}
*/
GetAllTextColor:function () {
},
/**
* 获得所有节点文字颜色
* @return {String}
*/
GetAllNodeTextColor:function () {
},
/**
* 获得所有模块标题颜色
* @return {String}
*/
GetAllMoudleTitleColor:function () {
},
/**
* 获得模块标题
* @param {Number} nIndex 模块索引
* @return {String}
*/
GetMoudleTitleByIndex:function (nIndex) {
},
/**
* 获得所有模块标题大小
* @return {Number}
*/
GetMoudleTitleSize:function () {
},
/**
* 获得单元背景
* @param {Number} nId 单元id
* @return {String}
*/
GetCellBackgroundById:function (nId) {
},
/**
* 获得单元Icon
* @param {Number} nId 单元id
* @return {String}
*/
GetCellIconById:function (nId) {
},
/**
* 获得节点内容
* @param {Number} nIdM 模块id
* @param {Number} nIdN id
* @return {String}
*/
GetAllNodeTextById:function (nIdM,nIdN) {
},
/**
* 获得所有节点文字大小
* @return {Number}
*/
GetAllNodeTextSize:function () {
},
/**
* 获得所有节点边框颜色
* @return {String}
*/
GetAllNodeBorderColor:function () {
},
/**
* 获得所有节点背景颜色
* @return {String}
*/
GetAllNodeBgColor:function () {
},
/**
* 获得单个节点边框颜色
* @param {Number} nIdM 模块id
* @param {Number} nIdN id
* @return {String}
*/
GetAllNodeBorderColorById:function (nIdM,nIdN) {
},
/**
* 获得所有节点边框换肤颜色
* @property {String}
*/
GetAllNodeBorderColorGreen:function () {
},
/**
* 获得所有节点背景换肤颜色
* @return {String}
*/
GetAllNodeBgColorGreen:function () {
},
/**
* 获得单元文字
* @param {Number} nId 单元id
* @return {Array}
*/
GetCellTextById:function (nId) {
},
/**
* 获得所有单元文字大小
* @return {Number}
*/
GetAllCellTextSize:function () {
},
/**
* 获得单元Id大小
* @param {Number} nId 单元id
* @return {Number}
*/
GetCellIdSizeById:function (nId) {
},
/**
* 获得所有单元Id大小
*/
GetAllCellIdSizeById:function () {
},
/**
* 获得末节点面板文字
* @param {Number} nId id
* @return {String}
*/
GetLastNodeTextById:function (nId) {
},
/**
* 获得末节点面板文字颜色
* @param {Number} nId id
* @return {String}
*/
GetLastNodeTextColorById:function (nId) {
},
/**
* 获得末节点面板文字大小
* @param {Number} nId id
* @return {Number}
*/
GetLastNodeTextSizeById:function (nId) {
},
/**
* 获得所有末节点面板文字大小
* @return {Number}
*/
GetAllLastNodeTextSize:function () {
},
/**
* 获得末节点面板背景
* @param {Number} nId id
*/
GetAllLastNodeBgById:function (nId) {
},
}