Class TextAnnotationEditProcessor

This class to handle the text annotation edit process

Hierarchy

  • TextAnnotationEditProcessor

Index

Constructors

constructor

Properties

Private endPoint

endPoint: Point = new Fovia.Util.Point(0, 0)

Protected renderEngine

renderEngine: any

Private selectedAnnotation

selectedAnnotation: TextGraphicAnnotation = null

Private startPoint

startPoint: Point = new Fovia.Util.Point(0, 0)

Private textEditMode

textEditMode: TextEditMode = Fovia.UI.TextEditMode.none

Protected viewport

viewport: HTMLViewport

Methods

move

  • move(currentPoint: Point): void
  • Handle the mouse move events.

    Highlight the annotation, if the current mouse point is matches with selected annotation.

    We are able to move text annotation in and around the display area.

    And also, update the bounding points.

    Parameters

    Returns void

processSelection

  • description

    Check with current mouse point and selected Annotation. If the points are equal, set the highlight flag as true, otherwise false

    Parameters

    Returns boolean

    Returns true in success case false on failure case

reset

  • reset(): void
  • description

    Reset the selected annotation.

    Returns void

Private updateTextEditMode

  • updateTextEditMode(): void
  • description

    Update text edit mode.

    Returns void