|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gumbo.interact.ActionGroupAdapter
An action feedback adapter that converts discrete action events into a target interactor state for group actions (see InteractorFlags.ACTION_GROUP_???). Typically, targets are interactor groups, not leaf 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 | |
ActionGroupAdapter()
Creates an instance that recognizes all targets. |
|
ActionGroupAdapter(java.util.Collection targets)
Creates an instance that recognizes a group of dynamic targets. |
|
ActionGroupAdapter(Interactor target)
Creates an instance that recognizes a single static target. |
Method Summary | |
InteractorField.EventIn |
getFocusTargetIn()
The one target object that has keyboard focus, or null if none. |
BooleanField.EventIn |
getGroupFocusIn()
True while group keyboard focus is active. |
BooleanField.EventIn |
getGroupIdentifyIn()
True while the group identification is active. |
BooleanField.EventIn |
getGroupOverIn()
True while group mouse over is active. |
BooleanField.EventIn |
getGroupSignifyIn()
True while the group signification 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. |
InteractorField.EventIn |
getOverTargetIn()
The one target object the mouse is over, or null if none. |
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 ActionGroupAdapter()
public ActionGroupAdapter(Interactor target)
target
- The recognized target. Never null.public ActionGroupAdapter(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. Null if none. The default is null.public InteractorField.EventIn getOverTargetIn()
public BooleanField.EventIn getGroupOverIn()
public InteractorField.EventIn getFocusTargetIn()
public BooleanField.EventIn getGroupFocusIn()
public InteractorField.EventIn getSignifyTargetIn()
public BooleanField.EventIn getGroupSignifyIn()
public InteractorField.EventIn getIdentifyTargetIn()
public BooleanField.EventIn getGroupIdentifyIn()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |