RichLabel

Glodon.Bimface.Plugins.Drawable. RichLabel

富文本标签类

Constructor

new RichLabel(richLabelConfig)

Parameters:
Name Type Description
richLabelConfig Glodon.Bimface.Plugins.Drawable.RichLabelConfig

配置参数

Extends

Methods

draw(context)

Inherited From:

绘制方法

Parameters:
Name Type Description
context Glodon.Bimface.Plugins.Drawable.DrawableContext

绘制上下文

getTooltip() → {String}

Inherited From:

获取Tooltip的文字

Returns:
Type Description
String

tip 文字

getTooltipStyle() → {Object}

Inherited From:

获取Tooltip的样式

Returns:
Type Description
Object

CSS 样式对象

getWorldPosition() → {Glodon.Web.Geometry.Point3d}

Inherited From:

获取世界坐标点

Returns:
Type Description
Glodon.Web.Geometry.Point3d

坐标位置

hide()

Inherited From:

隐藏标签

onClick(callback)

Inherited From:

设置左键单击回调函数

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

回调函数

setTooltip(tip)

Inherited From:

设置Tooltip的文字

Parameters:
Name Type Description
tip String

文字

setTooltipStyle(CSS)

Inherited From:

设置Tooltip的样式

Parameters:
Name Type Description
CSS Object

样式对象

setWorldPosition(position)

Inherited From:

设置世界坐标点

Parameters:
Name Type Description
position Glodon.Web.Geometry.Point3d

坐标位置

show()

Inherited From:

显示标签