|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The InteractionProvider interface specifies a type of object that
lends interaction support to objects of type BaseInteractable.
In a way, this interface specifies a type of mediator that a client may speak
to instead of directly communicating with a large number of interactable objects.
A useful consolidation of helper methods, normally found in client code, can
be found here.
NOTICE: This interface is subject to refactoring. We therefore recommend that you make as little use of it as possible.
| Method Summary | |
int |
actAt(InteractionInfo interactionInfo)
TODO : comment |
void |
descriptorChanged(BaseInteractable interactable,
InteractionDescriptor newDescriptor,
InteractionItem newItem)
|
void |
dismissFromInteractionCycle(BaseInteractable interactable)
|
InteractionItem |
getCurrentInteractionItemFor(BaseInteractable interactable)
|
int |
getCursorID(InteractionInfo interactionInfo)
Returns a cursor id which can be used to indicate that an object marked as BaseInteractable can be moved or manipulated at the position
given by x and y. |
java.util.List |
getInteractionProviders()
TODO : comment |
java.util.List |
getSelection()
Returns a List of the currently selected objects |
Boundary |
getSelectionBoundingBox()
Returns the bounding box of the current selected objects |
boolean |
hasMultiSelection()
Returns a flag that indicates whether more than one object is selected or not. |
boolean |
hasSelection()
TODO : comment |
boolean |
hasSubSelection()
TODO : comment |
int |
hitsAt(InteractionInfo interactionInfo)
|
int |
mouseClickAt(InteractionInfo interactionInfo)
TODO : comment |
int |
mouseDownAt(InteractionInfo interactionInfo)
TODO : comment |
int |
mouseMoveAt(InteractionInfo interactionInfo)
TODO : comment |
int |
mouseUpAt(InteractionInfo interactionInfo)
TODO : comment |
int |
postAction(InteractionInfo interactionInfo)
|
void |
preAction(InteractionInfo interactionInfo)
|
void |
select(BaseInteractable interactable,
boolean adjustSelectionFlag)
TODO : comment |
void |
selectAll()
Selects all objects |
int |
selectAt(InteractionInfo interactionInfo)
Selects an object at the location specified by the given InteractionInfo. |
int |
selectContaining(InteractionInfo interactionInfo,
Boundary boundary)
Selects all BaseInteractable objects that lie within the
Boundary given by boundary. |
void |
selectSubsequent(InteractionProvider interactionProvider)
|
void |
setSelection(java.util.List selectables)
Sets the given List of objects as the current selection |
void |
startActionAt(InteractionInfo interactionInfo)
TODO : comment |
int |
stopActionAt(InteractionInfo interactionInfo)
TODO : comment |
void |
unselect(BaseInteractable interactable,
boolean adjustSelectionFlag)
TODO : comment |
void |
unselect(java.util.List interactables)
This method has to be called to unselect the given List of
BaseInteractable objects. |
void |
unselectAll()
Unselects all objects |
void |
unselectSubsequent(InteractionProvider interactionProvider)
|
| Method Detail |
public int getCursorID(InteractionInfo interactionInfo)
BaseInteractable can be moved or manipulated at the position
given by x and y.
cursor identifierspublic Boundary getSelectionBoundingBox()
public boolean hasSelection()
public boolean hasMultiSelection()
public java.util.List getSelection()
List of the currently selected objects
public void setSelection(java.util.List selectables)
List of objects as the current selection
selectables - the List of objects to selectpublic boolean hasSubSelection()
public java.util.List getInteractionProviders()
public void dismissFromInteractionCycle(BaseInteractable interactable)
public InteractionItem getCurrentInteractionItemFor(BaseInteractable interactable)
public void descriptorChanged(BaseInteractable interactable,
InteractionDescriptor newDescriptor,
InteractionItem newItem)
public void select(BaseInteractable interactable,
boolean adjustSelectionFlag)
interactable - adjustSelectionFlag - public void selectAll()
public void unselect(BaseInteractable interactable,
boolean adjustSelectionFlag)
interactable - adjustSelectionFlag - public void unselect(java.util.List interactables)
List of
BaseInteractable objects.
public void selectSubsequent(InteractionProvider interactionProvider)
public void unselectSubsequent(InteractionProvider interactionProvider)
public void unselectAll()
public int hitsAt(InteractionInfo interactionInfo)
public int selectAt(InteractionInfo interactionInfo)
InteractionInfo.
interactionInfo - the InteractionInfo specifying all
needed information for the selection.
selection identifiers
public int selectContaining(InteractionInfo interactionInfo,
Boundary boundary)
BaseInteractable objects that lie within the
Boundary given by boundary.
boundary - the rectangular area the objects to select have to lie
within
selection identifierspublic int mouseDownAt(InteractionInfo interactionInfo)
interactionInfo -
public int mouseUpAt(InteractionInfo interactionInfo)
interactionInfo -
public int mouseMoveAt(InteractionInfo interactionInfo)
interactionInfo -
public int mouseClickAt(InteractionInfo interactionInfo)
interactionInfo -
public void preAction(InteractionInfo interactionInfo)
interactionInfo - public void startActionAt(InteractionInfo interactionInfo)
public int actAt(InteractionInfo interactionInfo)
interaction identifierspublic int stopActionAt(InteractionInfo interactionInfo)
interaction identifierspublic int postAction(InteractionInfo interactionInfo)
interactionInfo -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||