Frame / SView / Commands / AnnotationCommandView
Class: AnnotationCommandView
SView.Commands.AnnotationCommandView
Memberof
SView.Commands
Description
文本批注View
Author
WZ
Date
2022-8-06
Version
1.0
Copyright
All Rights Reserved. Copyright (C) 2022 HOTEAMSOFT, Ltd
Hierarchy
-
↳
AnnotationCommandView
Table of contents
Constructors
Properties
- annotationCommand
- annotationDialog
- command
- eventBinding
- isCreateSuccess
- isMouseLeftMove
- isMovePoint
- modelpath
- useEvent
Methods
- addCommandTouchHandle
- apply
- cancel
- close
- createAnnotation
- deleteAnnotation
- editAnnotation
- getAnnotationDialog
- getCommand
- getCurrentParameter
- getUseEvent
- init
- interrupt
- isSingleClick
- ok
- onKeyEvent
- onMouseEvent
- onTouchEvent
- preview
- removeCommandTouchHandle
- resume
- setAnnotationSecondPoint
- setCommand
- setCurrentParameter
- setOnClick
- setUseEvent
- showDialog
- vertify
Constructors
constructor
• new AnnotationCommandView(): AnnotationCommandView
Returns
Description
创建后退播放命令View对象
Overrides
Properties
annotationCommand
• annotationCommand: AnnotationCommand
= null
annotationDialog
• annotationDialog: Dialog
command
• command: SCommand
Inherited from
eventBinding
• eventBinding: boolean
Inherited from
isCreateSuccess
• isCreateSuccess: number
= CommandExecuteResult.Failure
isMouseLeftMove
• isMouseLeftMove: boolean
Inherited from
isMovePoint
• isMovePoint: boolean
= false
modelpath
• modelpath: string
= "0"
useEvent
• useEvent: boolean
Inherited from
Methods
addCommandTouchHandle
▸ addCommandTouchHandle(): void
Returns
void
Description
添加触摸事件
Inherited from
SCommandView.addCommandTouchHandle
apply
▸ apply(): void
Returns
void
Description
引用
Inherited from
cancel
▸ cancel(): void
Returns
void
Description
取消
Inherited from
close
▸ close(): void
Returns
void
Description
关闭Command
Inherited from
createAnnotation
▸ createAnnotation(sender
, e
): number
Parameters
Name | Type | Description |
---|---|---|
sender | Input | input对象 |
e | MouseEventArgs | TouchEventArgs | 鼠标事件 |
Returns
number
Description
创建批注
deleteAnnotation
▸ deleteAnnotation(): boolean
Returns
boolean
Description
删除创建的批注(鼠标移动是已经创建批注)
editAnnotation
▸ editAnnotation(sender
, e
): boolean
Parameters
Name | Type | Description |
---|---|---|
sender | Input | input对象 |
e | MouseEventArgs | TouchEventArgs | 鼠标事件 |
Returns
boolean
Description
编辑批注
getAnnotationDialog
▸ getAnnotationDialog(): Dialog
Returns
Description
获取文本批注弹窗
getCommand
▸ getCommand(): SCommand
Returns
Description
获取命令
Inherited from
getCurrentParameter
▸ getCurrentParameter(): any
Returns
any
Description
获取当前配置
Inherited from
SCommandView.getCurrentParameter
getUseEvent
▸ getUseEvent(): boolean
Returns
boolean
Description
是否使用鼠标事件
Inherited from
init
▸ init(): number
Returns
number
Description
初始化View
Inherited from
interrupt
▸ interrupt(): void
Returns
void
Description
中断