|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gumbo.interact.ActionSingleAdapter
An action feedback adapter that converts discrete action events into a target interactor state for single (non-group) actions (see InteractorFlags.ACTION_???). Typically, targets are interactor leaves, not group interactors.
This adapter can be used for action- or object-centric interaction. For action-centric, assign an action adapter to each type of action, with the action state set true and only the target interactor changing. For object-centric, assign an action adapter to each object, with the target interactor set and only the action state for that object changing.
Constructor Summary | |
ActionSingleAdapter()
Creates an instance that recognizes all targets. |
|
ActionSingleAdapter(java.util.Collection targets)
Creates an instance that recognizes a group of dynamic targets. |
|
ActionSingleAdapter(Interactor target)
Creates an instance that recognizes a single static target. |
Method Summary | |
BooleanField.EventIn |
getFocusIn()
True while keyboard focus is active. |
InteractorField.EventIn |
getFocusTargetIn()
The one target object that has keyboard focus, or null if none. |
BooleanField.EventIn |
getIdentifyIn()
True while the indentification is active. |
InteractorField.EventIn |
getIdentifyTargetIn()
The one target object that currently needs identification (such as with a tooltip or a verbal message), or null if none. |
BooleanField.EventIn |
getOverIn()
True while mouse over is active. |
InteractorField.EventIn |
getOverTargetIn()
The one target object the mouse is over, or null if none. |
BooleanField.EventIn |
getSignifyIn()
True while the signification is active. |
InteractorField.EventIn |
getSignifyTargetIn()
The one target object that currently needs signification (such as with highlighting or a sound effect), or null if none. |
void |
setNoPickTarget(Interactor target)
Sets the feedback target corresponding to NO_PICK_TARGET target in. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ActionSingleAdapter()
public ActionSingleAdapter(Interactor target)
target
- The recognized target. Never null.public ActionSingleAdapter(java.util.Collection targets)
targets
- Reference to the group of recognized targets
(Interactor). Only affects new targets. If null, all targets
are recognized.Method Detail |
public void setNoPickTarget(Interactor target)
target
- The feedback target. None if null, which is the default.public InteractorField.EventIn getOverTargetIn()
public BooleanField.EventIn getOverIn()
public InteractorField.EventIn getFocusTargetIn()
public BooleanField.EventIn getFocusIn()
public InteractorField.EventIn getSignifyTargetIn()
public BooleanField.EventIn getSignifyIn()
public InteractorField.EventIn getIdentifyTargetIn()
public BooleanField.EventIn getIdentifyIn()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |