multivalent.std.span

Class BackgroundSpan

public class BackgroundSpan extends Span

Background span with editable color.

Version: $Revision: 1.3 $ $Date: 2002/02/02 13:16:26 $

Field Summary
static StringATTR_COLOR
Color of background.
static StringATTR_COLORS
List of color names, separated by spaces, such as "Yellow Orange Green Blue".
static StringMSG_CHANGE
Change the color to arg, which can be java.lang.String or java.awt.Color.
static StringMSG_EDIT
Pop up dialog asking user color choice.
Method Summary
booleanappearance(Context cx, boolean all)
ColorgetColor()
voidrestore(ESISNode n, Map<String,Object> attr, Layer layer)
ESISNodesave()
booleansemanticEventAfter(SemanticEvent se, String msg)
booleansemanticEventBefore(SemanticEvent se, String msg)
voidsetColor(Color color)
Set to COLOR_INVALID to invalidate, null for transparent.
StringtoString()

Field Detail

ATTR_COLOR

public static final String ATTR_COLOR
Color of background.

ATTR_COLORS

public static final String ATTR_COLORS
List of color names, separated by spaces, such as "Yellow Orange Green Blue".

MSG_CHANGE

public static final String MSG_CHANGE
Change the color to arg, which can be java.lang.String or java.awt.Color.

"changeColor": arg= color, as String or Color.

MSG_EDIT

public static final String MSG_EDIT
Pop up dialog asking user color choice.

"editColor".

Method Detail

appearance

public boolean appearance(Context cx, boolean all)

getColor

public Color getColor()

restore

public void restore(ESISNode n, Map<String,Object> attr, Layer layer)

save

public ESISNode save()

semanticEventAfter

public boolean semanticEventAfter(SemanticEvent se, String msg)

semanticEventBefore

public boolean semanticEventBefore(SemanticEvent se, String msg)

setColor

public void setColor(Color color)
Set to COLOR_INVALID to invalidate, null for transparent.

toString

public String toString()