|
Multivalent API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmultivalent.VObject
multivalent.Behavior
multivalent.std.OcrView
Base class for OCR media adaptors. Services: load background image, selectable modes, sets
FixedLeafOCR
,
berkeley.adaptor.Xdoc
,
berkeley.adaptor.PDA
Field Summary | |
---|---|
static java.lang.String |
MENU_CATEGORY
Menu category for OCR-related options ("OCR"). |
static java.lang.String |
MODE_IMAGE_ONLY
|
static java.lang.String |
MSG_IMAGE
Request Image-only view. |
static java.lang.String |
MSG_IMAGE_OCR
Request Image-OCR hybrid view. |
static java.lang.String |
MSG_OCR
Request OCR-only view. |
static java.lang.String |
VAR_FULLIMAGE
Key into Document variables to Image of full page. |
Fields inherited from class multivalent.Behavior |
---|
ATTR_BEHAVIOR, name_ |
Fields inherited from class multivalent.VObject |
---|
attr_ |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
OcrView()
|
Method Summary | |
---|---|
void |
buildAfter(Document doc)
Traverses all behaviors from lowest to highest priority, during which tweaks hack their content into the tree, |
boolean |
formatAfter(Node node)
A tree walk protocol, called after observed node has been formatted. |
boolean |
imageUpdate(java.awt.Image img,
int infoflags,
int x,
int y,
int width,
int height)
|
boolean |
paintBefore(Context cx,
Node node)
A tree walk protocol, called before observed node has been painted. |
boolean |
semanticEventAfter(SemanticEvent se,
java.lang.String msg)
Messages recognized: viewImageOCR viewOCR viewImage |
boolean |
semanticEventBefore(SemanticEvent se,
java.lang.String msg)
Round robin distribution to all behaviors. |
Methods inherited from class multivalent.Behavior |
---|
buildBefore, checkRep, clipboardAfter, clipboardBefore, createUI, destroy, eventAfter, eventBefore, formatBefore, getBrowser, getDocument, getInstance, getInstance, getLayer, getLogger, getName, getPreference, getRoot, isEditable, paintAfter, putPreference, redo, restore, restoreChildren, save, setName, toString, undo |
Methods inherited from class multivalent.VObject |
---|
attrEntrySetIterator, attrKeysIterator, clearAttributes, getAttr, getAttr, getAttributes, getGlobal, getValue, hasAttributes, putAttr, removeAttr, setAttributes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MENU_CATEGORY
public static final java.lang.String MSG_IMAGE_OCR
"viewImageOCR".
public static final java.lang.String MSG_OCR
"viewOCR".
public static final java.lang.String MSG_IMAGE
"viewImage".
public static final java.lang.String MODE_IMAGE_ONLY
FixedLeafOCR.SIGNAL
,
FixedLeafOCR.MODE_IMAGE
,
FixedLeafOCR.MODE_OCR
,
Constant Field Valuespublic static final java.lang.String VAR_FULLIMAGE
Image
of full page.
Constructor Detail |
---|
public OcrView()
Method Detail |
---|
public boolean semanticEventBefore(SemanticEvent se, java.lang.String msg)
Behavior
semanticEventBefore
in class Behavior
public boolean semanticEventAfter(SemanticEvent se, java.lang.String msg)
semanticEventAfter
in class Behavior
public boolean imageUpdate(java.awt.Image img, int infoflags, int x, int y, int width, int height)
imageUpdate
in interface java.awt.image.ImageObserver
public void buildAfter(Document doc)
Behavior
buildAfter
in class Behavior
public boolean formatAfter(Node node)
Behavior
formatAfter
in class Behavior
public boolean paintBefore(Context cx, Node node)
Behavior
paintBefore
in class Behavior
|
Multivalent API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |