Class Index

Classes


Class Tools.TextTool


Extends Tools.AnnotationSelectTool.
Represents an extendable class for text-based tool.

Class Summary
Constructor Attributes Constructor Name and Description
 
Tools.TextTool(docViewer)
Field Summary
Field Attributes Field Name and Description
 
Selection mode used by text tools (structural or rectangular)
Fields borrowed from class Tools.AnnotationSelectTool:
overrideSelection, PAGE_PADDING
Fields borrowed from class Tools.Tool:
docViewer, pageCoordinates
Method Summary
Method Attributes Method Name and Description
 
select(pagePt1, pagePt2)
Select text based on two points
 
textSelected(quads, text, text)
The function called when a text region is selected.
Methods borrowed from class Tools.Tool:
contextMenu, getDocumentViewer, keyDown, mouseDoubleClick, mouseLeftDown, mouseLeftUp, mouseMove, switchIn, switchOut
Class Detail
Tools.TextTool(docViewer)
Parameters:
{CoreControls.DocumentViewer} docViewer
an instance of DocumentViewer.
Field Detail
{string} SELECTION_MODE
Selection mode used by text tools (structural or rectangular)
Method Detail
select(pagePt1, pagePt2)
Select text based on two points
Parameters:
{object} pagePt1
The start point to select from. Is an object with pageIndex, x and y properties.
{object} pagePt2
The end point to select to. Is an object with pageIndex, x and y properties.

textSelected(quads, text, text)
The function called when a text region is selected.
Parameters:
quads
the quad coordinates fo the selected text.
{string} text
the text selected.
text

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Sep 09 2016 14:32:43 GMT-0700 (PDT)