|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InteractionSource
Title: InteractionSource
Description: This is the interface for an object that the user can interact with. The object contains one or several interaction targets, which are hot spots that respond to user interaction by issuing an interaction event.
Classes implementing this class should document what targets the contain.
Classes implementing the InteractionListener interface can register
to receive interaction events using the addInteractionListener
method of this interface.
Copyright: Open Source Physics project
InteractionEvent
,
InteractionListener
Method Summary | |
---|---|
void |
addInteractionListener(InteractionListener listener)
Adds the specified interaction listener to receive interaction events to any of its targets from this source. |
InteractionTarget |
getInteractionTarget(int target)
Gives access to one of the targets of this source. |
void |
removeInteractionListener(InteractionListener listener)
Removes the specified interaction listener |
Method Detail |
---|
InteractionTarget getInteractionTarget(int target)
target
- An integer number that identifies the target in the source.
void addInteractionListener(InteractionListener listener)
listener
- An object that implements the InteractionListener interfaceInteractionListener
void removeInteractionListener(InteractionListener listener)
InteractionListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |