multivalent.std.adaptor.pdf

Class Anno

public abstract class Anno extends Behavior

Superclass for PDF annotations. Provides methods for mapping PDF's geometric positions to structural, Individual annotations are implemented with separate behaviors (see subclass links), which generally convert PDF-specific annotation to format-independent Multivalent.

Version: $Revision: 1.5 $ $Date: 2003/06/01 06:57:26 $

Field Summary
static StringLAYER
static StringMSG_CREATE
Announce a PDF annotation found on the page that some handler (another behavior) should create.
static StringMSG_EXECUTE
Request execution of PDF annotation.
Method Summary
protected booleancheckArgs(String subtype, SemanticEvent se)
Returns true if semantic event is a PDF annotation, /Subtype matches subtype, and event's argument are valid.
protected SpancreateSpan(SemanticEvent se, String logical, String bename)
Given /Rect (and handle to PDF) in semantic event, convert to Span.
protected voiddecorate()
Applies appearance properties common to all (most) annotation types.
booleansemanticEventAfter(SemanticEvent se, String msg)

Field Detail

LAYER

public static final String LAYER

MSG_CREATE

public static final String MSG_CREATE
Announce a PDF annotation found on the page that some handler (another behavior) should create.

"pdfAnnoCreate": arg= Dict annotation-dictionary, in= PDF handle to this behavior (for fetching component objects), out=root of PDF document tree.

MSG_EXECUTE

public static final String MSG_EXECUTE
Request execution of PDF annotation.

"pdfAnnoCreate": arg= Dict annotation-dictionary, in= PDF handle to this behavior (for fetching component objects), out=root of PDF document tree.

Method Detail

checkArgs

protected boolean checkArgs(String subtype, SemanticEvent se)
Returns true if semantic event is a PDF annotation, /Subtype matches subtype, and event's argument are valid.

createSpan

protected Span createSpan(SemanticEvent se, String logical, String bename)
Given /Rect (and handle to PDF) in semantic event, convert to Span.

decorate

protected void decorate()
Applies appearance properties common to all (most) annotation types.

semanticEventAfter

public boolean semanticEventAfter(SemanticEvent se, String msg)