multivalent.std.span
public class SelectionSpan extends Span
The change in appearance is restricted in a couple ways. It does not change font or spacing or other attributes that would require formatting, as this would make it hard to drag out a selection. It does not reverse colors, XOR, or use fixed foreground and background colors (e.g., white on blue), since there is no single foreground color on grayscale scanned paper.
Version: $Revision: 1.3 $ $Date: 2002/02/02 13:16:27 $
Field Summary | |
---|---|
static String | MSG_SET
Announces that selection has been moved to a new location.
|
Method Summary | |
---|---|
boolean | appearance(Context cx, boolean all) |
int | getPriority() Paints on top of everything else. |
void | move(Leaf ln, int lo, Leaf rn, int ro) No formatting, so can be more efficient, as for dragging out selection. |
void | moveq(Leaf ln, int lo, Leaf rn, int ro) Report movement with MSG_SET semantic event, with arg = this. |
boolean | semanticEventAfter(SemanticEvent se, String msg) Remove self when referenced document is closed. |
boolean | semanticEventBefore(SemanticEvent se, String msg) Doesn't have Morph/Delete/.... |
"setSelection": arg= this