跳到主要内容
版本:v10.0

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

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new AnnotationCommandView(): AnnotationCommandView

Returns

AnnotationCommandView

Description

创建后退播放命令View对象

Overrides

SCommandView.constructor

Properties

annotationCommand

annotationCommand: AnnotationCommand = null


annotationDialog

annotationDialog: Dialog


command

command: SCommand

Inherited from

SCommandView.command


eventBinding

eventBinding: boolean

Inherited from

SCommandView.eventBinding


isCreateSuccess

isCreateSuccess: number = CommandExecuteResult.Failure


isMouseLeftMove

isMouseLeftMove: boolean

Inherited from

SCommandView.isMouseLeftMove


isMovePoint

isMovePoint: boolean = false


modelpath

modelpath: string = "0"


useEvent

useEvent: boolean

Inherited from

SCommandView.useEvent

Methods

addCommandTouchHandle

addCommandTouchHandle(): void

Returns

void

Description

添加触摸事件

Inherited from

SCommandView.addCommandTouchHandle


apply

apply(): void

Returns

void

Description

引用

Inherited from

SCommandView.apply


cancel

cancel(): void

Returns

void

Description

取消

Inherited from

SCommandView.cancel


close

close(): void

Returns

void

Description

关闭Command

Inherited from

SCommandView.close


createAnnotation

createAnnotation(sender, e): number

Parameters

NameTypeDescription
senderInputinput对象
eMouseEventArgs | TouchEventArgs鼠标事件

Returns

number

Description

创建批注


deleteAnnotation

deleteAnnotation(): boolean

Returns

boolean

Description

删除创建的批注(鼠标移动是已经创建批注)


editAnnotation

editAnnotation(sender, e): boolean

Parameters

NameTypeDescription
senderInputinput对象
eMouseEventArgs | TouchEventArgs鼠标事件

Returns

boolean

Description

编辑批注


getAnnotationDialog

getAnnotationDialog(): Dialog

Returns

Dialog

Description

获取文本批注弹窗


getCommand

getCommand(): SCommand

Returns

SCommand

Description

获取命令

Inherited from

SCommandView.getCommand


getCurrentParameter

getCurrentParameter(): any

Returns

any

Description

获取当前配置

Inherited from

SCommandView.getCurrentParameter


getUseEvent

getUseEvent(): boolean

Returns

boolean

Description

是否使用鼠标事件

Inherited from

SCommandView.getUseEvent


init

init(): number

Returns

number

Description

初始化View

Inherited from

SCommandView.init


interrupt

interrupt(): void

Returns

void

Description

中断

Inherited from

SCommandView.interrupt


isSingleClick

isSingleClick(e): boolean

Parameters

NameTypeDescription
eTouchEventArgs触摸事件

Returns

boolean

Description

是否为单击

Inherited from

SCommandView.isSingleClick


ok

ok(): void

Returns

void

Description

确认

Inherited from

SCommandView.ok


onKeyEvent

onKeyEvent(sender, e): boolean

Parameters

NameTypeDescription
senderInputinput对象
eKeyEventArgs键盘事件

Returns

boolean

Description

键盘事件处理

Inherited from

SCommandView.onKeyEvent


onMouseEvent

onMouseEvent(sender, e): boolean

Parameters

NameTypeDescription
senderInputinput对象
eMouseEventArgs鼠标事件

Returns

boolean

Description

鼠标事件监听

Inherited from

SCommandView.onMouseEvent


onTouchEvent

onTouchEvent(sender, e): boolean

Parameters

NameTypeDescription
senderInputinput对象
eTouchEventArgs触摸事件

Returns

boolean

Description

触摸事件监听

Inherited from

SCommandView.onTouchEvent


preview

preview(): void

Returns

void

Description

预显

Inherited from

SCommandView.preview


removeCommandTouchHandle

removeCommandTouchHandle(): void

Returns

void

Description

移除触摸事件

Inherited from

SCommandView.removeCommandTouchHandle


resume

resume(): void

Returns

void

Description

恢复

Inherited from

SCommandView.resume


setAnnotationSecondPoint

setAnnotationSecondPoint(sender, e): boolean

Parameters

NameTypeDescription
senderInputinput对象
eMouseEventArgs | TouchEventArgs鼠标事件

Returns

boolean

Description

编辑第二个点坐标位置信息


setCommand

setCommand(value): void

Parameters

NameType
valueSCommand

Returns

void

Description

设置命令

Inherited from

SCommandView.setCommand


setCurrentParameter

setCurrentParameter(value): void

Parameters

NameType
valueany

Returns

void

Description

设置当前配置

Inherited from

SCommandView.setCurrentParameter


setOnClick

setOnClick(): void

Returns

void

Description

设置弹窗按钮点击事件


setUseEvent

setUseEvent(value): void

Parameters

NameType
valueboolean

Returns

void

Description

设置是否使用鼠标事件

Inherited from

SCommandView.setUseEvent


showDialog

showDialog(isEditText): void

Parameters

NameTypeDescription
isEditTextboolean是否是编辑状态 暂时没用

Returns

void

Description

显示文本批注弹窗


vertify

vertify(): boolean

Returns

boolean

Description

核实?覆盖?

Inherited from

SCommandView.vertify