Class Tools.StickyCreateTool
Extends
Tools.Tool.
Represents the tool for creating Annotations.StickyAnnotation.
Constructor Attributes | Constructor Name and Description |
---|---|
Tools.StickyCreateTool(docViewer)
Creates a new instance of the StickyCreateTool.
|
- Fields borrowed from class Tools.Tool:
- docViewer, pageCoordinates
- Methods borrowed from class Tools.Tool:
- contextMenu, getDocumentViewer, keyDown, mouseDoubleClick, mouseLeftDown, mouseLeftUp, mouseMove, switchIn, switchOut
Event Attributes | Event Name and Description |
---|---|
annotationAdded(evt, annotation)
Triggered when an annotation has been added to the document by the tool
|
|
annotationCreated(evt, annotations)
Triggered when an annotation has been created by the tool
|
Class Detail
Tools.StickyCreateTool(docViewer)
Creates a new instance of the StickyCreateTool.
- Parameters:
- {CoreControls.DocumentViewer} docViewer
- an instance of DocumentViewer.
Event Detail
annotationAdded(evt, annotation)
Triggered when an annotation has been added to the document by the tool
- Parameters:
- {object} evt
- Event object
- {Annotations.Annotation} annotation
- The annotation that was added
annotationCreated(evt, annotations)
Triggered when an annotation has been created by the tool
- Parameters:
- {object} evt
- Event object
- {Annotations.Annotation} annotations
- The annotation that was created