|
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.std.SpeedRead
Starting at cursor/selection, flash words up at some rate, after and superior to Vortex. Not sure if this is a good way to do it, but it only took two hours to implement, and makes a great example of Multivalent's advantages over that applet: don't need three copies of text, can start at any point in document, works on any page vs ones prepared with applet.
Field Summary | |
---|---|
static java.lang.String |
ATTR_DELAY
|
static java.lang.String |
MSG_DELAY
Sets the delay between words, in milliseconds. |
static java.lang.String |
MSG_FASTER
Show words faster by decreasing the delay. |
static java.lang.String |
MSG_PAUSE
Another semantic command, which should be given more descriptive name. |
static java.lang.String |
MSG_SLOWER
Another semantic command, which should be given more descriptive name. |
Fields inherited from class multivalent.Behavior |
---|
ATTR_BEHAVIOR, name_ |
Fields inherited from class multivalent.VObject |
---|
attr_ |
Constructor Summary | |
---|---|
SpeedRead()
|
Method Summary | |
---|---|
void |
destroy()
Protocol. |
boolean |
eventAfter(java.awt.AWTEvent e,
java.awt.Point rel,
Node n)
Arrow keys adjust speed (actually delay). |
boolean |
eventBefore(java.awt.AWTEvent e,
java.awt.Point rel,
Node n)
Click in content area to pause. |
boolean |
paintAfter(Context cx,
Node node)
Draw in frame, rather than change content node, format, paint cycle -- probably wrong choice as doesn't compose. |
boolean |
paintBefore(Context cx,
Node node)
A tree walk protocol, called before observed node has been painted. |
void |
restore(ESISNode n,
java.util.Map<java.lang.String,java.lang.Object> attr,
Layer layer)
Create VFrame. |
boolean |
semanticEventAfter(SemanticEvent se,
java.lang.String msg)
Take action: windowClosed, pause, faster, .... |
boolean |
semanticEventBefore(SemanticEvent se,
java.lang.String msg)
Entries in frame popup: pause, faster, slower, .... |
Methods inherited from class multivalent.Behavior |
---|
buildAfter, buildBefore, checkRep, clipboardAfter, clipboardBefore, createUI, formatAfter, formatBefore, getBrowser, getDocument, getInstance, getInstance, getLayer, getLogger, getName, getPreference, getRoot, isEditable, putPreference, redo, restoreChildren, save, setName, toString, 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_PAUSE
"togglePause".
public static final java.lang.String MSG_DELAY
"speedreadDelay": arg= Number
delay.
public static final java.lang.String MSG_FASTER
"speedreadFaster".
public static final java.lang.String MSG_SLOWER
"speedreadSlower".
public static final java.lang.String ATTR_DELAY
Constructor Detail |
---|
public SpeedRead()
Method Detail |
---|
public boolean semanticEventBefore(SemanticEvent se, java.lang.String msg)
semanticEventBefore
in class Behavior
public boolean semanticEventAfter(SemanticEvent se, java.lang.String msg)
semanticEventAfter
in class Behavior
public void destroy()
Behavior
destroy
in class Behavior
public boolean paintBefore(Context cx, Node node)
Behavior
paintBefore
in class Behavior
public boolean paintAfter(Context cx, Node node)
paintAfter
in class Behavior
public boolean eventBefore(java.awt.AWTEvent e, java.awt.Point rel, Node n)
eventBefore
in class Behavior
SemanticEvent
,
AWTEvent
,
Browser
,
LensMan
public boolean eventAfter(java.awt.AWTEvent e, java.awt.Point rel, Node n)
eventAfter
in class Behavior
public void restore(ESISNode n, java.util.Map<java.lang.String,java.lang.Object> attr, Layer layer)
restore
in class Behavior
|
Multivalent API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |