multivalent.std.ui

Class Annos

public class Annos extends Behavior

General annotation functionality: wipe annos from document, ...

Version: $Revision: 1.3 $ $Date: 2002/01/14 21:50:20 $

Field Summary
protected static Color[]annoColors_
protected List<Color>availableColors_
static StringCATEGORY_ZAP
static StringMSG_WIPEALL
Wipes annotations from all pages of current document.
static StringMSG_WIPEPAGE
Wipes annotations from current page.
Method Summary
ColorgetAnnoColor(Color c)
ColorgetAnnoColor()
voidrestoreAnnoColor(Color c)
booleansemanticEventAfter(SemanticEvent se, String msg)
Implements MSG_WIPEPAGE and MSG_WIPEALL.
booleansemanticEventBefore(SemanticEvent se, String msg)
On VMenu.MSG_CREATE_ANNO, make a menu entries for wiping annotations from page and, if multipage, from all pages.

Field Detail

annoColors_

protected static final Color[] annoColors_

availableColors_

protected List<Color> availableColors_

CATEGORY_ZAP

public static final String CATEGORY_ZAP

MSG_WIPEALL

public static final String MSG_WIPEALL
Wipes annotations from all pages of current document. In a multipage document this more than one page; in HTML, this the same as MSG_WIPEPAGE.

"wipeAnnos"

MSG_WIPEPAGE

public static final String MSG_WIPEPAGE
Wipes annotations from current page. In a multipage document this is one page of many; in HTML, this is the entire document.

"wipeAnnos"

Method Detail

getAnnoColor

public Color getAnnoColor(Color c)

getAnnoColor

public Color getAnnoColor()

restoreAnnoColor

public void restoreAnnoColor(Color c)

semanticEventAfter

public boolean semanticEventAfter(SemanticEvent se, String msg)
Implements MSG_WIPEPAGE and MSG_WIPEALL.

semanticEventBefore

public boolean semanticEventBefore(SemanticEvent se, String msg)
On VMenu.MSG_CREATE_ANNO, make a menu entries for wiping annotations from page and, if multipage, from all pages.