AnalyzerRenderer Class
Represent the Analyzer Renderer. It's used to calculate the analyzer ink rendering in HTML5 canvas
Constructor
AnalyzerRenderer
(
-
context
Parameters:
-
contextObject
Item Index
Methods
_drawCell
(
private
-
cell -
context -
parameters
Draw a cell
Parameters:
-
cellAnalyzerCell -
contextObject -
parametersPenParameters
_drawCharacter
(
private
-
character -
context -
parameters
Draw character component
Parameters:
-
characterCharacterInputComponent -
contextObject -
parametersPenParameters
_drawGroups
(
private
-
components -
groups -
context -
parameters
Draw Groups
Parameters:
-
componentsAbstractComponent[] -
groupsAnalyzerGroup[] -
contextObject -
parametersPenParameters
_drawLine
(
private
-
p1 -
p2 -
context -
parameters
Draw a line on context
Parameters:
-
p1Point -
p2Point -
contextObject -
parametersPenParameters
_drawRectangle
(
private
-
rectangle -
context -
parameters
Draw a rectangle on context
Parameters:
-
rectangleRectangle -
contextObject -
parametersPenParameters
_drawStroke
(
private
-
stroke -
context -
parameters
Draw stroke component
Parameters:
-
strokeStrokeComponent -
contextObject -
parametersPenParameters
_drawTables
(
private
-
components -
tables -
context -
parameters
Draw table
Parameters:
-
componentsAbstractComponent[] -
tablesAnalyzerTable[] -
contextObject -
parametersPenParameters
_drawText
(
private
-
boundingBox -
text -
justificationType -
textHeight -
baseline -
context -
parameters
Draw text on analyser
Parameters:
-
boundingBoxRectangle -
textString -
justificationTypeString -
textHeightNumber -
baselineNumber -
contextObject -
parametersPenParameters
_drawTextLines
(
private
-
components -
textLines -
context -
parameters
Draw the text line
Parameters:
-
componentsAbstractComponent[] -
textLinesAnalyzerTextLine[] -
contextObject -
parametersPenParameters
_drawUnderline
(
private
-
boundingBox -
underline -
text -
textHeight -
context -
parameters
Draw Underline
Parameters:
-
boundingBoxRectangle -
underlineAnalyzerUnderline -
textString -
textHeightNumber -
contextObject -
parametersPenParameters
clear
()
Clear the recognition context
drawRecognitionResult
(
-
components -
recognitionResult
Draw shape recognition result on HTML5 canvas
Parameters:
-
componentsAbstractComponent[] -
recognitionResultAnalyzerDocument
getShowBoundingBoxes
()
Boolean
This property is use to show or not show the bounding box
Returns:
Boolean:
setShowBoundingBoxes
(
-
showBoundingBoxes
Set the show state of bounding box
Parameters:
-
showBoundingBoxesBoolean
