Constructor
new Container(boxConfig)
Parameters:
Name | Type | Description |
---|---|---|
boxConfig |
Glodon.Bimface.Plugins.Drawable.ContainerConfig | 配置参数 |
Extends
Methods
draw(context)
绘制方法
Parameters:
Name | Type | Description |
---|---|---|
context |
Glodon.Bimface.Plugins.Drawable.DrawableContext | 绘制上下文 |
getHeight() → {int}
获取高度
Returns:
Type | Description |
---|---|
int |
高度值 |
getTooltip() → {String}
- Inherited From:
获取Tooltip的文字
Returns:
Type | Description |
---|---|
String |
tip 文字 |
getTooltipStyle() → {Object}
- Inherited From:
获取Tooltip的样式
Returns:
Type | Description |
---|---|
Object |
CSS 样式对象 |
getWidth() → {int}
获取宽度
Returns:
Type | Description |
---|---|
int |
宽度值 |
getWorldPosition() → {Glodon.Web.Geometry.Point3d}
- Inherited From:
获取世界坐标点
Returns:
Type | Description |
---|---|
Glodon.Web.Geometry.Point3d |
坐标位置 |
hide()
- Inherited From:
隐藏标签
onClick(callback)
设置左键单击回调函数
Parameters:
Name | Type | Description |
---|---|---|
callback |
function | 回调函数 |
onContextmenu(callback)
设置菜单回调函数
Parameters:
Name | Type | Description |
---|---|---|
callback |
function | 回调函数 |
onEndDrag(callback)
- Inherited From:
设置结束拖动时候的回调函数
Parameters:
Name | Type | Description |
---|---|---|
callback |
function | 回调函数 |
onRightClick(callback)
- Inherited From:
设置右键单击回调函数
Parameters:
Name | Type | Description |
---|---|---|
callback |
function | 回调函数 |
setHeight(height)
设置高度
Parameters:
Name | Type | Description |
---|---|---|
height |
int | 高度值 |
setTooltip(tip)
- Inherited From:
设置Tooltip的文字
Parameters:
Name | Type | Description |
---|---|---|
tip |
String | 文字 |
setTooltipStyle(CSS)
- Inherited From:
设置Tooltip的样式
Parameters:
Name | Type | Description |
---|---|---|
CSS |
Object | 样式对象 |
setWidth(width)
设置宽度
Parameters:
Name | Type | Description |
---|---|---|
width |
int | 宽度值 |
setWorldPosition(position)
- Inherited From:
设置世界坐标点
Parameters:
Name | Type | Description |
---|---|---|
position |
Glodon.Web.Geometry.Point3d | 坐标位置 |
show()
- Inherited From:
显示标签
updateTip(tips, style)
更新tooltip
Parameters:
Name | Type | Description |
---|---|---|
tips |
String | 内容 |
style |
Object | 样式 |