multivalent.std

Class OcrView

public class OcrView extends Behavior implements ImageObserver

Base class for OCR media adaptors. Services: load background image, selectable modes, sets

Version: $Revision: 1.7 $ $Date: 2002/04/01 08:44:48 $

See Also: FixedLeafOCR berkeley.adaptor.Xdoc berkeley.adaptor.PDA

Field Summary
static StringMENU_CATEGORY
Menu category for OCR-related options ("OCR").
static StringMODE_IMAGE_ONLY
static StringMSG_IMAGE
Request Image-only view.
static StringMSG_IMAGE_OCR
Request Image-OCR hybrid view.
static StringMSG_OCR
Request OCR-only view.
static StringVAR_FULLIMAGE
Key into Document variables to java.awt.Image of full page.
Method Summary
voidbuildAfter(Document doc)
booleanformatAfter(Node node)
booleanimageUpdate(Image img, int infoflags, int x, int y, int width, int height)
booleanpaintBefore(Context cx, Node node)
booleansemanticEventAfter(SemanticEvent se, String msg)
Messages recognized:
  • viewImageOCR
  • viewOCR
  • viewImage
booleansemanticEventBefore(SemanticEvent se, String msg)

Field Detail

MENU_CATEGORY

public static final String MENU_CATEGORY
Menu category for OCR-related options ("OCR").

MODE_IMAGE_ONLY

public static final String MODE_IMAGE_ONLY

See Also: SIGNAL MODE_IMAGE MODE_OCR

MSG_IMAGE

public static final String MSG_IMAGE
Request Image-only view.

"viewImage".

MSG_IMAGE_OCR

public static final String MSG_IMAGE_OCR
Request Image-OCR hybrid view.

"viewImageOCR".

MSG_OCR

public static final String MSG_OCR
Request OCR-only view.

"viewOCR".

VAR_FULLIMAGE

public static final String VAR_FULLIMAGE
Key into Document variables to java.awt.Image of full page.

Method Detail

buildAfter

public void buildAfter(Document doc)

formatAfter

public boolean formatAfter(Node node)

imageUpdate

public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height)

paintBefore

public boolean paintBefore(Context cx, Node node)

semanticEventAfter

public boolean semanticEventAfter(SemanticEvent se, String msg)
Messages recognized:

semanticEventBefore

public boolean semanticEventBefore(SemanticEvent se, String msg)