|
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.Span
multivalent.std.span.BackgroundSpan
Background span with editable color.
| Field Summary | |
|---|---|
static java.lang.String |
ATTR_COLOR
Color of background. |
static java.lang.String |
ATTR_COLORS
List of color names, separated by spaces, such as "Yellow Orange Green Blue". |
static java.lang.String |
MSG_CHANGE
Change the color to arg, which can be String or Color. |
static java.lang.String |
MSG_EDIT
Pop up dialog asking user color choice. |
| Fields inherited from class multivalent.Span |
|---|
GI_END, GI_START, MSG_DELETE, MSG_MORPH, MSG_UNATTACHED, pend, pstart |
| Fields inherited from class multivalent.Behavior |
|---|
ATTR_BEHAVIOR, name_ |
| Fields inherited from class multivalent.VObject |
|---|
attr_ |
| Fields inherited from interface multivalent.ContextListener |
|---|
LITTLE, LOT, PRIORITY_LENS, PRIORITY_MAX, PRIORITY_MIN, PRIORITY_SELECTION, PRIORITY_SPAN, PRIORITY_STRUCT, SOME |
| Constructor Summary | |
|---|---|
BackgroundSpan()
|
|
| Method Summary | |
|---|---|
boolean |
appearance(Context cx,
boolean all)
Resets the graphics context every time the object is added to or dropped from the set active over the portion of the document being drawn. |
java.awt.Color |
getColor()
|
void |
restore(ESISNode n,
java.util.Map<java.lang.String,java.lang.Object> attr,
Layer layer)
Given ESIS subtree, pluck class-specific information from attributes, call super.restore() for locations. |
ESISNode |
save()
Stuff instance state into attributes; if save buffer not null, write out corresponding XML. |
boolean |
semanticEventAfter(SemanticEvent se,
java.lang.String msg)
Recognize "deleteSpan " and "morphSpan ". |
boolean |
semanticEventBefore(SemanticEvent se,
java.lang.String msg)
Morphing and deletion menu items in popup. |
void |
setColor(java.awt.Color color)
Set to Context.COLOR_INVALID to invalidate, null for transparent. |
java.lang.String |
toString()
Subclasses should extend to check any attributes they add. |
| Methods inherited from class multivalent.Span |
|---|
buildAfter, checkRep, close, closeAll, contains, contains, destroy, event, getEnd, getPriority, getStart, isSet, markDirty, move, move, move, moveq, moveq, moveq, moveqSwap, open, repaint, repaint, stretch |
| Methods inherited from class multivalent.Behavior |
|---|
buildBefore, clipboardAfter, clipboardBefore, createUI, eventAfter, eventBefore, formatAfter, formatBefore, getBrowser, getDocument, getInstance, getInstance, getLayer, getLogger, getName, getPreference, getRoot, isEditable, paintAfter, paintBefore, putPreference, redo, restoreChildren, setName, 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 MSG_CHANGE
String or Color.
"changeColor": arg= color, as String or Color.
public static final java.lang.String MSG_EDIT
"editColor".
public static final java.lang.String ATTR_COLORS
public static final java.lang.String ATTR_COLOR
| Constructor Detail |
|---|
public BackgroundSpan()
| Method Detail |
|---|
public void setColor(java.awt.Color color)
Context.COLOR_INVALID to invalidate, null for transparent.
public java.awt.Color getColor()
public boolean appearance(Context cx,
boolean all)
ContextListener
appearance in interface ContextListenerappearance in class Spanall - all attributes or exclude those that are not inherited
public boolean semanticEventBefore(SemanticEvent se,
java.lang.String msg)
Span
semanticEventBefore in class Span
public boolean semanticEventAfter(SemanticEvent se,
java.lang.String msg)
Span
semanticEventAfter in class Spanpublic ESISNode save()
Span
save in class Span
public void restore(ESISNode n,
java.util.Map<java.lang.String,java.lang.Object> attr,
Layer layer)
Spanstart and end are reserved to hold Robust Location data.
restore in class SpanRobustLocationpublic java.lang.String toString()
Span
toString in class Span
|
Multivalent API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||