|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.generic.event.EventMultiplexer
The event multiplexer base class. This class is extended once per group of events (event package of a certain module). It then implements the different event interfaces for that particular module and offers a convenient way of multiplexing these events.
| Constructor Summary | |
EventMultiplexer(EventListenerTag a,
EventListenerTag b)
Constructs a new eventmultiplexer that consists of a left and right child. |
|
| Method Summary | |
EventListenerTag |
a()
Returns the left node of this multiplex instance. |
EventListenerTag |
b()
Returns the right node of this multiplex instance. |
static EventListenerTag |
combine(EventListenerTag a,
EventListenerTag b)
Combines two given eventlisteners to a new eventlistener. |
int |
countEventListeners()
Returns the number of eventlisteners that are currently multiplexed by this object. |
java.util.ArrayList |
listenersToArrayList()
Creates an arraylist that is filled with all the eventlisteners that are multiplexed by this multiplexer. |
static EventListenerTag |
separate(EventListenerTag a,
EventListenerTag b)
Separates the eventlistener b from the eventlistener
a and returns the eventlistener structure. |
java.lang.String |
toString()
Returns a string representation of this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public EventMultiplexer(EventListenerTag a,
EventListenerTag b)
a - left subtree of this eventmultiplexer.b - right subtree of this eventmultiplexer.| Method Detail |
public EventListenerTag a()
public EventListenerTag b()
public static EventListenerTag combine(EventListenerTag a,
EventListenerTag b)
a - the first eventlistener to combine.b - the second eventlistener to combine.
public static EventListenerTag separate(EventListenerTag a,
EventListenerTag b)
b from the eventlistener
a and returns the eventlistener structure.
a - the first eventlistener to separateb - the second eventlistener to separate.
a.public int countEventListeners()
public java.util.ArrayList listenersToArrayList()
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||